From bf8903fa567e5c1b5d923c6f1c0aeb1d2fd1192a Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 15 Jun 2014 13:09:33 +0200 Subject: 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. --- package/libffi/patches/patch-libffi_pc_in | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'package/libffi/patches/patch-libffi_pc_in') 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} -- cgit v1.2.3