summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorkristerw <kristerw@pkgsrc.org>2004-04-23 23:52:42 +0000
committerkristerw <kristerw@pkgsrc.org>2004-04-23 23:52:42 +0000
commit77be54d4a51319c0f47ce04c2fef113c4516caf9 (patch)
tree35fd4e6713c4cf0d61b516687b70ccc34746a398 /emulators
parent9f11af73acfcfb3f6bc748bfa7a14319acd92b20 (diff)
downloadpkgsrc-77be54d4a51319c0f47ce04c2fef113c4516caf9.tar.gz
Fail gracefully for architectures that cannot use the suse_linux
packages (instead of error due to use of uninitialized variables).
Diffstat (limited to 'emulators')
-rw-r--r--emulators/suse_linux/Makefile.application7
1 files changed, 3 insertions, 4 deletions
diff --git a/emulators/suse_linux/Makefile.application b/emulators/suse_linux/Makefile.application
index 1e88a1e4bc6..58039deb6d3 100644
--- a/emulators/suse_linux/Makefile.application
+++ b/emulators/suse_linux/Makefile.application
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.application,v 1.11 2004/04/14 11:31:12 xtraeme Exp $
+# $NetBSD: Makefile.application,v 1.12 2004/04/23 23:52:42 kristerw Exp $
.include "../../mk/bsd.prefs.mk"
@@ -8,10 +8,9 @@ _LINUX_SYSCTL_OSRELEASE?= compat.linux.osrelease
_LINUX_SYSCTL_OSRELEASE?= emul.linux.kern.osrelease
.endif
-.if (${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD")
-. if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc")
+.if ((${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD") && \
+ (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc"))
LINUX_KERNEL_OSRELEASE!= (/sbin/sysctl -n ${_LINUX_SYSCTL_OSRELEASE} 2>/dev/null; ${ECHO} 2.0.38) | ${HEAD} -1
-. endif
. if ${LINUX_KERNEL_OSRELEASE} == "2.0.38"
SUSE_DIR_PREFIX= suse64