summaryrefslogtreecommitdiff
path: root/graphics/MesaLib/builtin.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2005-06-03 17:02:36 +0000
committerjlam <jlam@pkgsrc.org>2005-06-03 17:02:36 +0000
commitc85165ac0786a6271c5e08213cf55d5cb30c803f (patch)
treed3c47bbb811d1a1d26669c17575bcf7bdc8ec3fc /graphics/MesaLib/builtin.mk
parent34af7f3ee5c052ed041d03d4abf04dca86bdcf25 (diff)
downloadpkgsrc-c85165ac0786a6271c5e08213cf55d5cb30c803f.tar.gz
Only check for the existence of the first word of ${IMAKE} since it may
contain a command plus arguments. We use the standard idiom to extract the first word of a list stored in a make variable: VAR_CMD= ${VAR:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//} XXX This can be replaced with a more succinct use of variable modifiers XXX when we update the bootstrap bmake to match the latest NetBSD make XXX sources, i.e.: XXX XXX VAR_CMD= ${VAR:[1]}
Diffstat (limited to 'graphics/MesaLib/builtin.mk')
-rw-r--r--graphics/MesaLib/builtin.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/graphics/MesaLib/builtin.mk b/graphics/MesaLib/builtin.mk
index b5eba29fbab..576b9edd3ee 100644
--- a/graphics/MesaLib/builtin.mk
+++ b/graphics/MesaLib/builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.7 2005/06/03 16:03:09 jlam Exp $
+# $NetBSD: builtin.mk,v 1.8 2005/06/03 17:02:36 jlam Exp $
BUILTIN_PKG:= MesaLib
@@ -16,7 +16,8 @@ IS_BUILTIN.MesaLib= no
. if exists(${H_MESALIB})
PKGSRC_USE_TOOLS+= imake # XXX
IMAKE?= ${X11BASE}/bin/imake # XXX
-. if defined(IMAKE) && exists(${IMAKE})
+_BUILTIN_IMAKE_CMD= ${IMAKE:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//}
+. if exists(${_BUILTIN_IMAKE_CMD})
IS_BUILTIN.MesaLib!= \
dir=`cd ${BUILDLINK_PKGSRCDIR.MesaLib} && ${PWD_CMD}`; \
cd ${TMPDIR:U/tmp:Q} && \