diff options
author | bapt <bapt@FreeBSD.org> | 2013-06-06 01:21:32 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-06-06 01:21:32 +0800 |
commit | 6520048cdf0e21a1526f4bc9c919c5d8055d0b5f (patch) | |
tree | 6d1ab7f4049c691f2b053ae5b310b063ef0c04fd /Mk/bsd.options.mk | |
parent | a482163339cc307d3998e65a2ad7af808eddc12d (diff) | |
download | freebsd-ports-gnome-6520048cdf0e21a1526f4bc9c919c5d8055d0b5f.tar.gz freebsd-ports-gnome-6520048cdf0e21a1526f4bc9c919c5d8055d0b5f.tar.zst freebsd-ports-gnome-6520048cdf0e21a1526f4bc9c919c5d8055d0b5f.zip |
Remove empty radio/single/group/multi options from lists
This can happen due to slave/exclude
Diffstat (limited to 'Mk/bsd.options.mk')
-rw-r--r-- | Mk/bsd.options.mk | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Mk/bsd.options.mk b/Mk/bsd.options.mk index 7464141a5a60..34fd0845e99d 100644 --- a/Mk/bsd.options.mk +++ b/Mk/bsd.options.mk @@ -157,6 +157,29 @@ OPTIONS_GROUP_${group}:= ${OPTIONS_GROUP_${group}:N${opt}} . endfor .endfor +# Remove empty SINGLE/GROUP/RADIO/MULTI +# Can be empty because of exclude/slaves +.for single in ${OPTIONS_SINGLE} +.if empty(OPTIONS_SINGLE_${single}) +OPTIONS_SINGLE:= ${OPTIONS_SINGLE:N${single}} +.endif +.endfor +.for radio in ${OPTIONS_RADIO} +.if empty(OPTIONS_RADIO_${radio}) +OPTIONS_RADIO:= ${OPTIONS_RADIO:N${radio}} +.endif +.endfor +.for group in ${OPTIONS_GROUP} +.if empty(OPTIONS_GROUP_${group}) +OPTIONS_GROUP:= ${OPTIONS_GROUP:N${group}} +.endif +.endfor +.for multi in ${OPTIONS_MULTI} +.if empty(OPTIONS_MULTI_${multi}) +OPTIONS_MULTI:= ${OPTIONS_MULTI:N${multi}} +.endif +.endfor + # complete list COMPLETE_OPTIONS_LIST= ${ALL_OPTIONS} .for single in ${OPTIONS_SINGLE} |