summaryrefslogtreecommitdiff
path: root/devel/pkg-config
diff options
context:
space:
mode:
authorcube <cube@pkgsrc.org>2009-04-13 17:39:57 +0000
committercube <cube@pkgsrc.org>2009-04-13 17:39:57 +0000
commitc878b10db685525cfc85df4f943ff33cd36451ab (patch)
tree9cde00b266b48885670786c09e7ddb1d5edc93f5 /devel/pkg-config
parenteb6a87cdbe3af55cc22f4f1708658bd0a7ccface (diff)
downloadpkgsrc-c878b10db685525cfc85df4f943ff33cd36451ab.tar.gz
Add X11BASE/lib/pkgconfig and /usr/lib/pkgconfig to the default path if
they're relevant. Bump PKGREVISION.
Diffstat (limited to 'devel/pkg-config')
-rw-r--r--devel/pkg-config/Makefile18
1 files changed, 17 insertions, 1 deletions
diff --git a/devel/pkg-config/Makefile b/devel/pkg-config/Makefile
index f57215e23ce..7f379ecefd5 100644
--- a/devel/pkg-config/Makefile
+++ b/devel/pkg-config/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.14 2008/04/16 22:50:43 reed Exp $
+# $NetBSD: Makefile,v 1.15 2009/04/13 17:39:57 cube Exp $
#
DISTNAME= pkg-config-0.23
+PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://pkgconfig.freedesktop.org/releases/
@@ -38,6 +39,21 @@ CONFIGURE_ARGS+= glib_cv_sane_realloc=yes glib_cv_uscore=no
CONFIGURE_ARGS+= glib_cv_rtldglobal_broken=no
.endif
+PKGCONFIG_EXTRA_PATHS= # empty
+
+.if ${LOCALBASE} != ${X11BASE}
+PKGCONFIG_EXTRA_PATHS+= ${X11BASE}/lib/pkgconfig
+.endif
+
+.if ${LOCALBASE} != "/usr"
+PKGCONFIG_EXTRA_PATHS+= /usr/lib/pkgconfig
+.endif
+
+.if !empty(PKGCONFIG_EXTRA_PATHS)
+# First part of the value is taken from configure.in
+CONFIGURE_ARGS+= --with-pc-path='$${libdir}/pkgconfig:$${datadir}/pkgconfig:${PKGCONFIG_EXTRA_PATHS:ts:}'
+.endif
+
# needed for fifth test case
BUILDLINK_PASSTHRU_DIRS= /private-dep /public-dep /requires-test
TEST_TARGET= check