summaryrefslogtreecommitdiff
path: root/emulators/suse100_linux
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2007-07-29 08:55:22 +0000
committerjlam <jlam@pkgsrc.org>2007-07-29 08:55:22 +0000
commitbbb12274db6b91c0c45c895747988566dd27b13f (patch)
treec6af9d97d674d6a3ce0941cef384762c8e86171d /emulators/suse100_linux
parent5c04688beccffa3a607bc1410b096b5327c0c748 (diff)
downloadpkgsrc-bbb12274db6b91c0c45c895747988566dd27b13f.tar.gz
Add 32-bit versions of SuSE Linux 9.1 and 10.0 for use by NetBSD/x86_64
with COMPAT_LINUX32.
Diffstat (limited to 'emulators/suse100_linux')
-rw-r--r--emulators/suse100_linux/Makefile.common22
-rw-r--r--emulators/suse100_linux/emulator.mk4
2 files changed, 18 insertions, 8 deletions
diff --git a/emulators/suse100_linux/Makefile.common b/emulators/suse100_linux/Makefile.common
index e2ebfb575dc..c8ac4360b2c 100644
--- a/emulators/suse100_linux/Makefile.common
+++ b/emulators/suse100_linux/Makefile.common
@@ -1,20 +1,25 @@
-# $NetBSD: Makefile.common,v 1.16 2007/07/29 05:18:54 jlam Exp $
+# $NetBSD: Makefile.common,v 1.17 2007/07/29 08:55:31 jlam Exp $
SUSE_PKG= yes
SUSE_VERSION= 10.0
SUSE_VERSION_REQD= ${SUSE_VERSION}
-EMUL_PLATFORMS?= linux-i386 linux-powerpc linux-x86_64
-
-.include "../../mk/bsd.prefs.mk"
-
# The SuSE 10.x Linux packages are only usable on the following platforms.
+.if defined(SUSE_COMPAT32)
+EMUL_PLATFORMS?= linux-i386
+ONLY_FOR_PLATFORM+= NetBSD-3.99*-x86_64
+ONLY_FOR_PLATFORM+= NetBSD-[4-9]*-x86_64
+.else
+EMUL_PLATFORMS?= linux-i386 linux-powerpc linux-x86_64
ONLY_FOR_PLATFORM+= DragonFly-*-i386
ONLY_FOR_PLATFORM+= FreeBSD-*-i386
ONLY_FOR_PLATFORM+= NetBSD-[2-9]*-i386
ONLY_FOR_PLATFORM+= NetBSD-[2-9]*-powerpc
ONLY_FOR_PLATFORM+= NetBSD-3.99*-x86_64
ONLY_FOR_PLATFORM+= NetBSD-[4-9]*-x86_64
+.endif
+
+.include "../../mk/bsd.prefs.mk"
# _SUSE_ARCH.* is a table of ${EMUL_ARCH} to SuSE architectures.
_SUSE_ARCH.${EMUL_ARCH}= ${EMUL_ARCH}
@@ -53,6 +58,11 @@ RPM2PKG_PREFIX?= ${PREFIX}
RPM2PKG_SUBPREFIX?= ${EMULSUBDIR}
RPM2PKG_STAGE?= do-install
+SUSE_PKGSRCDIR= ${.CURDIR}/../${.CURDIR:T:S/_32_/_/}
+FILESDIR= ${SUSE_PKGSRCDIR}/files
+PATCHDIR= ${SUSE_PKGSRCDIR}/patches
+PKGDIR= ${SUSE_PKGSRCDIR}
+
.if (${EMUL_ARCH} == "i386") && (${MACHINE_ARCH} == "x86_64")
PKGNAME:= ${DISTNAME:S/^suse_/suse32_/}
COMMENT:= ${COMMENT:S/Linux/Linux 32-bit/}
@@ -70,4 +80,4 @@ FILES_SUBST+= LINUX_LIBSUBDIR=${LINUX_LIBSUBDIR:Q}
# Include an "override" SuSE-specific and architecture-specific
# Makefile fragment if it exists.
#
-.sinclude "suse.${EMUL_ARCH}.mk"
+.sinclude "${SUSE_PKGSRCDIR}/suse.${EMUL_ARCH}.mk"
diff --git a/emulators/suse100_linux/emulator.mk b/emulators/suse100_linux/emulator.mk
index 3b022e062ce..ce0a086ffa3 100644
--- a/emulators/suse100_linux/emulator.mk
+++ b/emulators/suse100_linux/emulator.mk
@@ -1,4 +1,4 @@
-# $NetBSD: emulator.mk,v 1.1 2007/07/29 05:18:55 jlam Exp $
+# $NetBSD: emulator.mk,v 1.2 2007/07/29 08:55:32 jlam Exp $
#
# This file is included by linux-suse.mk in the emulator framework.
#
@@ -45,6 +45,6 @@ DEPENDS_suse-10.0.xml2?= suse_libxml2${_SUSE_VERSION_REQD}:../../emulators/suse1
.if (${EMUL_ARCH} == "i386") && (${MACHINE_ARCH} == "x86_64")
. for _mod_ in ${_LINUX_MODULES}
DEPENDS_suse-10.0.${_mod_}:= \
- ${DEPENDS_suse-10.0.${_mod_}:S/^suse_/suse32_/}
+ ${DEPENDS_suse-10.0.${_mod_}:S/^suse_/suse32_/:S/suse100_/&32_/}
. endfor
.endif