From e2cdc4292ddd8031accaaff3599bd6b366ccb3cc Mon Sep 17 00:00:00 2001 From: mezz Date: Mon, 4 Feb 2008 19:22:00 +0000 Subject: Add a patch to fix when PKG_CONFIG_SYSROOT_DIR is set, on the all but the -I and -L options are removed from --cflags and --libs respectively. This patch was took from mailing list and has been merged in upstream. http://lists.freedesktop.org/archives/pkg-config/2008-January/000255.html I knew about pkg-config 0.23 and its bug last month, so I didn't update it and hoping that they will release next version soon. I guess they didn't. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@10339 df743ca5-7f9a-e211-a948-0013205c9059 --- devel/pkg-config/Makefile | 3 ++- devel/pkg-config/files/patch-pkg.c | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 devel/pkg-config/files/patch-pkg.c diff --git a/devel/pkg-config/Makefile b/devel/pkg-config/Makefile index 9a46a19df..1d3bdb6b8 100644 --- a/devel/pkg-config/Makefile +++ b/devel/pkg-config/Makefile @@ -3,11 +3,12 @@ # Whom: Maxim Sobolev # # $FreeBSD$ -# $MCom: ports/devel/pkg-config/Makefile,v 1.9 2007/07/01 20:46:42 mezz Exp $ +# $MCom: ports/devel/pkg-config/Makefile,v 1.11 2008/02/04 19:10:15 ahze Exp $ # PORTNAME= pkg-config PORTVERSION= 0.23 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= http://pkgconfig.freedesktop.org/releases/ DIST_SUBDIR= gnome2 diff --git a/devel/pkg-config/files/patch-pkg.c b/devel/pkg-config/files/patch-pkg.c new file mode 100644 index 000000000..48315feb9 --- /dev/null +++ b/devel/pkg-config/files/patch-pkg.c @@ -0,0 +1,14 @@ +diff -Naur pkg-config-0.23-old/pkg.c pkg-config-0.23-new/pkg.c +--- pkg-config-0.23-old/pkg.c 2008-01-16 13:59:49.000000000 -0800 ++++ pkg.c 2008-01-22 15:00:55.000000000 -0800 +@@ -483,6 +483,10 @@ + g_string_append (str, pcsysrootdir); + g_string_append (str, tmpstr+2); + } ++ else ++ { ++ g_string_append (str, tmpstr); ++ } + } + else + { -- cgit v1.2.3