aboutsummaryrefslogtreecommitdiff
path: root/libs/libffi
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2015-11-21 12:34:45 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2015-11-21 12:37:34 +0100
commit1ad9005e989bc3cd3d1e2a5d8830f0d8dce27d89 (patch)
treed946110e98068c5e2e27e401c3a75037f6eb9477 /libs/libffi
parent10311faf44e1f857b3a0f85d5381a2ce6900888e (diff)
libffi: fix host build
My last commit c1137b6db7c461ddc3d2ddac674ba73bc1579918 "libffi: fix libffi.pc file" broke the host build as that still placed the header files to /usr/lib/libffi-3.0.13/include/ and the libffi.pc file pointed to /usr/include/ . With this patch I took the patch from Debian and also made the install process to put the header files to /usr/include in all situations. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'libs/libffi')
-rw-r--r--libs/libffi/Makefile2
-rw-r--r--libs/libffi/patches/001-fix-includedir-pkg.patch29
2 files changed, 28 insertions, 3 deletions
diff --git a/libs/libffi/Makefile b/libs/libffi/Makefile
index 1eea6f760..cd16a85ff 100644
--- a/libs/libffi/Makefile
+++ b/libs/libffi/Makefile
@@ -66,7 +66,7 @@ define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) \
- $(PKG_INSTALL_DIR)/usr/lib/libffi-$(PKG_VERSION)/include/*.h \
+ $(PKG_INSTALL_DIR)/usr/include/*.h \
$(1)/usr/include/
endef
diff --git a/libs/libffi/patches/001-fix-includedir-pkg.patch b/libs/libffi/patches/001-fix-includedir-pkg.patch
index d82ec5ff9..812d7a4e0 100644
--- a/libs/libffi/patches/001-fix-includedir-pkg.patch
+++ b/libs/libffi/patches/001-fix-includedir-pkg.patch
@@ -1,11 +1,36 @@
--- a/libffi.pc.in
+++ b/libffi.pc.in
-@@ -1,7 +1,7 @@
+@@ -1,10 +1,10 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
-includedir=${libdir}/@PACKAGE_NAME@-@PACKAGE_VERSION@/include
-+includedir=${prefix}/include
++includedir=@includedir@
Name: @PACKAGE_NAME@
Description: Library supporting Foreign Function Interfaces
+ Version: @PACKAGE_VERSION@
+-Libs: -L${libdir} -lffi
+-Cflags: -I${includedir}
++Libs: -lffi
++Cflags:
+--- a/include/Makefile.am
++++ b/include/Makefile.am
+@@ -5,5 +5,5 @@ AUTOMAKE_OPTIONS=foreign
+ DISTCLEANFILES=ffitarget.h
+ EXTRA_DIST=ffi.h.in ffi_common.h
+
+-includesdir = $(libdir)/@PACKAGE_NAME@-@PACKAGE_VERSION@/include
++includesdir = $(includedir)
+ nodist_includes_HEADERS = ffi.h ffitarget.h
+--- a/include/Makefile.in
++++ b/include/Makefile.in
+@@ -250,7 +250,7 @@ top_srcdir = @top_srcdir@
+ AUTOMAKE_OPTIONS = foreign
+ DISTCLEANFILES = ffitarget.h
+ EXTRA_DIST = ffi.h.in ffi_common.h
+-includesdir = $(libdir)/@PACKAGE_NAME@-@PACKAGE_VERSION@/include
++includesdir = $(includedir)
+ nodist_includes_HEADERS = ffi.h ffitarget.h
+ all: all-am
+