summaryrefslogtreecommitdiff
path: root/mk/emulator/linux-suse.mk
blob: 20f924a38277de5a43fc68fb373e4d0e8c90dc80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# $NetBSD: linux-suse.mk,v 1.9 2022/10/02 17:17:16 wiz Exp $
#
# SuSE Linux
#

# When building the SuSE packages, force the Linux type to be the specific
# version of SuSE that is being built.
#
.if defined(SUSE_PKG) && defined(SUSE_VERSION)
EMUL_TYPE.linux=	suse-${SUSE_VERSION}
.endif

# EMUL_TYPE.linux can be "suse" or "suse-[0-9]*".  If the former, then use
# the default SuSE version, otherwise use the specific version requested.
#
.if !empty(EMUL_TYPE.linux:Msuse-10.[0x])
.  include "${PKGSRCDIR}/emulators/suse100_linux/emulator.mk"

.elif !empty(EMUL_TYPE.linux:Msuse-12.[1x])
.  include "${PKGSRCDIR}/emulators/suse121_linux/emulator.mk"

.elif !empty(EMUL_TYPE.linux:Msuse-13.[1x])
.  include "${PKGSRCDIR}/emulators/suse131_linux/emulator.mk"

.elif !empty(EMUL_TYPE.linux:Msuse-15.[0-9])
.  include "${PKGSRCDIR}/emulators/suse15_linux/emulator.mk"

.else
EMUL_DISTRO=		suse-0
PKG_FAIL_REASON+=	"[linux-suse.mk] ${EMUL_TYPE.linux} is not a supported EMUL_TYPE.linux"
.endif

# XXX There should be a check here to verify that ${EMUL_DISTRO} satisfies
# XXX suse>=${SUSE_VERSION_REQD}.