aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2015-08-25 20:08:43 +0800
committerbapt <bapt@FreeBSD.org>2015-08-25 20:08:43 +0800
commitbfea223042bf48601286b4c8401575e5c2ead6f5 (patch)
tree4e88fcc14cfed0dfba3fa9fcdc217d5356da8fc8 /Mk
parentb219ba377aa10c6e902573d0098c0f307ec31868 (diff)
downloadfreebsd-ports-gnome-bfea223042bf48601286b4c8401575e5c2ead6f5.tar.gz
freebsd-ports-gnome-bfea223042bf48601286b4c8401575e5c2ead6f5.tar.zst
freebsd-ports-gnome-bfea223042bf48601286b4c8401575e5c2ead6f5.zip
Make build-depends-list and run-depends-list accept dependency lines without
${PORTSDIR} Sponsored by: Gandi.net
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.port.mk20
1 files changed, 14 insertions, 6 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 3a1047578d00..2f29c21b87f2 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -4421,10 +4421,14 @@ build-depends-list:
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 \
- if [ -d $$dir ]; then \
- ${ECHO_CMD} $$dir; \
+ case $$dir in \
+ /*) pdir=$$dir ;; \
+ *) pdir=${PORTSDIR}/$$dir ;; \
+ esac ; \
+ if [ -d $$pdir ]; then \
+ ${ECHO_CMD} $$pdir; \
else \
- ${ECHO_MSG} "${PKGNAME}: \"$$dir\" non-existent -- dependency list incomplete" >&2; \
+ ${ECHO_MSG} "${PKGNAME}: \"$$pdir\" non-existent -- dependency list incomplete" >&2; \
fi; \
done | ${SORT} -u
@@ -4435,10 +4439,14 @@ run-depends-list:
RUN-DEPENDS-LIST= \
for dir in $$(${ECHO_CMD} "${_LIB_RUN_DEPENDS:C,.*:([^:]*).*,\1,}" | ${SED} -e 'y/ /\n/' | ${SORT} -u); do \
- if [ -d $$dir ]; then \
- ${ECHO_CMD} $$dir; \
+ case $$dir in \
+ /*) pdir=$$dir ;; \
+ *) pdir=${PORTSDIR}/$$dir ;; \
+ esac ; \
+ if [ -d $$pdir ]; then \
+ ${ECHO_CMD} $$pdir; \
else \
- ${ECHO_MSG} "${PKGNAME}: \"$$dir\" non-existent -- dependency list incomplete" >&2; \
+ ${ECHO_MSG} "${PKGNAME}: \"$$pdir\" non-existent -- dependency list incomplete" >&2; \
fi; \
done | ${SORT} -u