Lines 196-225
_OPTIONS_TARGETS= fetch:300:pre fetch:500:do fetch:700:post \
Link Here
|
196 |
package:300:pre package:500:do package:700:post \ |
196 |
package:300:pre package:500:do package:700:post \ |
197 |
stage:800:post |
197 |
stage:800:post |
198 |
|
198 |
|
199 |
# Set the default values for the global options, as defined by portmgr |
199 |
PORT_OPTIONS+= DOCS NLS EXAMPLES IPV6 |
200 |
.if !defined(NOPORTDOCS) |
|
|
201 |
PORT_OPTIONS+= DOCS |
202 |
.else |
203 |
OPTIONS_WARNINGS+= "NOPORTDOCS" |
204 |
WITHOUT+= DOCS |
205 |
OPTIONS_WARNINGS_UNSET+= DOCS |
206 |
.endif |
207 |
|
208 |
.if !defined(WITHOUT_NLS) |
209 |
PORT_OPTIONS+= NLS |
210 |
.else |
211 |
WITHOUT+= NLS |
212 |
.endif |
213 |
|
214 |
.if !defined(NOPORTEXAMPLES) |
215 |
PORT_OPTIONS+= EXAMPLES |
216 |
.else |
217 |
OPTIONS_WARNINGS+= "NOPORTEXAMPLES" |
218 |
WITHOUT+= EXAMPLES |
219 |
OPTIONS_WARNINGS_UNSET+= EXAMPLES |
220 |
.endif |
221 |
|
222 |
PORT_OPTIONS+= IPV6 |
223 |
|
200 |
|
224 |
# Add per arch options |
201 |
# Add per arch options |
225 |
.for opt in ${OPTIONS_DEFINE_${ARCH}} |
202 |
.for opt in ${OPTIONS_DEFINE_${ARCH}} |
Lines 325-345
NEW_OPTIONS:= ${NEW_OPTIONS:N${opt}}
Link Here
|
325 |
. endif |
302 |
. endif |
326 |
. sinclude "${OPTIONS_FILE}.local" |
303 |
. sinclude "${OPTIONS_FILE}.local" |
327 |
|
304 |
|
328 |
### convert WITH and WITHOUT found in make.conf or reloaded from old optionsfile |
|
|
329 |
# XXX once WITH_DEBUG is not magic any more, do remove the :NDEBUG from here. |
330 |
.for opt in ${ALL_OPTIONS:NDEBUG} |
331 |
.if defined(WITH_${opt}) |
332 |
OPTIONS_WARNINGS+= "WITH_${opt}" |
333 |
OPTIONS_WARNINGS_SET+= ${opt} |
334 |
PORT_OPTIONS+= ${opt} |
335 |
.endif |
336 |
.if defined(WITHOUT_${opt}) |
337 |
OPTIONS_WARNINGS+= "WITHOUT_${opt}" |
338 |
OPTIONS_WARNINGS_UNSET+= ${opt} |
339 |
PORT_OPTIONS:= ${PORT_OPTIONS:N${opt}} |
340 |
.endif |
341 |
.endfor |
342 |
|
343 |
_OPTIONS_UNIQUENAME= ${PKGNAMEPREFIX}${PORTNAME} |
305 |
_OPTIONS_UNIQUENAME= ${PKGNAMEPREFIX}${PORTNAME} |
344 |
.for _k in SET UNSET SET_FORCE UNSET_FORCE |
306 |
.for _k in SET UNSET SET_FORCE UNSET_FORCE |
345 |
.if defined(${_OPTIONS_UNIQUENAME}_${_k}) |
307 |
.if defined(${_OPTIONS_UNIQUENAME}_${_k}) |
Lines 348-375
WARNING+= "${OPTIONS_NAME}_${_k}= ${${_OPTIONS_UNIQUENAME}_${_k}}"
Link Here
|
348 |
.endif |
310 |
.endif |
349 |
.endfor |
311 |
.endfor |
350 |
|
312 |
|
351 |
.if defined(OPTIONS_WARNINGS) |
|
|
352 |
WARNING+= "You are using the following deprecated options: ${OPTIONS_WARNINGS}" |
353 |
WARNING+= "If you added them on the command line, you should replace them by" |
354 |
WARNING+= "WITH=\"${OPTIONS_WARNINGS_SET}\" WITHOUT=\"${OPTIONS_WARNINGS_UNSET}\"" |
355 |
WARNING+= "" |
356 |
WARNING+= "If they are global options set in your make.conf, you should replace them with:" |
357 |
.if defined(OPTIONS_WARNINGS_SET) |
358 |
WARNING+= "OPTIONS_SET=${OPTIONS_WARNINGS_SET}" |
359 |
.endif |
360 |
.if defined(OPTIONS_WARNINGS_UNSET) |
361 |
WARNING+= "OPTIONS_UNSET=${OPTIONS_WARNINGS_UNSET}" |
362 |
.endif |
363 |
WARNING+= "" |
364 |
WARNING+= "If they are local to this port, you should use:" |
365 |
.if defined(OPTIONS_WARNINGS_SET) |
366 |
WARNING+= "${OPTIONS_NAME}_SET=${OPTIONS_WARNINGS_SET}" |
367 |
.endif |
368 |
.if defined(OPTIONS_WARNINGS_UNSET) |
369 |
WARNING+= "${OPTIONS_NAME}_UNSET=${OPTIONS_WARNINGS_UNSET}" |
370 |
.endif |
371 |
.endif |
372 |
|
373 |
## Finish by using the options set by the port config dialog, if any |
313 |
## Finish by using the options set by the port config dialog, if any |
374 |
. for opt in ${OPTIONS_FILE_SET} |
314 |
. for opt in ${OPTIONS_FILE_SET} |
375 |
. if !empty(COMPLETE_OPTIONS_LIST:M${opt}) |
315 |
. if !empty(COMPLETE_OPTIONS_LIST:M${opt}) |
Lines 471-481
PORT_OPTIONS:= ${PORT_OPTIONS:O:u}
Link Here
|
471 |
|
411 |
|
472 |
## Now some compatibility |
412 |
## Now some compatibility |
473 |
.if empty(PORT_OPTIONS:MDOCS) |
413 |
.if empty(PORT_OPTIONS:MDOCS) |
474 |
NOPORTDOCS= yes |
414 |
PLIST_SUB+= PORTDOCS="@comment " |
|
|
415 |
.else |
416 |
PLIST_SUB+= PORTDOCS="" |
475 |
.endif |
417 |
.endif |
476 |
|
418 |
|
477 |
.if empty(PORT_OPTIONS:MEXAMPLES) |
419 |
.if empty(PORT_OPTIONS:MEXAMPLES) |
478 |
NOPORTEXAMPLES= yes |
420 |
PLIST_SUB+= PORTEXAMPLES="@comment " |
|
|
421 |
.else |
422 |
PLIST_SUB+= PORTEXAMPLES="" |
479 |
.endif |
423 |
.endif |
480 |
|
424 |
|
481 |
.if ${PORT_OPTIONS:MDEBUG} |
425 |
.if ${PORT_OPTIONS:MDEBUG} |