aboutsummaryrefslogtreecommitdiffstats
path: root/ports-mgmt
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2007-09-27 14:27:40 +0800
committerlinimon <linimon@FreeBSD.org>2007-09-27 14:27:40 +0800
commite4702e57c70c5700e75f681f39fe8b6cc261d52d (patch)
tree085d9c81dcc2d9ace347fb93c4cca976b238243d /ports-mgmt
parent195663f22404decaea230facbcbaf7b16cf96b4c (diff)
downloadfreebsd-ports-gnome-e4702e57c70c5700e75f681f39fe8b6cc261d52d.tar.gz
freebsd-ports-gnome-e4702e57c70c5700e75f681f39fe8b6cc261d52d.tar.zst
freebsd-ports-gnome-e4702e57c70c5700e75f681f39fe8b6cc261d52d.zip
Add another anti-foot-shooting measure that will be necessary for finishing
the work on bsd.perl.mk.
Diffstat (limited to 'ports-mgmt')
-rw-r--r--ports-mgmt/portmk/Mk/bsd.port.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/ports-mgmt/portmk/Mk/bsd.port.mk b/ports-mgmt/portmk/Mk/bsd.port.mk
index a87a902c980f..42e26e1f96f8 100644
--- a/ports-mgmt/portmk/Mk/bsd.port.mk
+++ b/ports-mgmt/portmk/Mk/bsd.port.mk
@@ -4968,6 +4968,10 @@ ${deptype:L}-depends:
.if !defined(NO_DEPENDS)
@for i in `${ECHO_CMD} "${${deptype}_DEPENDS}"`; do \
prog=`${ECHO_CMD} $$i | ${SED} -e 's/:.*//'`; \
+ if [ -z "$$prog" ]; then \
+ ${ECHO_MSG} "Error: there is an empty port dependency in ${deptype}_DEPENDS."; \
+ break; \
+ fi; \
dir=`${ECHO_CMD} $$i | ${SED} -e 's/[^:]*://'`; \
if ${EXPR} "$$dir" : '.*:' > /dev/null; then \
target=`${ECHO_CMD} $$dir | ${SED} -e 's/.*://'`; \