pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/pkg-config Add X11BASE/lib/pkgconfig and /usr/li...
details: https://anonhg.NetBSD.org/pkgsrc/rev/3e904f9d2fd5
branches: trunk
changeset: 557341:3e904f9d2fd5
user: cube <cube%pkgsrc.org@localhost>
date: Mon Apr 13 17:39:57 2009 +0000
description:
Add X11BASE/lib/pkgconfig and /usr/lib/pkgconfig to the default path if
they're relevant.
Bump PKGREVISION.
diffstat:
devel/pkg-config/Makefile | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diffs (35 lines):
diff -r 8acc40293086 -r 3e904f9d2fd5 devel/pkg-config/Makefile
--- a/devel/pkg-config/Makefile Mon Apr 13 17:06:30 2009 +0000
+++ b/devel/pkg-config/Makefile Mon Apr 13 17:39:57 2009 +0000
@@ -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_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
Home |
Main Index |
Thread Index |
Old Index