pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/tools Consolidate xmkmf with the other "imake" tools.
details: https://anonhg.NetBSD.org/pkgsrc/rev/3685938dbeb0
branches: trunk
changeset: 505021:3685938dbeb0
user: jlam <jlam%pkgsrc.org@localhost>
date: Wed Dec 28 22:21:19 2005 +0000
description:
Consolidate xmkmf with the other "imake" tools.
diffstat:
mk/tools/replace.mk | 43 +++++++++++++------------------------------
1 files changed, 13 insertions(+), 30 deletions(-)
diffs (71 lines):
diff -r a4d54070ba4d -r 3685938dbeb0 mk/tools/replace.mk
--- a/mk/tools/replace.mk Wed Dec 28 21:44:50 2005 +0000
+++ b/mk/tools/replace.mk Wed Dec 28 22:21:19 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.147 2005/12/28 16:46:38 reed Exp $
+# $NetBSD: replace.mk,v 1.148 2005/12/28 22:21:19 jlam Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -704,34 +704,6 @@
. endif
.endif
-.if !defined(TOOLS_IGNORE.xmkmf) && !empty(_USE_TOOLS:Mxmkmf)
-. if !empty(PKGPATH:Mx11/XFree86-imake) || !empty(PKGPATH:Mx11/xorg-imake)
-MAKEFLAGS+= TOOLS_IGNORE.xmkmf=
-. elif !empty(_TOOLS_USE_PKGSRC.xmkmf:M[yY][eE][sS])
-TOOLS_CREATE+= xmkmf
-. if defined(X11_TYPE) && !empty(X11_TYPE:MXFree86)
-TOOLS_DEPENDS.xmkmf?= XFree86-imake>=4.4.0:../../x11/XFree86-imake
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.xmkmf=imake
-TOOLS_PATH.xmkmf= ${TOOLS_PREFIX.xmkmf}/${X11ROOT_PREFIX}/bin/xmkmf
-. elif defined(X11_TYPE) && !empty(X11_TYPE:Mxorg)
-TOOLS_DEPENDS.xmkmf?= xorg-imake>=6.8:../../x11/xorg-imake
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.xmkmf=xorg-imake
-TOOLS_PATH.xmkmf= ${TOOLS_PREFIX.xmkmf}/${X11ROOT_PREFIX}/bin/xmkmf
-. else # !empty(X11_TYPE:Mnative)
-TOOLS_PATH.xmkmf= ${X11BASE}/bin/xmkmf
-. 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}.
-#
-. if !empty(USE_XPKGWEDGE:M[yY][eE][sS])
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.xpkgwedge=xpkgwedge
-TOOLS_PATH.xmkmf= ${TOOLS_PREFIX.xpkgwedge}/bin/pkgxmkmf
-. endif
-. endif
-.endif
-
.if !defined(TOOLS_IGNORE.yacc) && !empty(_USE_TOOLS:Myacc)
. if !empty(PKGPATH:Mdevel/bison)
MAKEFLAGS+= TOOLS_IGNORE.yacc=
@@ -912,7 +884,7 @@
# These tools are all supplied by an X11 imake package if there is no
# native tool available.
#
-_TOOLS.x11-imake= imake mkdirhier
+_TOOLS.x11-imake= imake mkdirhier xmkmf
.for _t_ in ${_TOOLS.x11-imake}
. if !defined(TOOLS_IGNORE.${_t_}) && !empty(_USE_TOOLS:M${_t_})
@@ -935,6 +907,17 @@
. endif
. endif
.endfor
+#
+# 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}.
+#
+.if !defined(TOOLS_IGNORE.xmkmf) && !empty(_USE_TOOLS:Mxmkmf)
+. if !empty(USE_XPKGWEDGE:M[yY][eE][sS])
+TOOLS_FIND_PREFIX+= TOOLS_PREFIX.xpkgwedge=xpkgwedge
+TOOLS_PATH.xmkmf= ${TOOLS_PREFIX.xpkgwedge}/bin/pkgxmkmf
+. endif
+.endif
######################################################################
Home |
Main Index |
Thread Index |
Old Index