summaryrefslogtreecommitdiff
path: root/package/libffi/patches/patch-libffi_pc_in
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-06-15 13:09:33 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-06-15 13:13:14 +0200
commitbf8903fa567e5c1b5d923c6f1c0aeb1d2fd1192a (patch)
tree64691c16412c4788e2f242abeb418187231d0ec8 /package/libffi/patches/patch-libffi_pc_in
parentbf3ec139fd4c0996463d221478eb8ce82694e6de (diff)
cleanup HOST_STYLE, use SYSROOT feature for pkgconf
there are three HOST_STYLE's, not set mean fully automatic installation. auto means prefix is set to /usr and DESTDIR is set to STAGING_HOST_DIR. When using manual, you need to provide your own targets. Instead of using sed to modify *.pc files, use PKG_SYSROOT feature, which does work better and avoids pathcing some pc files. Idea from sh4rm via #musl.
Diffstat (limited to 'package/libffi/patches/patch-libffi_pc_in')
-rw-r--r--package/libffi/patches/patch-libffi_pc_in13
1 files changed, 9 insertions, 4 deletions
diff --git a/package/libffi/patches/patch-libffi_pc_in b/package/libffi/patches/patch-libffi_pc_in
index 55bc4e361..05980c7cc 100644
--- a/package/libffi/patches/patch-libffi_pc_in
+++ b/package/libffi/patches/patch-libffi_pc_in
@@ -1,11 +1,16 @@
---- libffi-3.0.9.orig/libffi.pc.in 2009-12-31 13:38:48.000000000 +0100
-+++ libffi-3.0.9/libffi.pc.in 2010-12-11 01:46:04.000000000 +0100
-@@ -1,7 +1,7 @@
+--- libffi-3.1.orig/libffi.pc.in 2014-04-25 19:45:13.000000000 +0200
++++ libffi-3.1/libffi.pc.in 2014-06-12 17:35:39.000000000 +0200
+@@ -1,11 +1,10 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
+-toolexeclibdir=@toolexeclibdir@
-includedir=${libdir}/@PACKAGE_NAME@-@PACKAGE_VERSION@/include
-+includedir=@includedir@
++includedir=${prefix}/include
Name: @PACKAGE_NAME@
Description: Library supporting Foreign Function Interfaces
+ Version: @PACKAGE_VERSION@
+-Libs: -L${toolexeclibdir} -lffi
++Libs: -lffi
+ Cflags: -I${includedir}