summaryrefslogtreecommitdiff
path: root/emulators/suse113_linux
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/suse113_linux')
-rw-r--r--emulators/suse113_linux/Makefile.common84
-rw-r--r--emulators/suse113_linux/emulator.mk52
2 files changed, 136 insertions, 0 deletions
diff --git a/emulators/suse113_linux/Makefile.common b/emulators/suse113_linux/Makefile.common
new file mode 100644
index 00000000000..dcd5884ffb4
--- /dev/null
+++ b/emulators/suse113_linux/Makefile.common
@@ -0,0 +1,84 @@
+# $NetBSD: Makefile.common,v 1.1.1.1 2010/09/24 01:28:06 chs Exp $
+
+SUSE_PKG= yes
+SUSE_VERSION= 11.3
+EMUL_REQD= suse>=${SUSE_VERSION}
+
+# The SuSE 11.x Linux packages are only usable on the following platforms.
+.if defined(SUSE_COMPAT32)
+.else
+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.powerpc= ppc
+_SUSE_ARCH= ${_SUSE_ARCH.${EMUL_ARCH}}
+SUSE_ARCH= ${_SUSE_ARCH}
+
+_SUSE_FTP_SUBDIR= distribution/${SUSE_VERSION}/repo/oss/suse/${SUSE_ARCH}/
+_SUSE_FTP_SUBDIR_UPD= suse/update/${SUSE_VERSION}/rpm/${SUSE_ARCH}/
+
+MASTER_SITE_SUSE_${SUSE_VERSION}= \
+ http://download.opensuse.org/distribution/${SUSE_VERSION}/repo/oss/suse/${SUSE_ARCH}/
+
+# http://opensuse.berkeley.edu/opensuse/${_SUSE_FTP_SUBDIR}
+
+MASTER_SITE_SUSE_${SUSE_VERSION}_UPD= \
+ http://download.opensuse.org/distribution/${SUSE_VERSION}/repo/oss/suse/${SUSE_ARCH}/
+
+MASTER_SITES?= ${MASTER_SITE_SUSE_${SUSE_VERSION}}
+DIST_SUBDIR?= suse${SUSE_VERSION:S/.//}/${SUSE_ARCH}
+
+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/}
+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(DISTFILES) && !empty(DISTFILES)
+. for fetchfile in ${DISTFILES}
+. if "${fetchfile:C/.[^.]*\.rpm$//:C/^.*-//g:M*.*}" != ""
+SITES.${fetchfile:T:S/=/--/}?= ${MASTER_SITE_SUSE_${SUSE_VERSION}_UPD}
+. endif
+. endfor
+.endif
diff --git a/emulators/suse113_linux/emulator.mk b/emulators/suse113_linux/emulator.mk
new file mode 100644
index 00000000000..ef8ca5d466a
--- /dev/null
+++ b/emulators/suse113_linux/emulator.mk
@@ -0,0 +1,52 @@
+# $NetBSD: emulator.mk,v 1.1.1.1 2010/09/24 01:28:06 chs 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-11.3
+
+.if defined(SUSE_PKG)
+_SUSE_VERSION_REQD= -${SUSE_VERSION_REQD}{,nb*}
+.else
+_SUSE_VERSION_REQD= >=${SUSE_VERSION_REQD}
+.endif
+
+# DEPENDS_suse-11.3.* maps Linux "modules" to SuSE package dependencies.
+DEPENDS_suse-11.3.alsa?= suse_alsa${_SUSE_VERSION_REQD}:../../emulators/suse113_alsa
+DEPENDS_suse-11.3.aspell?= suse_aspell${_SUSE_VERSION_REQD}:../../emulators/suse113_aspell
+DEPENDS_suse-11.3.base?= suse_base${_SUSE_VERSION_REQD}:../../emulators/suse113_base
+DEPENDS_suse-11.3.compat?= suse_compat${_SUSE_VERSION_REQD}:../../emulators/suse113_compat
+DEPENDS_suse-11.3.cups?= suse_libcups${_SUSE_VERSION_REQD}:../../emulators/suse113_libcups
+DEPENDS_suse-11.3.expat?= suse_expat${_SUSE_VERSION_REQD}:../../emulators/suse113_expat
+DEPENDS_suse-11.3.fontconfig?= suse_fontconfig${_SUSE_VERSION_REQD}:../../emulators/suse113_fontconfig
+DEPENDS_suse-11.3.freetype2?= suse_freetype2${_SUSE_VERSION_REQD}:../../emulators/suse113_freetype2
+DEPENDS_suse-11.3.glx?= suse_glx${_SUSE_VERSION_REQD}:../../emulators/suse113_glx
+DEPENDS_suse-11.3.gtk2?= suse_gtk2${_SUSE_VERSION_REQD}:../../emulators/suse113_gtk2
+DEPENDS_suse-11.3.jpeg?= suse_libjpeg${_SUSE_VERSION_REQD}:../../emulators/suse113_libjpeg
+DEPENDS_suse-11.3.krb5?= suse_krb5${_SUSE_VERSION_REQD}:../../emulators/suse113_krb5
+DEPENDS_suse-11.3.libsigc++2?= suse_libsigc++2${_SUSE_VERSION_REQD}:../../emulators/suse113_libsigc++2
+DEPENDS_suse-11.3.locale?= suse_locale${_SUSE_VERSION_REQD}:../../emulators/suse113_locale
+DEPENDS_suse-11.3.motif?= suse_openmotif${_SUSE_VERSION_REQD}:../../emulators/suse113_openmotif
+DEPENDS_suse-11.3.openssl?= suse_openssl${_SUSE_VERSION_REQD}:../../emulators/suse113_openssl
+DEPENDS_suse-11.3.png?= suse_libpng${_SUSE_VERSION_REQD}:../../emulators/suse113_libpng
+DEPENDS_suse-11.3.qt4?= suse_qt4${_SUSE_VERSION_REQD}:../../emulators/suse113_qt4
+DEPENDS_suse-11.3.slang?= suse_slang${_SUSE_VERSION_REQD}:../../emulators/suse113_slang
+DEPENDS_suse-11.3.tiff?= suse_libtiff${_SUSE_VERSION_REQD}:../../emulators/suse113_libtiff
+DEPENDS_suse-11.3.vmware?= suse_vmware${_SUSE_VERSION_REQD}:../../emulators/suse113_vmware
+DEPENDS_suse-11.3.x11?= suse_x11${_SUSE_VERSION_REQD}:../../emulators/suse113_x11
+DEPENDS_suse-11.3.xml2?= suse_libxml2${_SUSE_VERSION_REQD}:../../emulators/suse113_libxml2
+
+.if (${EMUL_ARCH} == "i386") && (${MACHINE_ARCH} == "x86_64")
+. for _mod_ in ${_EMUL_MODULES}
+DEPENDS_suse-11.3.${_mod_}:= \
+ ${DEPENDS_suse-11.3.${_mod_}:S/^suse_/suse32_/:S/suse113_/&32_/}
+. endfor
+.endif