diff options
author | schwarz <schwarz@pkgsrc.org> | 2010-06-16 20:23:05 +0000 |
---|---|---|
committer | schwarz <schwarz@pkgsrc.org> | 2010-06-16 20:23:05 +0000 |
commit | a4b4b315b10735a6d9a6bb3727c44180d8fa2653 (patch) | |
tree | 620ff4905cdcf542e230d3f3022062affde96c78 /mk/buildlink3 | |
parent | f0ddc07eb723cbee05ef69b8ab2d41c30a2764ba (diff) | |
download | pkgsrc-a4b4b315b10735a6d9a6bb3727c44180d8fa2653.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}!= \ |