milis/talimatname/temel/zlib/talimat

48 lines
1.2 KiB
Plaintext
Raw Normal View History

2017-10-27 21:56:50 +02:00
# Tanım: The Zlib package contains compression and decompression routines used by some programs.
2016-02-24 01:27:23 +01:00
# URL: http://www.zlib.net/
2017-10-27 21:56:50 +02:00
# Paketçi: milisarge
# Gerekler:
2017-10-28 14:15:02 +02:00
isim=zlib
surum=1.2.8
devir=1
2016-02-24 01:27:23 +01:00
2017-10-28 14:15:02 +02:00
kaynak=(http://www.zlib.net/zlib-$surum.tar.xz)
2016-02-24 01:27:23 +01:00
2017-10-27 23:59:41 +02:00
derle() {
2017-10-27 21:56:50 +02:00
2016-02-24 01:27:23 +01:00
if [ -L /bin/pwd ];then
2016-03-20 02:15:25 +01:00
mv -v /tools/bin/ld /tools/bin/ld-old
mv -v /tools/$(uname -m)-pc-linux-gnu/bin/ld /tools/$(uname -m)-pc-linux-gnu/bin/ld-old
mv -v /tools/bin/ld-new /tools/bin/ld
2016-02-24 01:27:23 +01:00
ln -sv /tools/bin/ld /tools/$(uname -m)-pc-linux-gnu/bin/ld
gcc -dumpspecs | sed -e 's@/tools@@g' \
-e '/\*startfile_prefix_spec:/{n;s@.*@/usr/lib/ @}' \
-e '/\*cpp:/{n;s@$@ -isystem /usr/include@}' > \
`dirname $(gcc --print-libgcc-file-name)`/specs
echo 'int main(){}' > dummy.c
cc dummy.c -v -Wl,--verbose &> dummy.log
readelf -l a.out | grep ': /lib'
grep -o '/lib.*/crt[1in].*succeeded' dummy.log
grep -B1 '^ /usr/include' dummy.log
grep 'SEARCH.*/usr/lib' dummy.log |sed 's|; |\n|g'
grep "/lib.*/libc.so.6 " dummy.log
grep found dummy.log
rm -v dummy.c a.out dummy.log
fi
2017-10-28 14:15:02 +02:00
cd zlib-$surum
2016-02-24 01:27:23 +01:00
./configure --prefix=/usr
make
make check
make prefix=$PKG/usr install
mkdir -p $PKG/lib
mv -v $PKG/usr/lib/libz.so.* $PKG/lib
2017-10-28 14:15:02 +02:00
ln -sfv ../../lib/libz.so.$surum $PKG/usr/lib/libz.so
2016-02-24 01:27:23 +01:00
}
2016-03-07 13:45:49 +01:00