| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.common,v 1.4 2011/02/27 15:00:06 chs Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.5 2011/02/27 15:41:55 chs Exp $ |
2 | | | 2 | |
3 | SUSE_PKG= yes | | 3 | SUSE_PKG= yes |
4 | SUSE_VERSION= 11.3 | | 4 | SUSE_VERSION= 11.3 |
5 | EMUL_REQD= suse>=${SUSE_VERSION} | | 5 | EMUL_REQD= suse>=${SUSE_VERSION} |
6 | | | 6 | |
7 | # The SuSE 11.x Linux packages are only usable on the following platforms. | | 7 | # The SuSE 11.x Linux packages are only usable on the following platforms. |
8 | # The SUSE_COMPAT32 packages are available only on x86_64 and they emulate i386. | | 8 | # The SUSE_COMPAT32 packages are available only on x86_64 and they emulate i386. |
9 | # The non-SUSE_COMPAT32 packages are available on both i386 and x86_64 | | 9 | # The non-SUSE_COMPAT32 packages are available on both i386 and x86_64 |
10 | # and they emulate the corresponding linux platform. | | 10 | # and they emulate the corresponding linux platform. |
11 | .if !defined(SUSE_COMPAT32) | | 11 | .if !defined(SUSE_COMPAT32) |
12 | EMUL_PLATFORMS+= linux-x86_64 | | 12 | EMUL_PLATFORMS+= linux-x86_64 |
13 | ONLY_FOR_PLATFORM+= NetBSD-5.99*-i386 | | 13 | ONLY_FOR_PLATFORM+= NetBSD-5.99*-i386 |
14 | ONLY_FOR_PLATFORM+= NetBSD-[6-9]*-i386 | | 14 | ONLY_FOR_PLATFORM+= NetBSD-[6-9]*-i386 |
| @@ -49,27 +49,29 @@ MANCOMPRESSED?= yes | | | @@ -49,27 +49,29 @@ MANCOMPRESSED?= yes |
49 | EMUL_PKG_FMT?= rpm | | 49 | EMUL_PKG_FMT?= rpm |
50 | RPM2PKG_PREFIX?= ${DESTDIR}${PREFIX} | | 50 | RPM2PKG_PREFIX?= ${DESTDIR}${PREFIX} |
51 | RPM2PKG_SUBPREFIX?= ${EMULSUBDIR} | | 51 | RPM2PKG_SUBPREFIX?= ${EMULSUBDIR} |
52 | RPM2PKG_STAGE?= do-install | | 52 | RPM2PKG_STAGE?= do-install |
53 | | | 53 | |
54 | SUSE_PKGSRCDIR= ${.CURDIR}/../${.CURDIR:T:S/_32_/_/} | | 54 | SUSE_PKGSRCDIR= ${.CURDIR}/../${.CURDIR:T:S/_32_/_/} |
55 | FILESDIR= ${SUSE_PKGSRCDIR}/files | | 55 | FILESDIR= ${SUSE_PKGSRCDIR}/files |
56 | PATCHDIR= ${SUSE_PKGSRCDIR}/patches | | 56 | PATCHDIR= ${SUSE_PKGSRCDIR}/patches |
57 | PKGDIR= ${SUSE_PKGSRCDIR} | | 57 | PKGDIR= ${SUSE_PKGSRCDIR} |
58 | | | 58 | |
59 | .if defined(SUSE_COMPAT32) | | 59 | .if defined(SUSE_COMPAT32) |
60 | PKGNAME:= ${DISTNAME:S/^suse_/suse32_/} | | 60 | PKGNAME:= ${DISTNAME:S/^suse_/suse32_/} |
61 | COMMENT:= ${COMMENT:S/Linux/Linux 32-bit/} | | 61 | COMMENT:= ${COMMENT:S/Linux/Linux 32-bit/} |
| | | 62 | .if defined(CONFLICTS) |
62 | CONFLICTS:= ${CONFLICTS:S/^suse_/suse32_/} | | 63 | CONFLICTS:= ${CONFLICTS:S/^suse_/suse32_/} |
| | | 64 | .endif |
63 | LINUX_BASE= linux32 | | 65 | LINUX_BASE= linux32 |
64 | .else | | 66 | .else |
65 | LINUX_BASE= linux | | 67 | LINUX_BASE= linux |
66 | .endif | | 68 | .endif |
67 | PLIST_SUBST+= LINUX_BASE=${LINUX_BASE:Q} | | 69 | PLIST_SUBST+= LINUX_BASE=${LINUX_BASE:Q} |
68 | FILES_SUBST+= LINUX_BASE=${LINUX_BASE:Q} | | 70 | FILES_SUBST+= LINUX_BASE=${LINUX_BASE:Q} |
69 | | | 71 | |
70 | LINUX_LIBSUBDIR?= lib | | 72 | LINUX_LIBSUBDIR?= lib |
71 | PLIST_SUBST+= LINUX_LIBSUBDIR=${LINUX_LIBSUBDIR:Q} | | 73 | PLIST_SUBST+= LINUX_LIBSUBDIR=${LINUX_LIBSUBDIR:Q} |
72 | FILES_SUBST+= LINUX_LIBSUBDIR=${LINUX_LIBSUBDIR:Q} | | 74 | FILES_SUBST+= LINUX_LIBSUBDIR=${LINUX_LIBSUBDIR:Q} |
73 | | | 75 | |
74 | # Include an "override" SuSE-specific and architecture-specific | | 76 | # Include an "override" SuSE-specific and architecture-specific |
75 | # Makefile fragment if it exists. | | 77 | # Makefile fragment if it exists. |