milis/talimatname/genel/j/js38/talimat

38 lines
1.5 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: JavaScript tercüman ve kütüphaneleri - Sürüm 38
2017-06-26 18:09:20 +02:00
# URL: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/38
2017-12-16 18:29:41 +01:00
# Paketçi: milisarge
2017-10-27 20:46:27 +02:00
# Gerekler: nspr icu libffi python zip
2017-06-26 18:09:20 +02:00
2017-10-28 14:10:23 +02:00
isim=js38
surum=38.8.0
2017-12-16 18:29:41 +01:00
devir=2
2017-10-28 14:10:23 +02:00
kaynak=(https://ftp.mozilla.org/pub/firefox/releases/38.8.0esr/source/firefox-38.8.0esr.source.tar.bz2
2017-06-26 18:09:20 +02:00
mozjs38-fix-tracelogger.patch
mozjs38-install-name.patch
mozjs38-copy-headers.patch
mozjs38-1269317.patch)
2017-10-27 23:59:41 +02:00
derle() {
2017-06-26 18:09:20 +02:00
cd mozilla-esr38
patch -Np1 -i $SRC/mozjs38-fix-tracelogger.patch
patch -Np1 -i $SRC/mozjs38-install-name.patch
patch -Np1 -i $SRC/mozjs38-copy-headers.patch
patch -Np1 -i $SRC/mozjs38-1269317.patch
unset CPPFLAGS
CXXFLAGS+=' -fno-delete-null-pointer-checks -fpermissive -fno-tree-vrp -fno-strict-aliasing'
CFLAGS+=' -fno-delete-null-pointer-checks -fpermissive -fno-tree-vrp -fno-strict-aliasing'
export PYTHON=/usr/bin/python2
2017-12-16 18:29:41 +01:00
export SHELL=/bin/sh
2017-06-26 18:09:20 +02:00
cd $SRC/mozilla-esr38/js/src
./configure --prefix=/usr --with-system-nspr --enable-system-ffi \
--with-system-zlib --with-system-icu --with-intl-api --enable-ctypes \
--enable-threadsafe --enable-system-ffi --enable-shared-js --enable-gcgenerational --disable-optimize --enable-pie
2017-12-16 18:29:41 +01:00
SHELL=/bin/sh make || SHELL=/bin/sh make
2017-06-26 18:09:20 +02:00
SHELL=/bin/sh make DESTDIR="$PKG" install
rm -f "$PKG"/usr/lib/*.ajs
find "$PKG"/usr/{lib/pkgconfig,include} -type f -exec chmod -x {} +
2017-12-16 19:18:57 +01:00
mv $PKG/usr/lib/pkgconfig/js.pc $PKG/usr/lib/pkgconfig/mozjs-38.pc
2017-06-26 18:09:20 +02:00
}