[Midnightbsd-cvs] mports: bsd.mport.mk: add indexing variable.

ctriv at midnightbsd.org ctriv at midnightbsd.org
Thu Mar 20 14:36:36 EDT 2008


Log Message:
-----------
add indexing variable.

Modified Files:
--------------
    mports/Mk:
        bsd.mport.mk (r1.83 -> r1.84)

-------------- next part --------------
Index: bsd.mport.mk
===================================================================
RCS file: /home/cvs/mports/Mk/bsd.mport.mk,v
retrieving revision 1.83
retrieving revision 1.84
diff -L Mk/bsd.mport.mk -L Mk/bsd.mport.mk -u -r1.83 -r1.84
--- Mk/bsd.mport.mk
+++ Mk/bsd.mport.mk
@@ -577,7 +577,7 @@
 # SKIP_FAKE_CHECK	- If MPORT_MAINTAINER_MODE is set, then each file in the plist will
 #					  checked to see if it contains ${FAKE_DESTDIR}.  Sometimes this 
 #					  produces false positives (a file contains the fake destdir, but 
-#					  its precense is harmless).  This variable is a list of files that 
+#					  its presence is harmless).  This variable is a list of files that 
 #					  will not be checked.
 #
 # Variables that serve as convenient "aliases" for your *-install targets.
@@ -1028,8 +1028,19 @@
 #
 # End of the list of all variables that need to be defined in a port.
 # Most port authors should not need to understand anything after this point.
+############################################################################
+
+# A few variables that are useful to things like magus or mport system 
+# maintaince...
+#
+# INDEXING 		- Set when a index of the system is being built. Turns
+#				  off the inclusion of options.  Sadly by the time this 
+#				  variable exists, /etc/make.conf has already been included.
+#				  You'll need to turn this off by settting __MAKE_CONF to 
+#				  /dev/null when you invoke 'make'.
 #
 
+
 # These need to be absolute since we don't know how deep in the ports
 # tree we are and thus can't go relative.  They can, of course, be overridden
 # by individual Makefiles or local system make configuration.
@@ -1225,6 +1236,7 @@
 .	undef RO
 .	undef REALOPTIONS
 .	endif
+.if !defined(INDEXING)
 .	if exists(${_OPTIONSFILE}) && !make(rmconfig)
 .	include "${_OPTIONSFILE}"
 .	endif
@@ -1232,6 +1244,7 @@
 .	include "${_OPTIONSFILE}.local"
 .	endif
 .endif
+.endif
 
 # check for old, crufty, makefile types, part 1:
 .if !defined(PORTNAME) || !( defined(PORTVERSION) || defined (DISTVERSION) ) || defined(PKGNAME)


More information about the Midnightbsd-cvs mailing list