diff options
author | mat <mat@FreeBSD.org> | 2014-02-24 23:40:30 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2014-02-24 23:40:30 +0800 |
commit | f2f085552ee7b9edf9872b747fd61280131d698e (patch) | |
tree | 6a907352cc57428cd3c0ceab0ab7e05352ec2189 /Mk/bsd.options.mk | |
parent | 38748c16fbba7effa36525e71af1d21e389f129b (diff) | |
download | freebsd-ports-gnome-f2f085552ee7b9edf9872b747fd61280131d698e.tar.gz freebsd-ports-gnome-f2f085552ee7b9edf9872b747fd61280131d698e.tar.zst freebsd-ports-gnome-f2f085552ee7b9edf9872b747fd61280131d698e.zip |
Really tell our users that using WITH_/WITHOUT_ to set/unset options is
deprecated.
Sponsored by: Absolight
Diffstat (limited to 'Mk/bsd.options.mk')
-rw-r--r-- | Mk/bsd.options.mk | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Mk/bsd.options.mk b/Mk/bsd.options.mk index 24ba4e77732f..f553433dd71d 100644 --- a/Mk/bsd.options.mk +++ b/Mk/bsd.options.mk @@ -259,13 +259,39 @@ NEW_OPTIONS:= ${NEW_OPTIONS:N${opt}} ### convert WITH and WITHOUT found in make.conf or reloaded from old optionsfile .for opt in ${ALL_OPTIONS} .if defined(WITH_${opt}) +OPTIONS_WARNINGS+= "WITH_${opt}" +OPTIONS_WARNINGS_SET+= ${opt} PORT_OPTIONS+= ${opt} .endif .if defined(WITHOUT_${opt}) +OPTIONS_WARNINGS+= "WITHOUT_${opt}" +OPTIONS_WARNINGS_UNSET+= ${opt} PORT_OPTIONS:= ${PORT_OPTIONS:N${opt}} .endif .endfor +.if defined(OPTIONS_WARNINGS) +WARNING+= "You are using the following deprecated options: ${OPTIONS_WARNINGS}" +WARNING+= "If you added them on the command line, you should replace them by" +WARNING+= "WITH=\"${OPTIONS_WARNINGS_SET}\" WITHOUT=\"${OPTIONS_WARNINGS_UNSET}\"" +WARNING+= "" +WARNING+= "If they are global options set in your make.conf, you should replace them with:" +.if defined(OPTIONS_WARNINGS_SET) +WARNING+= "OPTIONS_SET=${OPTIONS_WARNINGS_SET}" +.endif +.if defined(OPTIONS_WARNINGS_UNSET) +WARNING+= "OPTIONS_UNSET=${OPTIONS_WARNINGS_UNSET}" +.endif +WARNING+= "" +WARNING+= "If they are local to this port, you should use:" +.if defined(OPTIONS_WARNINGS_SET) +WARNING+= "${OPTIONS_NAME}_SET=${OPTIONS_WARNINGS_SET}" +.endif +.if defined(OPTIONS_WARNINGS_UNSET) +WARNING+= "${OPTIONS_NAME}_UNSET=${OPTIONS_WARNINGS_UNSET}" +.endif +.endif + ## Finish by using the options set by the port config dialog, if any . for opt in ${OPTIONS_FILE_SET} . if !empty(COMPLETE_OPTIONS_LIST:M${opt}) |