libffi: fix include path

This commit is contained in:
Danny Rawlins 2017-07-09 13:00:37 +10:00
parent 57804a2271
commit d50b32d1ad
3 changed files with 17 additions and 9 deletions

View File

@ -1,9 +1,8 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/include/
-rw-r--r-- root/root usr/include/ffi.h
-rw-r--r-- root/root usr/include/ffitarget.h
drwxr-xr-x root/root usr/lib/
drwxr-xr-x root/root usr/lib/libffi-3.2.1/
drwxr-xr-x root/root usr/lib/libffi-3.2.1/include/
-rw-r--r-- root/root usr/lib/libffi-3.2.1/include/ffi.h
-rw-r--r-- root/root usr/lib/libffi-3.2.1/include/ffitarget.h
-rw-r--r-- root/root usr/lib/libffi.a
-rwxr-xr-x root/root usr/lib/libffi.la
lrwxrwxrwx root/root usr/lib/libffi.so -> libffi.so.6.0.4

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/XqIC63xPKQQLncJtTmd97sfeUPO8sNPfeIS7ZzuopG6JXiKVdeWU+ZzpElcS2k7uc+9LVOg2IfpUxE1iCyw3gY=
SHA256 (Pkgfile) = c1936e02df97e33210053c8c3bb4ad57361fb26c83848d1b8b8e0d255401fc03
SHA256 (.footprint) = 15bc1dc1c3384888271bcd1ebaec513546636d58ef3a9f1e02937b3b76846cf9
RWSE3ohX2g5d/bE7OoYUXZ8x+3WT2/zcydZdbZ8uj8B02pXh316w7W481AFTRjZV0FqHWi2DVnE5H872GKJ2jE1PJE0GeGCxfw0=
SHA256 (Pkgfile) = 9de7852685f1ea07111476eea9028699a63859af295e25f74b283ae62bd91261
SHA256 (.footprint) = edc15544aefa5bb35ff787274decd783a341fb24ed77e2b34ba0833cd9e6f335
SHA256 (libffi-3.2.1.tar.gz) = d06ebb8e1d9a22d19e38d63fdb83954253f39bedc5d46232a05645685722ca37

View File

@ -4,11 +4,20 @@
name=libffi
version=3.2.1
release=2
source=(ftp://sourceware.org/pub/libffi/$name-$version.tar.gz)
release=3
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