diff options
author | Bryan Drewery <bdrewery@FreeBSD.org> | 2013-10-04 11:38:13 +0000 |
---|---|---|
committer | Bryan Drewery <bdrewery@FreeBSD.org> | 2013-10-04 11:38:13 +0000 |
commit | ff427f8d8539e45d02b4e98ac30acbf86d82f40d (patch) | |
tree | 05338e991c361b579efa0efc68d71847a05c1289 | |
parent | 9c070db8b77a734403188e4590a3e4f19b0e98fa (diff) | |
download | ports-ff427f8d8539e45d02b4e98ac30acbf86d82f40d.tar.gz ports-ff427f8d8539e45d02b4e98ac30acbf86d82f40d.zip |
Notes
-rw-r--r-- | Mk/bsd.options.mk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Mk/bsd.options.mk b/Mk/bsd.options.mk index 28886a6edd8d..e52790f3a491 100644 --- a/Mk/bsd.options.mk +++ b/Mk/bsd.options.mk @@ -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}="@comment " . 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 |