forked from ports/compat-32
29 lines
670 B
Plaintext
29 lines
670 B
Plaintext
# Description: Portable Foreign Function Interface Library
|
|
# URL: http://sourceware.org/libffi/
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
|
# Depends on: libffi
|
|
|
|
name=libffi-32
|
|
version=3.3
|
|
release=1
|
|
source=(https://sourceware.org/pub/${name%-*}/${name%-*}-$version.tar.gz)
|
|
|
|
build() {
|
|
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
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--libdir=/usr/lib32
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
rm -r $PKG/usr/{include,share/man,share}
|
|
}
|