version 1.9, 2004/09/15 03:59:17 |
version 1.9.4.4, 2005/01/24 18:03:01 |
|
|
# # |
# # |
# .if !defined(PKG_OPTIONS.wibble) |
# .if !defined(PKG_OPTIONS.wibble) |
# PKG_DEFAULT_OPTIONS+= sasl |
# PKG_DEFAULT_OPTIONS+= sasl |
# endif |
# .endif |
# .include "../../mk/bsd.options.mk" |
# .include "../../mk/bsd.options.mk" |
# |
# |
# # Package-specific option-handling |
# # Package-specific option-handling |
Line 160 PKG_FAIL_REASON+= "\"${_opt_}\" is not a |
|
Line 160 PKG_FAIL_REASON+= "\"${_opt_}\" is not a |
|
. endif |
. endif |
.endfor |
.endfor |
|
|
.PHONY: pre-install-depends supported-options-message |
_PKG_OPTIONS_WORDWRAP_FILTER= \ |
pre-install-depends: supported-options-message |
|
.if !defined(PKG_SUPPORTED_OPTIONS) |
|
supported-options-message: # do nothing |
|
.else |
|
supported-options-message: ${WRKDIR}/.som_done |
|
${WRKDIR}/.som_done: ${WRKDIR} |
|
. if !empty(PKG_SUPPORTED_OPTIONS) |
|
@${ECHO} "==========================================================================" |
|
@${ECHO} "The supported build options for this package are:" |
|
@${ECHO} "" |
|
@${ECHO} "${PKG_SUPPORTED_OPTIONS}" | ${XARGS} -n 1 | ${SORT} | \ |
|
${AWK} ' \ |
${AWK} ' \ |
BEGIN { printwidth = 40; line = "" } \ |
BEGIN { printwidth = 40; line = "" } \ |
{ \ |
{ \ |
Line 186 ${WRKDIR}/.som_done: ${WRKDIR} |
|
Line 175 ${WRKDIR}/.som_done: ${WRKDIR} |
|
} \ |
} \ |
END { if (length(line) > 0) print " "line } \ |
END { if (length(line) > 0) print " "line } \ |
' |
' |
|
|
|
.if !defined(_PKG_OPTIONS_AVAILABLE) && defined(PKG_SUPPORTED_OPTIONS) && !empty(PKG_SUPPORTED_OPTIONS) |
|
_PKG_OPTIONS_AVAILABLE!= ${ECHO} ${PKG_SUPPORTED_OPTIONS} | ${XARGS} -n 1 | ${SORT} |
|
.endif |
|
.if !defined(_PKG_OPTIONS_DEFAULT) && defined(PKG_DEFAULT_OPTIONS) && !empty(PKG_DEFAULT_OPTIONS) |
|
_PKG_OPTIONS_DEFAULT!= ${ECHO} ${PKG_DEFAULT_OPTIONS} | ${XARGS} -n 1 | ${SORT} |
|
.endif |
|
.if !defined(_PKG_OPTIONS_ENABLED) && defined(PKG_OPTIONS) && !empty(PKG_OPTIONS) |
|
_PKG_OPTIONS_ENABLED!= ${ECHO} ${PKG_OPTIONS} | ${XARGS} -n 1 | ${SORT} |
|
.endif |
|
|
|
.PHONY: show-options |
|
show-options: |
|
@${ECHO} "available: ${_PKG_OPTIONS_AVAILABLE}" |
|
@${ECHO} "default: ${_PKG_OPTIONS_DEFAULT}" |
|
@${ECHO} "enabled: ${_PKG_OPTIONS_ENABLED}" |
|
|
|
.if defined(PKG_SUPPORTED_OPTIONS) |
|
.PHONY: supported-options-message |
|
pre-extract: supported-options-message |
|
supported-options-message: |
|
. if !empty(PKG_SUPPORTED_OPTIONS) |
|
@${ECHO} "==========================================================================" |
|
@${ECHO} "The supported build options for this package are:" |
|
@${ECHO} "" |
|
@${ECHO} "${PKG_SUPPORTED_OPTIONS}" | ${XARGS} -n 1 | ${SORT} | \ |
|
${_PKG_OPTIONS_WORDWRAP_FILTER} |
|
. if !empty(PKG_OPTIONS) |
|
@${ECHO} "" |
|
@${ECHO} "The currently selected options are:" |
|
@${ECHO} "" |
|
@${ECHO} "${PKG_OPTIONS}" | ${XARGS} -n 1 | ${SORT} | \ |
|
${_PKG_OPTIONS_WORDWRAP_FILTER} |
|
. endif |
@${ECHO} "" |
@${ECHO} "" |
@${ECHO} "You can select which build options to use by setting the following" |
@${ECHO} "You can select which build options to use by setting the following" |
@${ECHO} "variables. Their current value is shown:" |
@${ECHO} "variables. Their current value is shown:" |
Line 200 ${WRKDIR}/.som_done: ${WRKDIR} |
|
Line 223 ${WRKDIR}/.som_done: ${WRKDIR} |
|
. undef _var_ |
. undef _var_ |
@${ECHO} "" |
@${ECHO} "" |
@${ECHO} "==========================================================================" |
@${ECHO} "==========================================================================" |
@${TOUCH} ${.TARGET} |
|
. endif |
. endif |
.endif |
.endif |