diff options
author | kristerw <kristerw@pkgsrc.org> | 2005-03-03 22:47:34 +0000 |
---|---|---|
committer | kristerw <kristerw@pkgsrc.org> | 2005-03-03 22:47:34 +0000 |
commit | 64ab5e2ea37bda145b2f334ff74c7a26ebe43b1e (patch) | |
tree | 53e38a008ae32b4571ec0ef42bdb7cf56ead1232 /misc/openoffice-bin | |
parent | dafe53032a8fcda1d5a45487cefdd9d249633cea (diff) | |
download | pkgsrc-64ab5e2ea37bda145b2f334ff74c7a26ebe43b1e.tar.gz |
Prevent use of undefined variables on unsupported platforms.
Diffstat (limited to 'misc/openoffice-bin')
-rw-r--r-- | misc/openoffice-bin/Makefile | 12 |
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" |