svn commit: r417532 - head/Mk

Mathieu Arnold mat at FreeBSD.org
Sun Jun 26 16:23:38 UTC 2016


Author: mat
Date: Sun Jun 26 16:23:37 2016
New Revision: 417532
URL: https://svnweb.freebsd.org/changeset/ports/417532

Log:
  Add opt_CMAKE_BOOL_OFF, oposite of opt_CMAKE_BOOL.
  
  PR:		210576
  Sponsored by:	Absolight

Modified:
  head/Mk/bsd.options.mk   (contents, props changed)

Modified: head/Mk/bsd.options.mk
==============================================================================
--- head/Mk/bsd.options.mk	Sun Jun 26 15:17:31 2016	(r417531)
+++ head/Mk/bsd.options.mk	Sun Jun 26 16:23:37 2016	(r417532)
@@ -101,6 +101,9 @@
 # ${opt}_CMAKE_BOOL		Will add to CMAKE_ARGS:
 #				Option enabled  -D${content}:BOOL=true
 #				Option disabled -D${content}:BOOL=false
+# ${opt}_CMAKE_BOOL_OFF		Will add to CMAKE_ARGS:
+#				Option enabled  -D${content}:BOOL=false
+#				Option disabled -D${content}:BOOL=true
 #
 # ${opt}_QMAKE_ON		When option is enabled, it will add its content to
 #				the QMAKE_ARGS.
@@ -522,6 +525,9 @@ CONFIGURE_ARGS+=	${${opt}_CONFIGURE_WITH
 .    if defined(${opt}_CMAKE_BOOL)
 CMAKE_ARGS+=		${${opt}_CMAKE_BOOL:C/.*/-D&:BOOL=true/}
 .    endif
+.    if defined(${opt}_CMAKE_BOOL_OFF)
+CMAKE_ARGS+=		${${opt}_CMAKE_BOOL_OFF:C/.*/-D&:BOOL=false/}
+.    endif
 .    for configure in CONFIGURE CMAKE QMAKE
 .      if defined(${opt}_${configure}_ON)
 ${configure}_ARGS+=	${${opt}_${configure}_ON}
@@ -569,6 +575,9 @@ CONFIGURE_ARGS+=	${${opt}_CONFIGURE_WITH
 .    if defined(${opt}_CMAKE_BOOL)
 CMAKE_ARGS+=		${${opt}_CMAKE_BOOL:C/.*/-D&:BOOL=false/}
 .    endif
+.    if defined(${opt}_CMAKE_BOOL_OFF)
+CMAKE_ARGS+=		${${opt}_CMAKE_BOOL_OFF:C/.*/-D&:BOOL=true/}
+.    endif
 .    for configure in CONFIGURE CMAKE QMAKE
 .      if defined(${opt}_${configure}_OFF)
 ${configure}_ARGS+=	${${opt}_${configure}_OFF}


More information about the svn-ports-head mailing list