FreeBSD Bugzilla – Attachment 143927 Details for
Bug 191144
[patch] Mk/bsd.options.mk: Add opt_IMPLIES and opt_PREVENTS
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Second version. More iterations, better naming.
implies_prevents.patch (text/plain), 1.14 KB, created by
Adam Weinberger
on 2014-06-19 14:46:22 UTC
(
hide
)
Description:
Second version. More iterations, better naming.
Filename:
MIME Type:
Creator:
Adam Weinberger
Created:
2014-06-19 14:46:22 UTC
Size:
1.14 KB
patch
obsolete
>Index: bsd.options.mk >=================================================================== >--- bsd.options.mk (revision 358421) >+++ bsd.options.mk (working copy) >@@ -95,6 +95,10 @@ > # ${opt}_QMAKE_OFF When option is disabled, it will add its content to > # the QMAKE_ARGS. > # >+# ${opt}_IMPLIES When option is enabled, options named in its contents will >+# be enabled too >+# ${opt}_PREVENTS When option is enabled, enabling any of the options >+# in its content will produce an error > # ${opt}_USE= FOO=bar When option is enabled, it will enable > # USE_FOO+= bar > # If you need more than one option, you can do >@@ -383,6 +387,22 @@ > NEW_OPTIONS:= ${NEW_OPTIONS:N${opt}} > .endfor > >+# Enable options implied by other options >+.for count in 1 2 3 >+. for opt in ${PORT_OPTIONS} >+PORT_OPTIONS+= ${${opt}_IMPLIES} >+. endfor >+.endfor >+ >+# Prevent options that conflict >+.for opt in ${PORT_OPTIONS} >+. for conflict in ${${opt}_PREVENTS} >+. if ${PORT_OPTIONS:M${conflict}} >+IGNORE= Option ${conflict} conflicts with option ${opt} >+. endif >+. endfor >+.endfor >+ > # Finally, add options required by slave ports > PORT_OPTIONS+= ${OPTIONS_SLAVE} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 191144
:
143890
|
143927
|
147180
|
154870
|
155061
|
155062
|
160162