don't bother computing pkgname if all we want is the plist from the pkgpath

This commit is contained in:
espie 2010-07-06 11:27:38 +00:00
parent 9393b27969
commit 8ea8f2a482

View File

@ -1,6 +1,6 @@
#-*- mode: Makefile; tab-width: 4; -*- #-*- mode: Makefile; tab-width: 4; -*-
# ex:ts=4 sw=4 filetype=make: # ex:ts=4 sw=4 filetype=make:
# $OpenBSD: bsd.port.mk,v 1.1011 2010/07/05 09:00:28 espie Exp $ # $OpenBSD: bsd.port.mk,v 1.1012 2010/07/06 11:27:38 espie Exp $
# $FreeBSD: bsd.port.mk,v 1.264 1996/12/25 02:27:44 imp 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 $ # $NetBSD: bsd.port.mk,v 1.62 1998/04/09 12:47:02 hubertf Exp $
# #
@ -2868,11 +2868,8 @@ _print-package-args:
@libs=`for i in ${_LIB4${SUBPACKAGE}:S/>/\>/g:S/</\</g}; do echo "$$i"| { \ @libs=`for i in ${_LIB4${SUBPACKAGE}:S/>/\>/g:S/</\</g}; do echo "$$i"| { \
IFS=:; read dep pkg subdir target; \ IFS=:; read dep pkg subdir target; \
${_flavor_fragment}; \ ${_flavor_fragment}; \
if default=$$(eval $$toset ${MAKE} _print-packagename); then \ if ! eval $$toset ${MAKE} print-plist-contents|${_grab_libs_from_plist}; \
case "X$$pkg" in X) pkg=$$(echo "$$default" |${_version2default});; \ then \
esac; \
eval $$toset ${MAKE} print-plist-contents|${_grab_libs_from_plist}; \
else \
echo 1>&2 "Problem with dependency ${_i}"; \ echo 1>&2 "Problem with dependency ${_i}"; \
exit 1; \ exit 1; \
fi; }; \ fi; }; \