milis/talimatname/genel/l/libffi/talimat

29 lines
763 B
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: Çeşitli arama kurallarına taşınabilir, yüksek seviyeli bir programlama arabirimi sağlayın.
2016-02-24 01:27:23 +01:00
# URL: http://sourceware.org/libffi/
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler:
2016-02-24 01:27:23 +01:00
2017-10-28 14:10:23 +02:00
isim=libffi
surum=3.2.1
devir=1
2016-02-24 01:27:23 +01:00
2017-10-28 14:10:23 +02:00
kaynak=( ftp://sourceware.org/pub/$isim/$isim-$surum.tar.gz )
2016-02-24 01:27:23 +01:00
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:10:23 +02:00
cd $isim-$surum
2016-02-24 01:27:23 +01:00
sed -e '/^includesdir/ s:$(libdir)/@PACKAGE_NAME@-@PACKAGE_VERSION@/include:$(includedir):' \
-i include/Makefile.in
sed -e '/^includedir/ s:${libdir}/@PACKAGE_NAME@-@PACKAGE_VERSION@/include:@includedir@:' \
-e 's/^Cflags: -I${includedir}/Cflags:/' \
-i libffi.pc.in
./configure --prefix=/usr
make
make DESTDIR=$PKG install
rm -f $PKG/usr/share/info/dir
if [ "`uname -m`" == "x86_64" ];then
mv $PKG/usr/lib64/lib* $PKG/usr/lib
rm -r $PKG/usr/lib64
fi
}