1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00

Fix loading of old options

Tested by:	flo@, gelraen (via IRC)
This commit is contained in:
Baptiste Daroussin 2012-06-04 10:23:42 +00:00
parent b8bb8f7ce9
commit ad17fa0e98
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=298346

View File

@ -17,7 +17,10 @@ OPTIONSFILE?= ${PORT_DBDIR}/${UNIQUENAME}/options
.if !defined(NOPORTDOCS)
PORT_OPTIONS+= DOCS
.endif
.if !defined(WITHOUT_NLS)
PORT_OPTIONS+= NLS
.endif
# Set the default values for the global options, as defined by portmgr
.if !defined(NOPORTEXAMPLES)
@ -107,6 +110,9 @@ PORT_OPTIONS:= ${PORT_OPTIONS:N${opt}}
. endfor
## options files (from dialog)
# unset the old WITH/WITHOUT
.for opt in ${ALL_OPTIONS}
.endfor
. if exists(${OPTIONSFILE}) && !make(rmconfig)
. include "${OPTIONSFILE}"
. endif
@ -114,20 +120,16 @@ PORT_OPTIONS:= ${PORT_OPTIONS:N${opt}}
. include "${OPTIONSFILE}.local"
. endif
# XXX(to be removed)
. if defined(OPTIONS)
. undef optname
. for O in ${OPTIONS:C/".*"//g}
. if defined(WITH_${O})
PORT_OPTIONS+= ${O}
### convert WITH and WITHOUT found in make.conf or reloaded from old optionsfile
.for opt in ${ALL_OPTIONS}
.if defined(WITH_${opt})
PORT_OPTIONS+= ${opt}
PORT_OPTIONS:= ${PORT_OPTIONS:O:u}
. endif
. if defined(WITHOUT_${O})
PORT_OPTIONS:= ${PORT_OPTIONS:N${O}}
. endif
. endfor
. endif
# XXX(end to be removed)
.endif
.if defined(WITHOUT_${opt})
PORT_OPTIONS:= ${PORT_OPTIONS:N${opt}}
.endif
.endfor
## Finish by using the options set by the port config dialog, if any
. for opt in ${OPTIONS_FILE_SET}