diff options
author | schwarz <schwarz> | 2010-06-16 20:23:05 +0000 |
---|---|---|
committer | schwarz <schwarz> | 2010-06-16 20:23:05 +0000 |
commit | 6fef030694e124a766242418f1fa36b1812c0a19 (patch) | |
tree | 620ff4905cdcf542e230d3f3022062affde96c78 /mk/buildlink3 | |
parent | 45c5536d1fcb9d7694094e5ac0bf9f45a3b5ddc4 (diff) | |
download | pkgsrc-6fef030694e124a766242418f1fa36b1812c0a19.tar.gz |
Analogously to the case of modular xorg, do not use imake if it is not
available on the system (e.g. on MacOS 10.6). This prevents a circular
dependency on such systems involving x11-links and imake.
Diffstat (limited to 'mk/buildlink3')
-rw-r--r-- | mk/buildlink3/imake-check.mk | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/mk/buildlink3/imake-check.mk b/mk/buildlink3/imake-check.mk index 2f2f0d813b9..0ec2e6c7c64 100644 --- a/mk/buildlink3/imake-check.mk +++ b/mk/buildlink3/imake-check.mk @@ -1,4 +1,4 @@ -# $NetBSD: imake-check.mk,v 1.7 2007/11/27 23:06:43 rillig Exp $ +# $NetBSD: imake-check.mk,v 1.8 2010/06/16 20:23:05 schwarz Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -57,16 +57,22 @@ # .include "../../mk/buildlink3/imake-check.mk" # +.if defined(IMAKE) +_TMP_IMAKE= ${IMAKE} +.else +_TMP_IMAKE= ${X11BASE}/bin/imake +.endif + .for _pair_ in ${BUILTIN_IMAKE_CHECK} . for pkg in ${_pair_:C/\:[^:]*$//} . for symbol in ${_pair_:C/^[^:]*\://} -. if ${X11_TYPE} == "modular" +. if ${X11_TYPE} == "modular" || !exists(${_TMP_IMAKE}) BUILTIN_IMAKE_CHECK.${pkg}= no . else USE_TOOLS+= cat:pkgsrc echo:pkgsrc grep:pkgsrc mkdir:pkgsrc \ rm:pkgsrc test:pkgsrc -USE_TOOLS+= imake:pkgsrc ${IMAKE_TOOLS:S/$/:pkgsrc/} # XXX -IMAKE?= ${X11BASE}/bin/imake # XXX +USE_TOOLS+= imake:pkgsrc ${IMAKE_TOOLS:S/$/:pkgsrc/} +IMAKE?= ${X11BASE}/bin/imake . if !defined(BUILTIN_IMAKE_CHECK.${pkg}) BUILTIN_IMAKE_CHECK.${pkg}!= \ |