pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk Move USE_XPKGWEDGE handling to bsd.prefs.mk. The lo...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7b9750c39dbf
branches:  trunk
changeset: 522849:7b9750c39dbf
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Dec 27 14:29:45 2006 +0000

description:
Move USE_XPKGWEDGE handling to bsd.prefs.mk. The logic depends on
X11_TYPE and some other settings which can overriden by the platform
defaults. This has the nice side effect of simplifying the handling
in bsd.prefs.mk. Discussed with and reviewed by wiz@. Keep the
documentation for USE_XPKGWEDGE in defaults/mk.conf as suggested by
salo@.

diffstat:

 mk/bsd.prefs.mk     |  23 +++++++++++------------
 mk/defaults/mk.conf |  12 +++++-------
 2 files changed, 16 insertions(+), 19 deletions(-)

diffs (78 lines):

diff -r 16d0215ef266 -r 7b9750c39dbf mk/bsd.prefs.mk
--- a/mk/bsd.prefs.mk   Wed Dec 27 13:43:09 2006 +0000
+++ b/mk/bsd.prefs.mk   Wed Dec 27 14:29:45 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.242 2006/12/20 01:04:46 joerg Exp $
+# $NetBSD: bsd.prefs.mk,v 1.243 2006/12/27 14:29:45 joerg Exp $
 #
 # Make file, included to get the site preferences, if any.  Should
 # only be included by package Makefiles before any .if defined()
@@ -421,19 +421,17 @@
 .if exists(${LOCALBASE}/lib/X11/config/xpkgwedge.def) || \
     exists(${X11BASE}/lib/X11/config/xpkgwedge.def)
 USE_XPKGWEDGE=  yes
+.elif defined(_OPSYS_NEEDS_XPKGWEDGE) && \
+    !empty(_OPSYS_NEEDS_XPKGWEDGE:M[yY][eE][sS])
+USE_XPKGWEDGE= yes
+.elif ${PKG_INSTALLATION_TYPE} == "pkgviews"
+USE_XPKGWEDGE=         yes
+.elif ${X11_TYPE} == "modular"
+USE_XPKGWEDGE= no
 .else
 USE_XPKGWEDGE?=        yes
 .endif
 
-.if defined(_OPSYS_NEEDS_XPKGWEDGE) && \
-    !empty(_OPSYS_NEEDS_XPKGWEDGE:M[yY][eE][sS])
-USE_XPKGWEDGE= yes
-.endif
-
-.if ${PKG_INSTALLATION_TYPE} == "pkgviews"
-USE_XPKGWEDGE=         yes
-.endif
-
 # Default installation prefix for meta-pkgs/xorg.
 .if defined(X11_TYPE) && !empty(X11_TYPE:Mxorg)
 X11ROOT_PREFIX?=       xorg
@@ -441,9 +439,10 @@
 X11ROOT_PREFIX?=       # empty
 .endif
 
-.if (defined(X11_TYPE) && !empty(X11_TYPE:Mxorg)) && \
-    (defined(X11_TYPE) && empty(X11_TYPE:Mnative))
+.if ${X11_TYPE} == "xorg"
 X11BASE?=              ${LOCALBASE}/${X11ROOT_PREFIX}
+.elif ${X11_TYPE} == "modular"
+X11BASE=               ${LOCALBASE}
 .endif
 
 .if !empty(USE_XPKGWEDGE:M[Yy][Ee][Ss])
diff -r 16d0215ef266 -r 7b9750c39dbf mk/defaults/mk.conf
--- a/mk/defaults/mk.conf       Wed Dec 27 13:43:09 2006 +0000
+++ b/mk/defaults/mk.conf       Wed Dec 27 14:29:45 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mk.conf,v 1.141 2006/12/20 07:48:59 martti Exp $
+# $NetBSD: mk.conf,v 1.142 2006/12/27 14:29:45 joerg Exp $
 #
 
 # This file provides default values for variables that may be overridden
@@ -236,15 +236,13 @@
 # Default: man (i.e. /usr/pkg/man)
 # NOTE: the support for custom setting (not "man") is not complete.
 
-.if defined(X11_TYPE) && ${X11_TYPE} == "modular"
-USE_XPKGWEDGE?=        no
-.else
-USE_XPKGWEDGE?=        yes
-.endif
+# USE_XPKGWEDGE?=      yes
 # Whether we should use xpkgwedge or not to install all packages into
 # ${LOCALBASE}.
 # Possible: yes, no
-# Default: yes
+# This is not set here as X11_TYPE=modular does not use USE_XPKGWEDGE
+# at all and the existence of xpkgwedge in the system overrides the
+# user setting.
 
 BSDSRCDIR?=    /usr/src
 # Where the NetBSD src module source tree is located



Home | Main Index | Thread Index | Old Index