2012-06-17 19:28:51 +02:00
|
|
|
# Description: Portable Foreign Function Interface Library
|
|
|
|
# URL: http://sourceware.org/libffi/
|
2012-06-19 01:46:22 +02:00
|
|
|
# Maintainer: Fredrik Rinnestam, fredrik at crux dot nu
|
2012-06-17 19:28:51 +02:00
|
|
|
|
|
|
|
name=libffi
|
2014-11-12 18:57:34 +01:00
|
|
|
version=3.2.1
|
2017-07-09 13:00:37 +10:00
|
|
|
release=3
|
|
|
|
source=(https://sourceware.org/pub/$name/$name-$version.tar.gz)
|
2012-06-17 19:28:51 +02:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
2017-07-09 13:00:37 +10:00
|
|
|
|
|
|
|
sed -e '/^includesdir/ s/$(libdir).*$/$(includedir)/' \
|
|
|
|
-i include/Makefile.in
|
|
|
|
|
|
|
|
sed \
|
|
|
|
-e '/^includedir/ s/=.*$/=@includedir@/' \
|
|
|
|
-e 's/^Cflags: -I${includedir}/Cflags:/' \
|
|
|
|
-i libffi.pc.in
|
|
|
|
|
2015-07-26 00:53:54 +02:00
|
|
|
./configure --prefix=/usr
|
2012-06-17 19:28:51 +02:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2015-07-26 00:54:12 +02:00
|
|
|
rm -r $PKG/usr/share/info
|
2012-06-17 19:28:51 +02:00
|
|
|
}
|