summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2012-03-21 13:40:05 +0000
committerobache <obache@pkgsrc.org>2012-03-21 13:40:05 +0000
commit79ce8044acd594ed49b7e5af96677d70e269c279 (patch)
tree266dec94ef9f073037800e1a6d8ba78cc63520ac /emulators
parent68ed507b4216627dc4eea25d707c4272dd267690 (diff)
downloadpkgsrc-79ce8044acd594ed49b7e5af96677d70e269c279.tar.gz
Import suse121_* common parts into emulators/suse121_linux.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/suse121_linux/Makefile.common94
-rw-r--r--emulators/suse121_linux/emulator.mk53
2 files changed, 147 insertions, 0 deletions
diff --git a/emulators/suse121_linux/Makefile.common b/emulators/suse121_linux/Makefile.common
new file mode 100644
index 00000000000..9736fd3f8cd
--- /dev/null
+++ b/emulators/suse121_linux/Makefile.common
@@ -0,0 +1,94 @@
+# $NetBSD: Makefile.common,v 1.1.1.1 2012/03/21 13:40:05 obache Exp $
+# used by emulators/suse113_base/Makefile
+
+SUSE_PKG= yes
+SUSE_VERSION= 12.1
+EMUL_REQD= suse>=${SUSE_VERSION}
+
+# The SuSE 12.x Linux packages are only usable on the following platforms.
+# The SUSE_COMPAT32 packages are available only on x86_64 and they emulate i386.
+# The non-SUSE_COMPAT32 packages are available on both i386 and x86_64
+# and they emulate the corresponding linux platform.
+.if !defined(SUSE_COMPAT32)
+EMUL_PLATFORMS+= linux-x86_64
+ONLY_FOR_PLATFORM+= NetBSD-5.99*-i386
+ONLY_FOR_PLATFORM+= NetBSD-[6-9]*-i386
+.endif
+EMUL_PLATFORMS+= linux-i386
+ONLY_FOR_PLATFORM+= NetBSD-5.99*-x86_64
+ONLY_FOR_PLATFORM+= NetBSD-[6-9]*-x86_64
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+.include "../../mk/bsd.prefs.mk"
+
+# _SUSE_ARCH.* is a table of ${EMUL_ARCH} to SuSE architectures.
+_SUSE_ARCH.${EMUL_ARCH}= ${EMUL_ARCH}
+_SUSE_ARCH.i386= i586
+_SUSE_ARCH= ${_SUSE_ARCH.${EMUL_ARCH}}
+SUSE_ARCH= ${_SUSE_ARCH}
+
+_SUSE_FTP_SUBDIR= distribution/${SUSE_VERSION}/repo/oss/suse/
+_SUSE_FTP_SUBDIR_UPD= update/${SUSE_VERSION}/
+
+MASTER_SITE_SUSE_${SUSE_VERSION}= \
+ http://download.opensuse.org/${_SUSE_FTP_SUBDIR}
+
+MASTER_SITE_SUSE_${SUSE_VERSION}_UPD= \
+ http://download.opensuse.org/${_SUSE_FTP_SUBDIR_UPD}
+
+MASTER_SITES?= ${MASTER_SITE_SUSE_${SUSE_VERSION}}/${SUSE_ARCH}/
+DIST_SUBDIR?= suse${SUSE_VERSION:S/.//}
+
+HOMEPAGE?= http://www.suse.com/
+
+WRKSRC?= ${WRKDIR}
+BUILD_DIRS?= # empty
+MANCOMPRESSED?= yes
+
+EMUL_PKG_FMT?= rpm
+RPM2PKG_PREFIX?= ${DESTDIR}${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 defined(SUSE_COMPAT32)
+PKGNAME:= ${DISTNAME:S/^suse_/suse32_/}
+COMMENT:= ${COMMENT:S/Linux/Linux 32-bit/}
+.if defined(CONFLICTS)
+CONFLICTS:= ${CONFLICTS:S/^suse_/suse32_/}
+.endif
+LINUX_BASE= linux32
+.else
+LINUX_BASE= linux
+.endif
+PLIST_SUBST+= LINUX_BASE=${LINUX_BASE:Q}
+FILES_SUBST+= LINUX_BASE=${LINUX_BASE:Q}
+
+LINUX_LIBSUBDIR?= lib
+PLIST_SUBST+= LINUX_LIBSUBDIR=${LINUX_LIBSUBDIR:Q}
+FILES_SUBST+= LINUX_LIBSUBDIR=${LINUX_LIBSUBDIR:Q}
+
+# Include an "override" SuSE-specific and architecture-specific
+# Makefile fragment if it exists.
+#
+.sinclude "${SUSE_PKGSRCDIR}/suse.${EMUL_ARCH}.mk"
+
+.if defined(RPMPKGS) && !empty(RPMPKGS)
+. for distfile in ${RPMPKGS}
+DISTFILES+= ${distfile}.rpm
+SITES.${distfile:T:S/=/--/}.rpm?= \
+ ${MASTER_SITE_SUSE_${SUSE_VERSION}}${distfile:E}/
+. endfor
+.endif
+.if defined(RPMUPDPKGS) && !empty(RPMUPDPKGS)
+. for distfile in ${RPMUPDPKGS}
+DISTFILES+= ${distfile}.rpm
+SITES.${distfile:T:S/=/--/}.rpm?= \
+ ${MASTER_SITE_SUSE_${SUSE_VERSION}_UPD}${distfile:E}/
+. endfor
+.endif
diff --git a/emulators/suse121_linux/emulator.mk b/emulators/suse121_linux/emulator.mk
new file mode 100644
index 00000000000..67f8574186e
--- /dev/null
+++ b/emulators/suse121_linux/emulator.mk
@@ -0,0 +1,53 @@
+# $NetBSD: emulator.mk,v 1.1.1.1 2012/03/21 13:40:05 obache Exp $
+#
+# This file is included by linux-suse.mk in the emulator framework.
+#
+# Variables set by this file:
+#
+# EMUL_DISTRO
+# The SuSE Linux distribution.
+#
+# DEPENDS_${EMUL_DISTRO}.*
+# A table that maps "modules" to SuSE package dependencies.
+#
+
+EMUL_DISTRO= suse-12.1
+
+.if defined(SUSE_PKG)
+_SUSE_VERSION_REQD= -12.1{,nb*}
+.else
+_SUSE_VERSION_REQD= >=12.1<12.2
+.endif
+
+# DEPENDS_suse-12.1.* maps Linux "modules" to SuSE package dependencies.
+DEPENDS_suse-12.1.alsa?= suse_alsa${_SUSE_VERSION_REQD}:../../emulators/suse121_alsa
+DEPENDS_suse-12.1.aspell?= suse_aspell${_SUSE_VERSION_REQD}:../../emulators/suse121_aspell
+DEPENDS_suse-12.1.base?= suse_base${_SUSE_VERSION_REQD}:../../emulators/suse121_base
+DEPENDS_suse-12.1.compat?= suse_compat${_SUSE_VERSION_REQD}:../../emulators/suse121_compat
+DEPENDS_suse-12.1.cups?= suse_libcups${_SUSE_VERSION_REQD}:../../emulators/suse121_libcups
+DEPENDS_suse-12.1.curl?= suse_libcurl${_SUSE_VERSION_REQD}:../../emulators/suse121_libcurl
+DEPENDS_suse-12.1.drm?= suse_libdrm${_SUSE_VERSION_REQD}:../../emulators/suse121_libdrm
+DEPENDS_suse-12.1.expat?= suse_expat${_SUSE_VERSION_REQD}:../../emulators/suse121_expat
+DEPENDS_suse-12.1.fontconfig?= suse_fontconfig${_SUSE_VERSION_REQD}:../../emulators/suse121_fontconfig
+DEPENDS_suse-12.1.freetype2?= suse_freetype2${_SUSE_VERSION_REQD}:../../emulators/suse121_freetype2
+DEPENDS_suse-12.1.glx?= suse_glx${_SUSE_VERSION_REQD}:../../emulators/suse121_glx
+DEPENDS_suse-12.1.gtk2?= suse_gtk2${_SUSE_VERSION_REQD}:../../emulators/suse121_gtk2
+DEPENDS_suse-12.1.jpeg?= suse_libjpeg${_SUSE_VERSION_REQD}:../../emulators/suse121_libjpeg
+DEPENDS_suse-12.1.krb5?= suse_krb5${_SUSE_VERSION_REQD}:../../emulators/suse121_krb5
+DEPENDS_suse-12.1.libsigc++2?= suse_libsigc++2${_SUSE_VERSION_REQD}:../../emulators/suse121_libsigc++2
+DEPENDS_suse-12.1.locale?= suse_locale${_SUSE_VERSION_REQD}:../../emulators/suse121_locale
+DEPENDS_suse-12.1.motif?= suse_openmotif${_SUSE_VERSION_REQD}:../../emulators/suse121_openmotif
+DEPENDS_suse-12.1.openssl?= suse_openssl${_SUSE_VERSION_REQD}:../../emulators/suse121_openssl
+DEPENDS_suse-12.1.png?= suse_libpng${_SUSE_VERSION_REQD}:../../emulators/suse121_libpng
+DEPENDS_suse-12.1.qt4?= suse_qt4${_SUSE_VERSION_REQD}:../../emulators/suse121_qt4
+DEPENDS_suse-12.1.slang?= suse_slang${_SUSE_VERSION_REQD}:../../emulators/suse121_slang
+DEPENDS_suse-12.1.tiff?= suse_libtiff${_SUSE_VERSION_REQD}:../../emulators/suse121_libtiff
+DEPENDS_suse-12.1.x11?= suse_x11${_SUSE_VERSION_REQD}:../../emulators/suse121_x11
+DEPENDS_suse-12.1.xml2?= suse_libxml2${_SUSE_VERSION_REQD}:../../emulators/suse121_libxml2
+
+.if (${EMUL_ARCH} == "i386") && (${MACHINE_ARCH} == "x86_64")
+. for _mod_ in ${_EMUL_MODULES}
+DEPENDS_suse-12.1.${_mod_}:= \
+ ${DEPENDS_suse-12.1.${_mod_}:S/^suse_/suse32_/:S/suse121_/&32_/}
+. endfor
+.endif