summaryrefslogtreecommitdiff
path: root/fonts/fontconfig
diff options
context:
space:
mode:
authorjlam <jlam>2005-06-03 17:02:36 +0000
committerjlam <jlam>2005-06-03 17:02:36 +0000
commit9d7ff2090c37e0ed57733d378012152b047c6ae6 (patch)
treed3c47bbb811d1a1d26669c17575bcf7bdc8ec3fc /fonts/fontconfig
parent34a0f88f2ac1469964eaeeba7fe159113144ab89 (diff)
downloadpkgsrc-9d7ff2090c37e0ed57733d378012152b047c6ae6.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 'fonts/fontconfig')
-rw-r--r--fonts/fontconfig/builtin.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/fonts/fontconfig/builtin.mk b/fonts/fontconfig/builtin.mk
index 5e48d16ab8c..3fdac8407a1 100644
--- a/fonts/fontconfig/builtin.mk
+++ b/fonts/fontconfig/builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.5 2005/06/03 16:03:09 jlam Exp $
+# $NetBSD: builtin.mk,v 1.6 2005/06/03 17:02:36 jlam Exp $
BUILTIN_PKG:= fontconfig
@@ -17,7 +17,8 @@ IS_BUILTIN.fontconfig= no
. if exists(${H_FONTCONFIG})
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.fontconfig!= \
dir=`cd ${BUILDLINK_PKGSRCDIR.fontconfig} && ${PWD_CMD}`; \
cd ${TMPDIR:U/tmp:Q} && \