summaryrefslogtreecommitdiff
path: root/mk/bsd.prefs.mk
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2004-01-23 16:49:47 +0000
committeragc <agc@pkgsrc.org>2004-01-23 16:49:47 +0000
commit76bebabaa5594a5dae0bbdcbda732060db8bf587 (patch)
tree1874d19cecc8c173e67c4b1f4b2198b8cdf05e83 /mk/bsd.prefs.mk
parentcd4dab0c6ea63442a2eb8cfa3fe6f77a849ca442 (diff)
downloadpkgsrc-76bebabaa5594a5dae0bbdcbda732060db8bf587.tar.gz
Temporary fix for xpkgwedge'd packages which were getting buildlinked
with a prefix of X11BASE, rather than LOCALBASE - check whether USE_XPKGWEDGE is defined to {"YES", "yes"} as well as looking for the existence of the xpkgwedge definition file when calculating the value of X11PREFIX.
Diffstat (limited to 'mk/bsd.prefs.mk')
-rw-r--r--mk/bsd.prefs.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk
index 262e41f673d..ec87416208d 100644
--- a/mk/bsd.prefs.mk
+++ b/mk/bsd.prefs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.140 2004/01/21 18:13:27 jlam Exp $
+# $NetBSD: bsd.prefs.mk,v 1.141 2004/01/23 16:49:47 agc Exp $
#
# Make file, included to get the site preferences, if any. Should
# only be included by package Makefiles before any .if defined()
@@ -283,7 +283,8 @@ CROSSBASE?= ${LOCALBASE}/cross
XMKMF?= ${XMKMF_CMD} ${XMKMF_FLAGS} -a
XMKMF_FLAGS?= # empty
.if exists(${LOCALBASE}/lib/X11/config/xpkgwedge.def) || \
- exists(${X11BASE}/lib/X11/config/xpkgwedge.def)
+ exists(${X11BASE}/lib/X11/config/xpkgwedge.def) || \
+ !empty(USE_XPKGWEDGE:M[Yy][Ee][Ss])
HAVE_XPKGWEDGE= yes
X11PREFIX= ${LOCALBASE}
XMKMF_CMD?= ${X11PREFIX}/bin/pkgxmkmf