Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.port.mk
Show First 20 Lines • Show All 4,069 Lines • ▼ Show 20 Lines | if [ -z "$${recursive_cmd}" ]; then \ | ||||
${ECHO_MSG} "_FLAVOR_RECURSIVE_SH requires recursive_cmd to be set to the recursive make target to run." >&2; \ | ${ECHO_MSG} "_FLAVOR_RECURSIVE_SH requires recursive_cmd to be set to the recursive make target to run." >&2; \ | ||||
${FALSE}; \ | ${FALSE}; \ | ||||
fi; \ | fi; \ | ||||
if [ "$${recursive_dirs-null}" = "null" ]; then \ | if [ "$${recursive_dirs-null}" = "null" ]; then \ | ||||
${ECHO_MSG} "_FLAVOR_RECURSIVE_SH requires recursive_dirs to be set to the directories to recurse." >&2; \ | ${ECHO_MSG} "_FLAVOR_RECURSIVE_SH requires recursive_dirs to be set to the directories to recurse." >&2; \ | ||||
${FALSE}; \ | ${FALSE}; \ | ||||
fi; \ | fi; \ | ||||
for dir in $${recursive_dirs}; do \ | for dir in $${recursive_dirs}; do \ | ||||
unset flavor; \ | unset flavor FLAVOR; \ | ||||
case $${dir} in \ | case $${dir} in \ | ||||
*@*/*) ;; \ | *@*/*) ;; \ | ||||
*@*) \ | *@*) \ | ||||
flavor=$${dir\#*@}; \ | flavor=$${dir\#*@}; \ | ||||
dir=$${dir%@*}; \ | dir=$${dir%@*}; \ | ||||
;; \ | ;; \ | ||||
esac; \ | esac; \ | ||||
case $$dir in \ | case $$dir in \ | ||||
▲ Show 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | @recursive_cmd="fetch"; \ | ||||
recursive_dirs="${_DEPEND_SPECIALS}"; \ | recursive_dirs="${_DEPEND_SPECIALS}"; \ | ||||
${_FLAVOR_RECURSIVE_SH} | ${_FLAVOR_RECURSIVE_SH} | ||||
.endif | .endif | ||||
.if !target(fetch-recursive) | .if !target(fetch-recursive) | ||||
fetch-recursive: | fetch-recursive: | ||||
@${ECHO_MSG} "===> Fetching all distfiles for ${PKGNAME} and dependencies" | @${ECHO_MSG} "===> Fetching all distfiles for ${PKGNAME} and dependencies" | ||||
@recursive_cmd="fetch"; \ | @recursive_cmd="fetch"; \ | ||||
recursive_dirs="${.CURDIR} $$(${ALL-DEPENDS-FLAVORS-LIST})"; \ | recursive_dirs="${.CURDIR}${FLAVOR:D@${FLAVOR}} $$(${ALL-DEPENDS-FLAVORS-LIST})"; \ | ||||
${_FLAVOR_RECURSIVE_SH} | ${_FLAVOR_RECURSIVE_SH} | ||||
.endif | .endif | ||||
.if !target(fetch-recursive-list) | .if !target(fetch-recursive-list) | ||||
fetch-recursive-list: | fetch-recursive-list: | ||||
@recursive_cmd="fetch-list"; \ | @recursive_cmd="fetch-list"; \ | ||||
recursive_dirs="${.CURDIR} $$(${ALL-DEPENDS-FLAVORS-LIST})"; \ | recursive_dirs="${.CURDIR}${FLAVOR:D@${FLAVOR}} $$(${ALL-DEPENDS-FLAVORS-LIST})"; \ | ||||
${_FLAVOR_RECURSIVE_SH} | ${_FLAVOR_RECURSIVE_SH} | ||||
.endif | .endif | ||||
# Used by fetch-required and fetch-required list, this script looks | # Used by fetch-required and fetch-required list, this script looks | ||||
# at each of the dependencies. If 3 items are specified in the tuple, | # at each of the dependencies. If 3 items are specified in the tuple, | ||||
# such as foo:graphics/foo:extract, the first item (foo) | # such as foo:graphics/foo:extract, the first item (foo) | ||||
# is examined. Only if it begins with a / and does not exist on the | # is examined. Only if it begins with a / and does not exist on the | ||||
# file-system will ``make targ'' proceed. | # file-system will ``make targ'' proceed. | ||||
▲ Show 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | |||||
.endfor | .endfor | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.if !target(checksum-recursive) | .if !target(checksum-recursive) | ||||
checksum-recursive: | checksum-recursive: | ||||
@${ECHO_MSG} "===> Fetching and checking checksums for ${PKGNAME} and dependencies" | @${ECHO_MSG} "===> Fetching and checking checksums for ${PKGNAME} and dependencies" | ||||
@recursive_cmd="checksum"; \ | @recursive_cmd="checksum"; \ | ||||
recursive_dirs="${.CURDIR} $$(${ALL-DEPENDS-FLAVORS-LIST})"; \ | recursive_dirs="${.CURDIR}${FLAVOR:D@${FLAVOR}} $$(${ALL-DEPENDS-FLAVORS-LIST})"; \ | ||||
${_FLAVOR_RECURSIVE_SH} | ${_FLAVOR_RECURSIVE_SH} | ||||
.endif | .endif | ||||
# Dependency lists: build and runtime. Print out directory names. | # Dependency lists: build and runtime. Print out directory names. | ||||
build-depends-list: | build-depends-list: | ||||
.if defined(PKG_DEPENDS) || defined(EXTRACT_DEPENDS) || defined(PATCH_DEPENDS) || defined(FETCH_DEPENDS) || defined(BUILD_DEPENDS) || defined(LIB_DEPENDS) | .if defined(PKG_DEPENDS) || defined(EXTRACT_DEPENDS) || defined(PATCH_DEPENDS) || defined(FETCH_DEPENDS) || defined(BUILD_DEPENDS) || defined(LIB_DEPENDS) | ||||
@${BUILD-DEPENDS-LIST} | @${BUILD-DEPENDS-LIST} | ||||
▲ Show 20 Lines • Show All 781 Lines • ▼ Show 20 Lines | config: | ||||
@${ECHO_MSG} "===> Skipping 'config' as NO_DIALOG is defined" | @${ECHO_MSG} "===> Skipping 'config' as NO_DIALOG is defined" | ||||
.endif | .endif | ||||
.endif # config | .endif # config | ||||
.if !target(config-recursive) | .if !target(config-recursive) | ||||
config-recursive: | config-recursive: | ||||
@${ECHO_MSG} "===> Setting user-specified options for ${PKGNAME} and dependencies"; | @${ECHO_MSG} "===> Setting user-specified options for ${PKGNAME} and dependencies"; | ||||
@recursive_cmd="config-conditional"; \ | @recursive_cmd="config-conditional"; \ | ||||
recursive_dirs="${.CURDIR} $$(${ALL-DEPENDS-FLAVORS-LIST})"; \ | recursive_dirs="${.CURDIR}${FLAVOR:D@${FLAVOR}} $$(${ALL-DEPENDS-FLAVORS-LIST})"; \ | ||||
${_FLAVOR_RECURSIVE_SH} | ${_FLAVOR_RECURSIVE_SH} | ||||
.endif # config-recursive | .endif # config-recursive | ||||
.if !target(config-conditional) | .if !target(config-conditional) | ||||
config-conditional: | config-conditional: | ||||
.if !empty(NEW_OPTIONS) | .if !empty(NEW_OPTIONS) | ||||
@cd ${.CURDIR} && ${MAKE} config; | @cd ${.CURDIR} && ${MAKE} config; | ||||
.endif | .endif | ||||
Show All 39 Lines | .undef opt | ||||
@${ECHO_MSG} "===> Use 'make config' to modify these settings" | @${ECHO_MSG} "===> Use 'make config' to modify these settings" | ||||
.endif | .endif | ||||
.endif # showconfig | .endif # showconfig | ||||
.if !target(showconfig-recursive) | .if !target(showconfig-recursive) | ||||
showconfig-recursive: | showconfig-recursive: | ||||
@${ECHO_MSG} "===> The following configuration options are available for ${PKGNAME} and its dependencies"; | @${ECHO_MSG} "===> The following configuration options are available for ${PKGNAME} and its dependencies"; | ||||
@recursive_cmd="showconfig"; \ | @recursive_cmd="showconfig"; \ | ||||
recursive_dirs="${.CURDIR} $$(${ALL-DEPENDS-FLAVORS-LIST})"; \ | recursive_dirs="${.CURDIR}${FLAVOR:D@${FLAVOR}} $$(${ALL-DEPENDS-FLAVORS-LIST})"; \ | ||||
${_FLAVOR_RECURSIVE_SH} | ${_FLAVOR_RECURSIVE_SH} | ||||
.endif # showconfig-recursive | .endif # showconfig-recursive | ||||
.if !target(rmconfig) | .if !target(rmconfig) | ||||
rmconfig: | rmconfig: | ||||
.if exists(${OPTIONS_FILE}) | .if exists(${OPTIONS_FILE}) | ||||
-@${ECHO_MSG} "===> Removing user-configured options for ${PKGNAME}"; \ | -@${ECHO_MSG} "===> Removing user-configured options for ${PKGNAME}"; \ | ||||
optionsdir=${OPTIONS_FILE:H}; \ | optionsdir=${OPTIONS_FILE:H}; \ | ||||
Show All 10 Lines | .else | ||||
@${ECHO_MSG} "===> No user-specified options configured for ${PKGNAME}" | @${ECHO_MSG} "===> No user-specified options configured for ${PKGNAME}" | ||||
.endif | .endif | ||||
.endif # rmconfig | .endif # rmconfig | ||||
.if !target(rmconfig-recursive) | .if !target(rmconfig-recursive) | ||||
rmconfig-recursive: | rmconfig-recursive: | ||||
@${ECHO_MSG} "===> Removing user-specified options for ${PKGNAME} and its dependencies"; | @${ECHO_MSG} "===> Removing user-specified options for ${PKGNAME} and its dependencies"; | ||||
@recursive_cmd="rmconfig"; \ | @recursive_cmd="rmconfig"; \ | ||||
recursive_dirs="${.CURDIR} $$(${ALL-DEPENDS-FLAVORS-LIST})"; \ | recursive_dirs="${.CURDIR}${FLAVOR:D@${FLAVOR}} $$(${ALL-DEPENDS-FLAVORS-LIST})"; \ | ||||
${_FLAVOR_RECURSIVE_SH} | ${_FLAVOR_RECURSIVE_SH} | ||||
.endif # rmconfig-recursive | .endif # rmconfig-recursive | ||||
.if !target(pretty-print-config) | .if !target(pretty-print-config) | ||||
MULTI_START= [ | MULTI_START= [ | ||||
MULTI_END= ] | MULTI_END= ] | ||||
GROUP_START= [ | GROUP_START= [ | ||||
GROUP_END= ] | GROUP_END= ] | ||||
▲ Show 20 Lines • Show All 351 Lines • Show Last 20 Lines |