summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorkristerw <kristerw>2004-04-23 23:52:42 +0000
committerkristerw <kristerw>2004-04-23 23:52:42 +0000
commitb0c73a9ed83b90c83c52af351a249c2e9cc5d948 (patch)
tree35fd4e6713c4cf0d61b516687b70ccc34746a398 /emulators
parentbd03e0fdc904ff5be716df40338414be7cd83fa2 (diff)
downloadpkgsrc-b0c73a9ed83b90c83c52af351a249c2e9cc5d948.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