still need to look in the default package for multi-package cases.

use -K that we now have...
This commit is contained in:
espie 2004-11-27 12:36:14 +00:00
parent 8541e5e6f4
commit a60ebd295b

View File

@ -1,6 +1,6 @@
#-*- mode: Makefile; tab-width: 4; -*-
# ex:ts=4 sw=4 filetype=make:
# $OpenBSD: bsd.port.mk,v 1.667 2004/11/27 09:59:35 espie Exp $
# $OpenBSD: bsd.port.mk,v 1.668 2004/11/27 12:36:14 espie Exp $
# $FreeBSD: bsd.port.mk,v 1.264 1996/12/25 02:27:44 imp Exp $
# $NetBSD: bsd.port.mk,v 1.62 1998/04/09 12:47:02 hubertf Exp $
#
@ -2413,7 +2413,12 @@ _print-package-args:
libspecs='';comma=''; \
default=`eval $$toset ${MAKE} _print-packagename`; \
case "X$$pkg" in X) pkg=`echo $$default|sed -e 's,-[0-9].*,-*,'`;; esac; \
listlibs='ls $$shdir 2>/dev/null'; \
if pkg_info -q -e $$pkg; then \
listlibs='ls $$shdir 2>/dev/null'; \
else \
eval 1>&2 $$toset ${MAKE} ${PKGREPOSITORY}/$$default.tgz; \
listlibs='pkg_info -L -K ${PKGREPOSITORY}/$$default.tgz|grep "@lib $$shdir" |sed -e "s:@lib $$shdir/::"'; \
fi; \
IFS=,; for d in $$dep; do \
${_libresolve_fragment}; \
case "$$check" in \