diff options
author | agc <agc@pkgsrc.org> | 2000-07-11 14:53:35 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2000-07-11 14:53:35 +0000 |
commit | 4aeac45f89e5a02fffd8d4fe20e8af07012ec4cd (patch) | |
tree | 07c067a284dd27eed2ac53c0ec79e856fd2442d9 /mk/bsd.pkg.mk | |
parent | 2892ff05e14ce39877f3b9724d09c369fa16359e (diff) | |
download | pkgsrc-4aeac45f89e5a02fffd8d4fe20e8af07012ec4cd.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/bsd.pkg.mk')
-rw-r--r-- | mk/bsd.pkg.mk | 13 |
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) |