Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jun 2016 16:23:37 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r417532 - head/Mk
Message-ID:  <201606261623.u5QGNb3f052015@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606261623.u5QGNb3f052015>