Fix a long standing bug where PKG_INFO was used before it was defined.
This commit is contained in:
parent
503809f6e6
commit
19713782ab
1 changed files with 8 additions and 8 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.20 2007/07/29 05:19:59 jlam Exp $
|
||||
# $NetBSD: Makefile,v 1.21 2007/10/10 15:27:15 dmcmahill Exp $
|
||||
|
||||
DISTNAME= plugger-4.0-linux-x86-glibc
|
||||
PKGNAME= ns-${PLUGGERNAME}-${BINNAME}-${PLUGGERVERS}
|
||||
|
@ -14,13 +14,6 @@ CONFLICTS+= plugger-[0-9]* # obsolete all-in-one plugger package
|
|||
|
||||
BINNAME?= common
|
||||
|
||||
.if ${BINNAME} != common
|
||||
DEPENDS+= ${BINNAME}-[0-9]*:../../www/${BINNAME}
|
||||
NSNAME!= ${PKG_INFO} -e ${BINNAME} || ${ECHO}
|
||||
MOZILLA_HOME= ${PREFIX}/lib/netscape/${NSNAME:C/nb[0-9]+$//:S/4.80/4.8/}
|
||||
PLIST_SUBST+= MOZILLA_HOME=${MOZILLA_HOME:S/${PREFIX}\///}
|
||||
.endif
|
||||
|
||||
EMUL_PLATFORMS= linux-i386
|
||||
EMUL_MODULES.linux= base
|
||||
|
||||
|
@ -55,3 +48,10 @@ do-install: do-install-common
|
|||
.endif
|
||||
|
||||
.include "../../mk/bsd.pkg.mk"
|
||||
|
||||
.if ${BINNAME} != common
|
||||
DEPENDS+= ${BINNAME}-[0-9]*:../../www/${BINNAME}
|
||||
NSNAME!= ${PKG_INFO} -e ${BINNAME} || ${ECHO}
|
||||
MOZILLA_HOME= ${PREFIX}/lib/netscape/${NSNAME:C/nb[0-9]+$//:S/4.80/4.8/}
|
||||
PLIST_SUBST+= MOZILLA_HOME=${MOZILLA_HOME:S/${PREFIX}\///}
|
||||
.endif
|
||||
|
|
Loading…
Reference in a new issue