diff options
author | obache <obache@pkgsrc.org> | 2013-12-05 11:42:12 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2013-12-05 11:42:12 +0000 |
commit | 6e20b6929a7a5ab104adf1e729b96da4c08d0289 (patch) | |
tree | a58c56c22e0eeab507e6d3bbe20f63fab5e564a4 /emulators/suse131_linux | |
parent | 7e8d07dab1e402807b5edfb9aea965d7edc2e62b (diff) | |
download | pkgsrc-6e20b6929a7a5ab104adf1e729b96da4c08d0289.tar.gz |
Added openSUSE 13.1 packages, provides a number of components for a
openSUSE-based Linux binary emulation environment.
Diffstat (limited to 'emulators/suse131_linux')
-rw-r--r-- | emulators/suse131_linux/Makefile.common | 92 | ||||
-rw-r--r-- | emulators/suse131_linux/emulator.mk | 62 |
2 files changed, 154 insertions, 0 deletions
diff --git a/emulators/suse131_linux/Makefile.common b/emulators/suse131_linux/Makefile.common new file mode 100644 index 00000000000..368d43133f0 --- /dev/null +++ b/emulators/suse131_linux/Makefile.common @@ -0,0 +1,92 @@ +# $NetBSD: Makefile.common,v 1.1 2013/12/05 11:42:16 obache Exp $ +# used by emulators/suse131_base/Makefile + +SUSE_PKG= yes +SUSE_VERSION= 13.1 +EMUL_REQD= suse>=${SUSE_VERSION} + +# The SuSE 13.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 + +.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.opensuse.org/ + +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/suse131_linux/emulator.mk b/emulators/suse131_linux/emulator.mk new file mode 100644 index 00000000000..82a336ddbf2 --- /dev/null +++ b/emulators/suse131_linux/emulator.mk @@ -0,0 +1,62 @@ +# $NetBSD: emulator.mk,v 1.1 2013/12/05 11:42:16 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-13.1 + +.if defined(SUSE_PKG) +_SUSE_VERSION_REQD= -13.1{,nb*} +.else +_SUSE_VERSION_REQD= >=13.1<13.2 +.endif + +# DEPENDS_suse-13.1.* maps Linux "modules" to SuSE package dependencies. +DEPENDS_suse-13.1.alsa?= suse_alsa${_SUSE_VERSION_REQD}:../../emulators/suse131_alsa +DEPENDS_suse-13.1.aspell?= suse_aspell${_SUSE_VERSION_REQD}:../../emulators/suse131_aspell +DEPENDS_suse-13.1.base?= suse_base${_SUSE_VERSION_REQD}:../../emulators/suse131_base +DEPENDS_suse-13.1.compat?= suse_compat${_SUSE_VERSION_REQD}:../../emulators/suse131_compat +DEPENDS_suse-13.1.cups?= suse_libcups${_SUSE_VERSION_REQD}:../../emulators/suse131_libcups +DEPENDS_suse-13.1.curl?= suse_libcurl${_SUSE_VERSION_REQD}:../../emulators/suse131_libcurl +DEPENDS_suse-13.1.cyrus-sasl?= suse_cyrus-sasl${_SUSE_VERSION_REQD}:../../emulators/suse131_cyrus-sasl +DEPENDS_suse-13.1.drm?= suse_libdrm${_SUSE_VERSION_REQD}:../../emulators/suse131_libdrm +DEPENDS_suse-13.1.dbus?= suse_libdbus${_SUSE_VERSION_REQD}:../../emulators/suse131_libdbus +DEPENDS_suse-13.1.expat?= suse_expat${_SUSE_VERSION_REQD}:../../emulators/suse131_expat +DEPENDS_suse-13.1.fontconfig?= suse_fontconfig${_SUSE_VERSION_REQD}:../../emulators/suse131_fontconfig +DEPENDS_suse-13.1.freetype2?= suse_freetype2${_SUSE_VERSION_REQD}:../../emulators/suse131_freetype2 +DEPENDS_suse-13.1.glx?= suse_glx${_SUSE_VERSION_REQD}:../../emulators/suse131_glx +DEPENDS_suse-13.1.gtk2?= suse_gtk2${_SUSE_VERSION_REQD}:../../emulators/suse131_gtk2 +DEPENDS_suse-13.1.jpeg?= suse_libjpeg${_SUSE_VERSION_REQD}:../../emulators/suse131_libjpeg +DEPENDS_suse-13.1.krb5?= suse_krb5${_SUSE_VERSION_REQD}:../../emulators/suse131_krb5 +DEPENDS_suse-13.1.libidn?= suse_libidn${_SUSE_VERSION_REQD}:../../emulators/suse131_libidn +DEPENDS_suse-13.1.libjson?= suse_libjson${_SUSE_VERSION_REQD}:../../emulators/suse131_libjson +DEPENDS_suse-13.1.libsigc++2?= suse_libsigc++2${_SUSE_VERSION_REQD}:../../emulators/suse131_libsigc++2 +DEPENDS_suse-13.1.libsndfile?= suse_libsndfile${_SUSE_VERSION_REQD}:../../emulators/suse131_libsndfile +DEPENDS_suse-13.1.libssh?= suse_libssh${_SUSE_VERSION_REQD}:../../emulators/suse131_libssh +DEPENDS_suse-13.1.libwrap?= suse_libwrap${_SUSE_VERSION_REQD}:../../emulators/suse131_libwrap +DEPENDS_suse-13.1.locale?= suse_locale${_SUSE_VERSION_REQD}:../../emulators/suse131_locale +DEPENDS_suse-13.1.motif?= suse_motif${_SUSE_VERSION_REQD}:../../emulators/suse131_motif +DEPENDS_suse-13.1.openldap?= suse_openldap${_SUSE_VERSION_REQD}:../../emulators/suse131_openldap +DEPENDS_suse-13.1.openssl?= suse_openssl${_SUSE_VERSION_REQD}:../../emulators/suse131_openssl +DEPENDS_suse-13.1.png?= suse_libpng${_SUSE_VERSION_REQD}:../../emulators/suse131_libpng +DEPENDS_suse-13.1.pulseaudio?= suse_pulseaudio${_SUSE_VERSION_REQD}:../../emulators/suse131_pulseaudio +DEPENDS_suse-13.1.qt4?= suse_qt4${_SUSE_VERSION_REQD}:../../emulators/suse131_qt4 +DEPENDS_suse-13.1.slang?= suse_slang${_SUSE_VERSION_REQD}:../../emulators/suse131_slang +DEPENDS_suse-13.1.tiff?= suse_libtiff${_SUSE_VERSION_REQD}:../../emulators/suse131_libtiff +DEPENDS_suse-13.1.x11?= suse_x11${_SUSE_VERSION_REQD}:../../emulators/suse131_x11 +DEPENDS_suse-13.1.xml2?= suse_libxml2${_SUSE_VERSION_REQD}:../../emulators/suse131_libxml2 + +.if (${EMUL_ARCH} == "i386") && (${MACHINE_ARCH} == "x86_64") +. for _mod_ in ${_EMUL_MODULES} +DEPENDS_suse-13.1.${_mod_}:= \ + ${DEPENDS_suse-13.1.${_mod_}:S/^suse_/suse32_/:S/suse131_/&32_/} +. endfor +.endif |