summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorveego <veego>2000-09-05 19:13:40 +0000
committerveego <veego>2000-09-05 19:13:40 +0000
commit15d80a0c0b3dd8a052c50ad23069563352f98740 (patch)
treec47d4af05bdc325cf889c5d60ab89333b26a3552 /mk
parent4fedfec543569702ee935051fdd7aecb914d5ff8 (diff)
downloadpkgsrc-15d80a0c0b3dd8a052c50ad23069563352f98740.tar.gz
Fix a EVAL_PREFIX problem with XPM and xfree86 4.x
Patch from Alistair G. Crooks with a small change from me after a comment from Matthias Scheler.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk11
1 files changed, 9 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 9710ee7c9b9..f089231ad00 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.561 2000/09/01 18:20:06 jlam Exp $
+# $NetBSD: bsd.pkg.mk,v 1.562 2000/09/05 19:13:40 veego Exp $
#
# This file is in the public domain.
#
@@ -756,10 +756,14 @@ DEPENDS+= ${LESSTIF_DEPENDS}
__BUILTIN_XPM!= ${EGREP} -c NormalLibXpm ${X11BASE}/lib/X11/config/X11.tmpl || ${TRUE}
.if (${__BUILTIN_XPM} == "0")
DEPENDS+= xpm-3.4k:../../graphics/xpm
+XPMDIR_DEFAULT= ${X11PREFIX}
+.else
+XPMDIR_DEFAULT= ${X11BASE}
.endif
.undef __BUILTIN_XPM
.else
DEPENDS+= xpm-3.4k:../../graphics/xpm
+XPMDIR_DEFAULT= ${X11PREFIX}
.endif
.endif
@@ -1256,8 +1260,11 @@ show-downlevel:
.if defined(EVAL_PREFIX)
.for def in ${EVAL_PREFIX}
+.if !defined(${def:C/=.*//}_DEFAULT)
+${def:C/=.*//}_DEFAULT= ${X11PREFIX}
+.endif
.if !defined(${def:C/=.*//})
-_dir_${def:C/=.*//} != (${PKG_INFO} -qp ${def:C/.*=//} 2>/dev/null; ${ECHO} " @cwd ${X11PREFIX}") | ${AWK} '{ print $$2; exit }'
+_dir_${def:C/=.*//} != (${PKG_INFO} -qp ${def:C/.*=//} 2>/dev/null; ${ECHO} " @cwd ${${def:C/=.*//}_DEFAULT}") | ${AWK} '{ print $$2; exit }'
${def:C/=.*//}=${_dir_${def:C/=.*//}}
MAKEFLAGS+= ${def:C/=.*//}=${_dir_${def:C/=.*//}}
.endif