talimat 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Tanım: JavaScript yorumlayıcı ve kütüphaneleri - Sürüm 38
  2. # URL: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/38
  3. # Paketçi: milisarge
  4. # Gerekler: nspr icu libffi python zip
  5. # Grup: kütüphane
  6. isim=js38
  7. surum=38.8.0
  8. devir=2
  9. kaynak=(https://ftp.mozilla.org/pub/firefox/releases/38.8.0esr/source/firefox-38.8.0esr.source.tar.bz2
  10. mozjs38-fix-tracelogger.patch
  11. mozjs38-install-name.patch
  12. mozjs38-copy-headers.patch
  13. mozjs38-1269317.patch)
  14. derle() {
  15. cd mozilla-esr38
  16. patch -Np1 -i $SRC/mozjs38-fix-tracelogger.patch
  17. patch -Np1 -i $SRC/mozjs38-install-name.patch
  18. patch -Np1 -i $SRC/mozjs38-copy-headers.patch
  19. patch -Np1 -i $SRC/mozjs38-1269317.patch
  20. unset CPPFLAGS
  21. CXXFLAGS+=' -fno-delete-null-pointer-checks -fpermissive -fno-tree-vrp -fno-strict-aliasing'
  22. CFLAGS+=' -fno-delete-null-pointer-checks -fpermissive -fno-tree-vrp -fno-strict-aliasing'
  23. export PYTHON=/usr/bin/python2
  24. export SHELL=/bin/sh
  25. cd $SRC/mozilla-esr38/js/src
  26. ./configure --prefix=/usr --with-system-nspr --enable-system-ffi \
  27. --with-system-zlib --with-system-icu --with-intl-api --enable-ctypes \
  28. --enable-threadsafe --enable-system-ffi --enable-shared-js --enable-gcgenerational --disable-optimize --enable-pie
  29. SHELL=/bin/sh make || SHELL=/bin/sh make
  30. SHELL=/bin/sh make DESTDIR="$PKG" install
  31. rm -f "$PKG"/usr/lib/*.ajs
  32. find "$PKG"/usr/{lib/pkgconfig,include} -type f -exec chmod -x {} +
  33. mv $PKG/usr/lib/pkgconfig/js.pc $PKG/usr/lib/pkgconfig/mozjs-38.pc
  34. }