Date: Fri, 4 Oct 2013 11:38:14 +0000 (UTC) From: Bryan Drewery <bdrewery@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r329291 - head/Mk Message-ID: <201310041138.r94BcEC2095605@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bdrewery Date: Fri Oct 4 11:38:13 2013 New Revision: 329291 URL: http://svnweb.freebsd.org/changeset/ports/329291 Log: - Add option helper opt_USE= FOO=bar -> USE_FOO=bar Discussed with: bapt With hat: portmgr Modified: head/Mk/bsd.options.mk Modified: head/Mk/bsd.options.mk ============================================================================== --- head/Mk/bsd.options.mk Fri Oct 4 11:36:29 2013 (r329290) +++ head/Mk/bsd.options.mk Fri Oct 4 11:38:13 2013 (r329291) @@ -93,6 +93,9 @@ # ${opt}_CMAKE_OFF When option is disabled, it will add its content to # the CMAKE_ARGS. # +# ${opt}_USE= FOO=bar When option is enabled, it will enable +# USE_FOO+= bar +# # For each of CFLAGS CPPFLAGS CXXFLAGS LDFLAGS CONFIGURE_ENV MAKE_ARGS MAKE_ENV # ALL_TARGET INSTALL_TARGET USES DISTFILES PLIST_FILES PLIST_DIRS PLIST_DIRSTRY # EXTRA_PATCHES PATCHFILES PATCH_SITES CATEGORIES, defining ${opt}_${variable} @@ -381,6 +384,12 @@ PLIST_SUB:= ${PLIST_SUB} ${opt}="@commen . endif . if ${PORT_OPTIONS:M${opt}} +. if defined(${opt}_USE) +. for option in ${${opt}_USE} +_u= ${option:C/=.*//g} +USE_${_u:U}+= ${option:C/.*=//g} +. endfor +. endif . if defined(${opt}_CONFIGURE_ENABLE) CONFIGURE_ARGS+= --enable-${${opt}_CONFIGURE_ENABLE} . endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310041138.r94BcEC2095605>