mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
Allow multiple value in ${opt}_USE= FOO=bar,baz.
Which is nice in case you end up with something like : X11_USE= xorg=x11 xorg=ice xorg=sm xorg=xext xorg=xineramaproto xorg=xinerama xorg=xrandr xorg=xrender xorg=xtst now you can do : X11_USE= xorg=x11,ice,sm,xext,xineramaproto,xinerama,xrandr,xrender,xtst PR: ports/183892 Approved by: bapt
This commit is contained in:
parent
6690bf52a3
commit
2cc3335d59
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=333568
@ -95,6 +95,8 @@
|
||||
#
|
||||
# ${opt}_USE= FOO=bar When option is enabled, it will enable
|
||||
# USE_FOO+= bar
|
||||
# If you need more than one option, you can do
|
||||
# FOO=bar,baz and you'll get USE_FOO=bar baz
|
||||
#
|
||||
# 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
|
||||
@ -383,7 +385,7 @@ PLIST_SUB:= ${PLIST_SUB} ${opt}="@comment "
|
||||
. if defined(${opt}_USE)
|
||||
. for option in ${${opt}_USE}
|
||||
_u= ${option:C/=.*//g}
|
||||
USE_${_u:U}+= ${option:C/.*=//g}
|
||||
USE_${_u:U}+= ${option:C/.*=//g:C/,/ /g}
|
||||
. endfor
|
||||
. endif
|
||||
. if defined(${opt}_CONFIGURE_ENABLE)
|
||||
|
Loading…
Reference in New Issue
Block a user