opt/libffi/Pkgfile
Fredrik Rinnestam 4b00d629e3 [notify] libffi: updated to 3.3. Update breaks ABI
This update breaks ABI compatability. Rebuild of affected ports are required. Notably:
glib, llvm, python3 and others
2019-11-25 23:18:20 +01:00

26 lines
624 B
Plaintext

# Description: Portable Foreign Function Interface Library
# URL: http://sourceware.org/libffi/
# Maintainer: Fredrik Rinnestam, fredrik at crux dot nu
name=libffi
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
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/info
}