aboutsummaryrefslogtreecommitdiff
path: root/Mk/bsd.port.mk
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1995-11-26 12:35:49 +0000
committerSatoshi Asami <asami@FreeBSD.org>1995-11-26 12:35:49 +0000
commitba036ace54dbcdb89239db16dfab7284d7dab19e (patch)
tree5b1b75fd259ec7b82d8f38cb544c4779c4b81441 /Mk/bsd.port.mk
parentda789be7912022616a2845eb03a4fa872ee66622 (diff)
downloadports-ba036ace54dbcdb89239db16dfab7284d7dab19e.tar.gz
ports-ba036ace54dbcdb89239db16dfab7284d7dab19e.zip
Notes
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r--Mk/bsd.port.mk28
1 files changed, 23 insertions, 5 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 1d7340bbe508..408996ddaa11 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -3,7 +3,7 @@
# bsd.port.mk - 940820 Jordan K. Hubbard.
# This file is in the public domain.
#
-# $Id: bsd.port.mk,v 1.186 1995/10/17 20:58:08 asami Exp $
+# $Id: bsd.port.mk,v 1.187 1995/11/17 16:49:40 asami Exp $
#
# Please view me with 4 column tabs!
@@ -1005,16 +1005,34 @@ _DEPENDS_USE: .USE
@for i in ${DEPENDS_TMP}; do \
prog=`/bin/echo $$i | /usr/bin/sed -e 's/:.*//'`; \
dir=`/bin/echo $$i | /usr/bin/sed -e 's/.*://'`; \
- ${ECHO_MSG} "===> ${PKGNAME} depends on executable: $$prog ($$dir)"; \
+ if expr "$$prog" : \\/ >/dev/null; then \
+ ${ECHO_MSG} "===> ${PKGNAME} depends on file: $$prog ($$dir)"; \
+ else \
+ ${ECHO_MSG} "===> ${PKGNAME} depends on executable: $$prog ($$dir)"; \
+ fi; \
done
.else
@for i in ${DEPENDS_TMP}; do \
prog=`/bin/echo $$i | /usr/bin/sed -e 's/:.*//'`; \
dir=`/bin/echo $$i | /usr/bin/sed -e 's/.*://'`; \
- if which -s "$$prog"; then \
- ${ECHO_MSG} "===> ${PKGNAME} depends on executable: $$prog - found"; \
+ if expr "$$prog" : \\/ >/dev/null; then \
+ if [ -e "$$prog" ]; then \
+ ${ECHO_MSG} "===> ${PKGNAME} depends on file: $$prog - found"; \
+ notfound=0; \
+ else \
+ ${ECHO_MSG} "===> ${PKGNAME} depends on file: $$prog - not found"; \
+ notfound=1; \
+ fi; \
else \
- ${ECHO_MSG} "===> ${PKGNAME} depends on executable: $$prog - not found"; \
+ if which -s "$$prog"; then \
+ ${ECHO_MSG} "===> ${PKGNAME} depends on executable: $$prog - found"; \
+ notfound=0; \
+ else \
+ ${ECHO_MSG} "===> ${PKGNAME} depends on executable: $$prog - not found"; \
+ notfound=1; \
+ fi; \
+ fi; \
+ if [ $$notfound != 0 ]; then \
${ECHO_MSG} "===> Verifying build for $$prog in $$dir"; \
if [ ! -d "$$dir" ]; then \
${ECHO_MSG} ">> No directory for $$prog. Skipping.."; \