summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorkristerw <kristerw@pkgsrc.org>2005-03-03 22:47:34 +0000
committerkristerw <kristerw@pkgsrc.org>2005-03-03 22:47:34 +0000
commitad680a34f0cf7eb3baba4747fbe9aec4372dbd97 (patch)
tree53e38a008ae32b4571ec0ef42bdb7cf56ead1232 /misc
parent9fcba1c4687ddeef051c0a7f2b435cf0649a9eec (diff)
downloadpkgsrc-ad680a34f0cf7eb3baba4747fbe9aec4372dbd97.tar.gz
Prevent use of undefined variables on unsupported platforms.
Diffstat (limited to 'misc')
-rw-r--r--misc/openoffice-bin/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/misc/openoffice-bin/Makefile b/misc/openoffice-bin/Makefile
index b3a15d601b5..3e934ff3601 100644
--- a/misc/openoffice-bin/Makefile
+++ b/misc/openoffice-bin/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2005/02/27 11:14:49 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2005/03/03 22:47:34 kristerw Exp $
PKGNAME= openoffice-bin-${OO_VER}
CATEGORIES= misc
@@ -98,14 +98,18 @@ ARCH= ${MACHINE_ARCH:C/i[3-6]86/i386/g}
. include "Makefile.${OPSYS}.${ARCH}"
.endif
+.if defined(DISTNAME)
.if ${DISTNAME} == "OOo_${OO_VER}_SolarisSparc_install"
PLIST_SRC= ${PKGDIR}/PLIST.SolarisSparc
-.elif ${DISTNAME} == "OOo_${OO_VER}_SolarisIntel_install"
+. elif ${DISTNAME} == "OOo_${OO_VER}_SolarisIntel_install"
PLIST_SRC= ${PKGDIR}/PLIST.SolarisIntel
-.elif ${DISTNAME} == "OOo_${OO_VER}_LinuxIntel_install"
+. elif ${DISTNAME} == "OOo_${OO_VER}_LinuxIntel_install"
PLIST_SRC= ${PKGDIR}/PLIST.LinuxIntel
-.else
+. else
PKG_FAIL_REASON= '${PKGNAME}: cannot figure out which PLIST to use'
+. endif
+.else
+DISTNAME= # Dummy to prevent error from missing DISTNAME
.endif
.include "../../mk/bsd.pkg.mk"