Fix build-depends-list and run-depends-list.
Sponsored by: Absolight
This commit is contained in:
parent
01ef1edeb6
commit
244209f68c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=455280
@ -4040,6 +4040,8 @@ DEPENDS-LIST= \
|
||||
|
||||
ALL-DEPENDS-LIST= ${DEPENDS-LIST} -r ${_UNIFIED_DEPENDS:Q}
|
||||
MISSING-DEPENDS-LIST= ${DEPENDS-LIST} -m ${_UNIFIED_DEPENDS:Q}
|
||||
BUILD-DEPENDS-LIST= ${DEPENDS-LIST} "${PKG_DEPENDS} ${EXTRACT_DEPENDS} ${PATCH_DEPENDS} ${FETCH_DEPENDS} ${BUILD_DEPENDS} ${LIB_DEPENDS}"
|
||||
RUN-DEPENDS-LIST= ${DEPENDS-LIST} "${LIB_DEPENDS} ${RUN_DEPENDS}"
|
||||
TEST-DEPENDS-LIST= ${DEPENDS-LIST} ${TEST_DEPENDS:Q}
|
||||
CLEAN-DEPENDS-LIST= ${DEPENDS-LIST} -wr ${_UNIFIED_DEPENDS:Q}
|
||||
CLEAN-DEPENDS-LIMITED-LIST= ${DEPENDS-LIST} -w ${_UNIFIED_DEPENDS:Q}
|
||||
@ -4172,37 +4174,11 @@ build-depends-list:
|
||||
@${BUILD-DEPENDS-LIST}
|
||||
.endif
|
||||
|
||||
BUILD-DEPENDS-LIST= \
|
||||
for dir in $$(${ECHO_CMD} "${PKG_DEPENDS} ${EXTRACT_DEPENDS} ${PATCH_DEPENDS} ${FETCH_DEPENDS} ${BUILD_DEPENDS} ${LIB_DEPENDS}" | ${SED} -E -e 's,([^: ]*):([^: ]*)(:[^ ]*)?,\2,g' -e 'y/ /\n/'| ${SORT} -u); do \
|
||||
case $$dir in \
|
||||
/*) pdir=$$dir ;; \
|
||||
*) pdir=${PORTSDIR}/$$dir ;; \
|
||||
esac ; \
|
||||
if [ -d $$pdir ]; then \
|
||||
${ECHO_CMD} $$pdir; \
|
||||
else \
|
||||
${ECHO_MSG} "${PKGNAME}: \"$$pdir\" non-existent -- dependency list incomplete" >&2; \
|
||||
fi; \
|
||||
done | ${SORT} -u
|
||||
|
||||
run-depends-list:
|
||||
.if defined(LIB_DEPENDS) || defined(RUN_DEPENDS)
|
||||
@${RUN-DEPENDS-LIST}
|
||||
.endif
|
||||
|
||||
RUN-DEPENDS-LIST= \
|
||||
for dir in $$(${ECHO_CMD} "${_LIB_RUN_DEPENDS:C,.*:([^:]*).*,\1,}" | ${SED} -e 'y/ /\n/' | ${SORT} -u); do \
|
||||
case $$dir in \
|
||||
/*) pdir=$$dir ;; \
|
||||
*) pdir=${PORTSDIR}/$$dir ;; \
|
||||
esac ; \
|
||||
if [ -d $$pdir ]; then \
|
||||
${ECHO_CMD} $$pdir; \
|
||||
else \
|
||||
${ECHO_MSG} "${PKGNAME}: \"$$pdir\" non-existent -- dependency list incomplete" >&2; \
|
||||
fi; \
|
||||
done | ${SORT} -u
|
||||
|
||||
test-depends-list:
|
||||
.if defined(TEST_DEPENDS)
|
||||
@${TEST-DEPENDS-LIST}
|
||||
|
Loading…
Reference in New Issue
Block a user