diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-12-02 21:58:13 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-12-02 21:58:13 +0000 |
commit | 9bfb6f2e7b0903a052a3d26892b5faec401b54a7 (patch) | |
tree | c910702d4451ea039592ad073dfa764b158c21b4 /share/mk | |
parent | 1705d4b8477de38699361ec0c168c844c218bd66 (diff) |
one way to deal with LIB_DEPENDS on alpha
Diffstat (limited to 'share/mk')
-rw-r--r-- | share/mk/bsd.port.mk | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk index 7803c52eabe..676190d8305 100644 --- a/share/mk/bsd.port.mk +++ b/share/mk/bsd.port.mk @@ -1,6 +1,6 @@ #-*- mode: Fundamental; tab-width: 4; -*- # ex:ts=4 -# $OpenBSD: bsd.port.mk,v 1.15 1997/12/02 11:11:57 niklas Exp $ +# $OpenBSD: bsd.port.mk,v 1.16 1997/12/02 21:58:12 niklas Exp $ # $NetBSD: $ # # bsd.port.mk - 940820 Jordan K. Hubbard. @@ -1578,6 +1578,30 @@ run-depends: _DEPENDS_USE lib-depends: .if defined(LIB_DEPENDS) .if !defined(NO_DEPENDS) +.if (${MACHINE_ARCH} == "alpha") + @for i in ${LIB_DEPENDS}; do \ + lib=`${ECHO} $$i | ${SED} -e 's/\\\.[0-9][0-9]*\\\.[0-9][0-9]*:.*//'`; \ + dir=`${ECHO} $$i | ${SED} -e 's/[^:]*://'`; \ + if expr "$$dir" : '.*:' > /dev/null; then \ + target=`${ECHO} $$dir | ${SED} -e 's/.*://'`; \ + dir=`${ECHO} $$dir | ${SED} -e 's/:.*//'`; \ + else \ + target=${DEPENDS_TARGET}; \ + fi; \ + if ${LD} -r -o /dev/null -l$$lib; then \ + ${ECHO_MSG} "===> ${PKGNAME} depends on library: $$lib - found"; \ + else \ + ${ECHO_MSG} "===> ${PKGNAME} depends on library: $$lib - not found"; \ + ${ECHO_MSG} "===> Verifying $$target for $$lib in $$dir"; \ + if [ ! -d "$$dir" ]; then \ + ${ECHO_MSG} ">> No directory for $$lib. Skipping.."; \ + else \ + (cd $$dir; ${MAKE} ${.MAKEFLAGS} $$target) ; \ + ${ECHO_MSG} "===> Returning to build of ${PKGNAME}"; \ + fi; \ + fi; \ + done +.else @for i in ${LIB_DEPENDS}; do \ lib=`${ECHO} $$i | ${SED} -e 's/:.*//'`; \ dir=`${ECHO} $$i | ${SED} -e 's/[^:]*://'`; \ @@ -1601,6 +1625,7 @@ lib-depends: fi; \ done .endif +.endif .else @${DO_NADA} .endif |