[Midnightbsd-cvs] mports [15668] trunk/Mk/components/options.mk: create automatic plist substitions for options

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Dec 15 13:37:29 EST 2013


Revision: 15668
          http://svnweb.midnightbsd.org/mports/?rev=15668
Author:   laffer1
Date:     2013-12-15 13:37:27 -0500 (Sun, 15 Dec 2013)
Log Message:
-----------
create automatic plist substitions for options

Modified Paths:
--------------
    trunk/Mk/components/options.mk

Modified: trunk/Mk/components/options.mk
===================================================================
--- trunk/Mk/components/options.mk	2013-12-14 23:03:55 UTC (rev 15667)
+++ trunk/Mk/components/options.mk	2013-12-15 18:37:27 UTC (rev 15668)
@@ -229,7 +229,21 @@
 .endif
 ###
 
+.for opt in ${COMPLETE_OPTIONS_LIST} ${OPTIONS_SLAVE}
+# PLIST_SUB
+PLIST_SUB?=
+.  if defined(OPTIONS_SUB)
+.    if ! ${PLIST_SUB:M${opt}=*}
+.      if ${PORT_OPTIONS:M${opt}}
+PLIST_SUB:=     ${PLIST_SUB} ${opt}=""
+.      else
+PLIST_SUB:=     ${PLIST_SUB} ${opt}="@comment "
+.      endif
+.    endif
+.  endif
+.endfor
 
+
 .if defined(_POSTMKINCLUDED)
 
 .if !target(pre-check-config)



More information about the Midnightbsd-cvs mailing list