svn commit: r320926 - in head: . Mk

Baptiste Daroussin bapt at FreeBSD.org
Fri Jun 14 14:18:46 UTC 2013


Author: bapt
Date: Fri Jun 14 14:18:45 2013
New Revision: 320926
URL: http://svnweb.freebsd.org/changeset/ports/320926

Log:
  Add a forgotten helper:
  
  ${OPT}_CMAKE_ON and ${OPT}_CMAKE_OFF

Modified:
  head/CHANGES
  head/Mk/bsd.options.mk

Modified: head/CHANGES
==============================================================================
--- head/CHANGES	Fri Jun 14 14:11:51 2013	(r320925)
+++ head/CHANGES	Fri Jun 14 14:18:45 2013	(r320926)
@@ -41,6 +41,12 @@ AUTHOR:	bapt at FreeBSD.org
 
   ${OPT}_DISTFILES will append the specified distiles to DISTFILES if OPT in 'on'
 
+  ${OPT}_CMAKE_ON=<something> will automatically add:
+  CMAKE_ARGS+=<something> in case OPT is activated
+
+  ${OPT_CMAKE_OFF=<something> will automatically add:
+  CMAKE_ARGS+=<something> in case OPT is deactivated
+
 20130614:
 AUTHOR: bapt at FreeBSD.org
 

Modified: head/Mk/bsd.options.mk
==============================================================================
--- head/Mk/bsd.options.mk	Fri Jun 14 14:11:51 2013	(r320925)
+++ head/Mk/bsd.options.mk	Fri Jun 14 14:18:45 2013	(r320926)
@@ -309,6 +309,9 @@ CONFIGURE_ARGS+=	--enable-${${opt}_CONFI
 .    if defined(${opt}_CONFIGURE_ON)
 CONFIGURE_ARGS+=	${${opt}_CONFIGURE_ON}
 .    endif
+.    if defined(${opt}_CMAKE_ON)
+CMAKE_ARGS+=	${${opt}_CMAKE_ON}
+.    endif
 .    for flags in CFLAGS CXXFLAGS LDFLAGS CONFIGURE_ENV MAKE_ENV USES DISTFILES
 .      if defined(${opt}_${flags})
 ${flags}+=	${${opt}_${flags}}
@@ -326,6 +329,9 @@ CONFIGURE_ARGS+=	--disable-${${opt}_CONF
 .    if defined(${opt}_CONFIGURE_OFF)
 CONFIGURE_ARGS+=	${${opt}_CONFIGURE_OFF}
 .    endif
+.    if defined(${opt}_CMAKE_OFF)
+CMAKE_ARGS+=	${${opt}_CMAKE_OFF}
+.    endif
 .  endif
 .endfor
 


More information about the svn-ports-all mailing list