2012-11-21 11:12:43 -06:00
|
|
|
# Description: Portable Foreign Function Interface Library
|
|
|
|
# URL: http://sourceware.org/libffi/
|
2013-02-02 01:54:23 +11:00
|
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
2017-07-09 14:01:59 +10:00
|
|
|
# Depends on: libffi
|
2012-11-21 11:12:43 -06:00
|
|
|
|
|
|
|
name=libffi-32
|
2019-11-29 01:00:27 +11:00
|
|
|
version=3.3
|
|
|
|
release=1
|
2017-07-09 14:01:59 +10:00
|
|
|
source=(https://sourceware.org/pub/${name%-*}/${name%-*}-$version.tar.gz)
|
2012-11-21 11:12:43 -06:00
|
|
|
|
|
|
|
build() {
|
2017-07-09 14:01:59 +10:00
|
|
|
cd ${name%-*}-$version
|
|
|
|
|
|
|
|
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
|
2012-11-21 11:12:43 -06:00
|
|
|
|
2014-11-15 13:50:50 +11:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
2017-07-09 14:01:59 +10:00
|
|
|
--libdir=/usr/lib32
|
2014-11-15 13:50:50 +11:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
2017-07-09 14:01:59 +10:00
|
|
|
rm -r $PKG/usr/{include,share/man,share}
|
2012-11-21 11:12:43 -06:00
|
|
|
}
|