pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/openoffice-bin Prevent use of undefined variables...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a345b8afd201
branches:  trunk
changeset: 490150:a345b8afd201
user:      kristerw <kristerw%pkgsrc.org@localhost>
date:      Thu Mar 03 22:47:34 2005 +0000

description:
Prevent use of undefined variables on unsupported platforms.

diffstat:

 misc/openoffice-bin/Makefile |  12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r c9f812be484c -r a345b8afd201 misc/openoffice-bin/Makefile
--- a/misc/openoffice-bin/Makefile      Thu Mar 03 22:43:49 2005 +0000
+++ b/misc/openoffice-bin/Makefile      Thu Mar 03 22:47:34 2005 +0000
@@ -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 @@
 .  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
+PKG_FAIL_REASON= '${PKGNAME}:  cannot figure out which PLIST to use'
+.  endif
 .else
-PKG_FAIL_REASON= '${PKGNAME}:  cannot figure out which PLIST to use'
+DISTNAME=      # Dummy to prevent error from missing DISTNAME
 .endif
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index