From ad680a34f0cf7eb3baba4747fbe9aec4372dbd97 Mon Sep 17 00:00:00 2001 From: kristerw Date: Thu, 3 Mar 2005 22:47:34 +0000 Subject: Prevent use of undefined variables on unsupported platforms. --- misc/openoffice-bin/Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'misc') 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" -- cgit v1.2.3