talimat 778 B

1234567891011121314151617181920212223242526272829
  1. # Description: Çeşitli arama kurallarına taşınabilir, yüksek seviyeli bir programlama arabirimi sağlayın.
  2. # URL: http://sourceware.org/libffi/
  3. # Packager: milisarge
  4. # Depends on:
  5. name=libffi
  6. version=3.2.1
  7. release=1
  8. source=( ftp://sourceware.org/pub/$name/$name-$version.tar.gz )
  9. build() {
  10. cd $name-$version
  11. sed -e '/^includesdir/ s:$(libdir)/@PACKAGE_NAME@-@PACKAGE_VERSION@/include:$(includedir):' \
  12. -i include/Makefile.in
  13. sed -e '/^includedir/ s:${libdir}/@PACKAGE_NAME@-@PACKAGE_VERSION@/include:@includedir@:' \
  14. -e 's/^Cflags: -I${includedir}/Cflags:/' \
  15. -i libffi.pc.in
  16. ./configure --prefix=/usr
  17. make
  18. make DESTDIR=$PKG install
  19. rm -f $PKG/usr/share/info/dir
  20. if [ "`uname -m`" == "x86_64" ];then
  21. mv $PKG/usr/lib64/lib* $PKG/usr/lib
  22. rm -r $PKG/usr/lib64
  23. fi
  24. }