summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-01-12 18:29:03 +0000
committerjlam <jlam@pkgsrc.org>2006-01-12 18:29:03 +0000
commit3c30c2b5334cfd81e5e1c21462eabdede4b5d1e0 (patch)
treee7ccd61e091494f38f706ed4590b412341cb75bc /mk
parenta4f03da9ba719487b5b54ae66823bf74a4e98677 (diff)
downloadpkgsrc-3c30c2b5334cfd81e5e1c21462eabdede4b5d1e0.tar.gz
Re-implement some code that was lost in revision 1.144 so that IMAKE may
be overridden to point to the path of the imake binary to use.
Diffstat (limited to 'mk')
-rw-r--r--mk/tools/replace.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk
index 5efa81672a1..78953ad8fd8 100644
--- a/mk/tools/replace.mk
+++ b/mk/tools/replace.mk
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.153 2006/01/09 18:32:52 jlam Exp $
+# $NetBSD: replace.mk,v 1.154 2006/01/12 18:29:03 jlam Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -951,6 +951,12 @@ TOOLS_PATH.${_t_}= ${X11BASE}/bin/${_t_}
. endif
.endfor
#
+# If IMAKE is defined, then use that as the path to the imake binary.
+#
+.if !defined(TOOLS_IGNORE.imake) && !empty(_USE_TOOLS:Mimake) && defined(IMAKE)
+TOOLS_PATH.xmkmf= ${IMAKE}
+.endif
+#
# If we're using xpkgwedge, then we need to invoke the special xmkmf
# script that will find imake config files in both ${PREFIX} and in
# ${X11BASE}.