summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2007-10-10 15:27:15 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2007-10-10 15:27:15 +0000
commit19713782abb74739c48f37ae5414b7712903a9fd (patch)
tree263c245c46a0530196853441a8262934c0c385d9
parent503809f6e689ef3268d96acd149c8cb608eba035 (diff)
downloadpkgsrc-19713782abb74739c48f37ae5414b7712903a9fd.tar.gz
Fix a long standing bug where PKG_INFO was used before it was defined.
-rw-r--r--www/ns-plugger-common/Makefile16
1 files changed, 8 insertions, 8 deletions
diff --git a/www/ns-plugger-common/Makefile b/www/ns-plugger-common/Makefile
index a82179a6558..10c52dd5f47 100644
--- a/www/ns-plugger-common/Makefile
+++ b/www/ns-plugger-common/Makefile
@@ -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