pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/buildlink3 Analogously to the case of modular xorg,...
details: https://anonhg.NetBSD.org/pkgsrc/rev/6711fa633bbd
branches: trunk
changeset: 576736:6711fa633bbd
user: schwarz <schwarz%pkgsrc.org@localhost>
date: Wed Jun 16 20:23:05 2010 +0000
description:
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:
mk/buildlink3/imake-check.mk | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r 1109433ce07f -r 6711fa633bbd mk/buildlink3/imake-check.mk
--- a/mk/buildlink3/imake-check.mk Wed Jun 16 19:57:08 2010 +0000
+++ b/mk/buildlink3/imake-check.mk Wed Jun 16 20:23:05 2010 +0000
@@ -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}!= \
Home |
Main Index |
Thread Index |
Old Index