summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authoragc <agc>2000-07-11 14:53:35 +0000
committeragc <agc>2000-07-11 14:53:35 +0000
commit05692df58e5b6df12ead64953f810dacb961d423 (patch)
tree07c067a284dd27eed2ac53c0ec79e856fd2442d9 /mk
parentd2de6f19d28f70dc6b4d55367215a0590aa8a05e (diff)
downloadpkgsrc-05692df58e5b6df12ead64953f810dacb961d423.tar.gz
Make the determination of the pre-req package's installed directory be
a bit more user-friendly. Introduce a show-{gtk+,imlib,kdebase,qt1,qt2,xpm}-prefix target in bsd.pkg.mk, and use "${MAKE} show-*-prefix" in package Makefiles.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk13
1 files changed, 12 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 3385efe7e74..e7631cc5f72 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.500 2000/07/07 18:14:39 dmcmahill Exp $ \
+# $NetBSD: bsd.pkg.mk,v 1.501 2000/07/11 14:53:43 agc Exp $ \
#
# This file is in the public domain.
#
@@ -1182,6 +1182,17 @@ show-downlevel:
.endif
.endif
+show-gtk+-prefix: _SHOW_PREFIX_USE
+show-imlib-prefix: _SHOW_PREFIX_USE
+show-kdebase-prefix: _SHOW_PREFIX_USE
+show-qt1-prefix: _SHOW_PREFIX_USE
+show-qt2-prefix: _SHOW_PREFIX_USE
+show-xpm-prefix: _SHOW_PREFIX_USE
+
+_SHOW_PREFIX_USE: .USE
+ @${PKG_INFO} -qp ${.TARGET:S/^show-//:S/-prefix//} 2>/dev/null | \
+ ${AWK} 'BEGIN { p="${X11PREFIX}" } { p = $$2 } END { printf("%s\n", p) }'
+
.if !target(show-pkgsrc-dir)
show-pkgsrc-dir:
.if defined(IGNORE)