summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2007-01-09 21:52:51 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2007-01-09 21:52:51 +0000
commit06925b2967f1fb0bd7a8ac083207d1dc6f489f8a (patch)
treee5c89a8f8000ad55cf0a58cd266eeb8c26c1579d /games-action
parentAdd games-action/d2x-rebirth to the Descent 2 mask. (diff)
downloadgentoo-2-06925b2967f1fb0bd7a8ac083207d1dc6f489f8a.tar.gz
gentoo-2-06925b2967f1fb0bd7a8ac083207d1dc6f489f8a.tar.bz2
gentoo-2-06925b2967f1fb0bd7a8ac083207d1dc6f489f8a.zip
Initial import. Ebuild by Paul Bredbury <brebs@sent.com>. Closing bug #137309.
(Portage version: 2.1.2_rc4-r1)
Diffstat (limited to 'games-action')
-rw-r--r--games-action/d2x-rebirth/ChangeLog11
-rw-r--r--games-action/d2x-rebirth/Manifest17
-rw-r--r--games-action/d2x-rebirth/d2x-rebirth-0.50.ebuild115
-rw-r--r--games-action/d2x-rebirth/files/digest-d2x-rebirth-0.506
-rw-r--r--games-action/d2x-rebirth/metadata.xml5
5 files changed, 154 insertions, 0 deletions
diff --git a/games-action/d2x-rebirth/ChangeLog b/games-action/d2x-rebirth/ChangeLog
new file mode 100644
index 000000000000..d007c78e50c6
--- /dev/null
+++ b/games-action/d2x-rebirth/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for games-action/d2x-rebirth
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-action/d2x-rebirth/ChangeLog,v 1.1 2007/01/09 21:52:51 wolf31o2 Exp $
+
+*d2x-rebirth-0.50 (09 Jan 2007)
+
+ 09 Jan 2007; Chris Gianelloni <wolf31o2@gentoo.org> +metadata.xml,
+ +d2x-rebirth-0.50.ebuild:
+ Initial import. Ebuild by Paul Bredbury <brebs@sent.com>. Closing bug
+ #137309.
+
diff --git a/games-action/d2x-rebirth/Manifest b/games-action/d2x-rebirth/Manifest
new file mode 100644
index 000000000000..8e8baa08e2ab
--- /dev/null
+++ b/games-action/d2x-rebirth/Manifest
@@ -0,0 +1,17 @@
+DIST d2x-rebirth_v0.50-src-20061025.tar.gz 2331334 RMD160 4b3338dd4a9c3531e2c804c540ae07c01e684eff SHA1 6ceeff5090ee9be0a04e03e10673b1b0e44d16be SHA256 988987b0793978c5a37acd0ebcc3e9b54614f1ef377daa92de416c1d1dffb9a7
+DIST dxx-rebirth_icons.zip 137392 RMD160 2e82d09ecd6e249aa7964221be3dc2647e31d505 SHA1 7228b659259aed6960760ee163dfa41ff2cf2740 SHA256 d38ba8730335b13d63ddf9119ad180e3f6c29e3f238baad87080cf60c4730efc
+EBUILD d2x-rebirth-0.50.ebuild 2840 RMD160 e30f2c63c5ee1931a8dc3547830be084b0f75f66 SHA1 d20d3ec73d8cd4bfe17d78c0b827d60b14039b33 SHA256 6087673f7fb10487808ffa1ee04c03bf22ac867152a069c94835a6aaef8c1923
+MD5 242a3dbb1fec884d5b7a67fcbd379e61 d2x-rebirth-0.50.ebuild 2840
+RMD160 e30f2c63c5ee1931a8dc3547830be084b0f75f66 d2x-rebirth-0.50.ebuild 2840
+SHA256 6087673f7fb10487808ffa1ee04c03bf22ac867152a069c94835a6aaef8c1923 d2x-rebirth-0.50.ebuild 2840
+MISC ChangeLog 339 RMD160 35c49ea98df0379ea8a73d353379f25a4dc94ce0 SHA1 357b6a9b379d818afa8e1abcd1663b9581d4d63a SHA256 98442e2e21458f8d0e2ecad38cb3752c7af124034adfa9447ec7e63e2dbd177a
+MD5 2bcce4611607341c580fdfd04bfbe91a ChangeLog 339
+RMD160 35c49ea98df0379ea8a73d353379f25a4dc94ce0 ChangeLog 339
+SHA256 98442e2e21458f8d0e2ecad38cb3752c7af124034adfa9447ec7e63e2dbd177a ChangeLog 339
+MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
+MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158
+RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea metadata.xml 158
+SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 metadata.xml 158
+MD5 5e93af210859f23ea52149e58ba3d0fc files/digest-d2x-rebirth-0.50 539
+RMD160 41c7eab1afd89f4a8564ef2c2ab48d4896237a47 files/digest-d2x-rebirth-0.50 539
+SHA256 7f14c38390d4a77c45d2467368b658c949a942ac4d488fd7a58201e5cce9e98a files/digest-d2x-rebirth-0.50 539
diff --git a/games-action/d2x-rebirth/d2x-rebirth-0.50.ebuild b/games-action/d2x-rebirth/d2x-rebirth-0.50.ebuild
new file mode 100644
index 000000000000..7a4b6a693818
--- /dev/null
+++ b/games-action/d2x-rebirth/d2x-rebirth-0.50.ebuild
@@ -0,0 +1,115 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-action/d2x-rebirth/d2x-rebirth-0.50.ebuild,v 1.1 2007/01/09 21:52:51 wolf31o2 Exp $
+
+inherit autotools eutils games
+
+# DV is the Descent version. Used because the d1x-rebirth ebuild is similar.
+DV="2"
+DATE="20061025"
+DVX=d${DV}x
+FILE_START="${PN}_v${PV}-src-${DATE}"
+SRC_STEM="http://www.dxx-rebirth.de/download/dxx"
+
+DESCRIPTION="Descent Rebirth - enhanced Descent 2 client"
+HOMEPAGE="http://www.dxx-rebirth.de/"
+SRC_URI="${SRC_STEM}/oss/src/${FILE_START}.tar.gz
+ ${SRC_STEM}/res/dxx-rebirth_icons.zip"
+# These only apply to Descent 1
+# ${SRC_STEM}/res/d1x-rebirth_hires-briefings.zip
+# ${SRC_STEM}/res/d1x-rebirth_hires-fonts.zip
+
+# Licence info at bug #117344.
+# All 3 licences apply.
+LICENSE="D1X
+ GPL-2
+ as-is"
+SLOT="0"
+# Should work on amd64 also
+KEYWORDS="~x86"
+IUSE="awe32 debug mpu401"
+
+QA_EXECSTACK="${GAMES_BINDIR:1}/${PN}"
+
+UIRDEPEND="media-libs/alsa-lib
+ media-libs/libpng
+ >=media-libs/libsdl-1.2.9
+ >=media-libs/sdl-image-1.2.3-r1
+ >=dev-games/physfs-1.0.1
+ virtual/glu
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXext"
+UIDEPEND="x11-proto/xf86dgaproto
+ x11-proto/xf86vidmodeproto
+ x11-proto/xproto"
+# This game does not work with the demo data
+RDEPEND="${UIRDEPEND}
+ games-action/descent2-data"
+DEPEND="${UIRDEPEND}
+ ${UIDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}/${PN}
+dir=${GAMES_DATADIR}/${DVX}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Midi music - awe32 for most SoundBlaster cards
+ if use awe32 ; then
+ sed -i \
+ -e "s://#define WANT_AWE32 1:#define WANT_AWE32 1:" \
+ arch/linux/hmiplay.c || die "sed awe32 failed"
+ elif use mpu401 ; then
+ sed -i \
+ -e "s://#define WANT_MPU401 1:#define WANT_MPU401 1:" \
+ arch/linux/hmiplay.c || die "sed mpu401 failed"
+ fi
+}
+
+src_compile() {
+ eautoreconf || die "eautoreconf failed"
+
+ # Configure options are specified in dxx-compile.txt
+ local opts
+ use x86 || opts="${opts} --disable-fastfileio"
+ if use debug ; then
+ opts="${opts} --enable-debug"
+ else
+ opts="${opts} --disable-debug --enable-release"
+ fi
+
+ egamesconf \
+ ${opts} \
+ --with-sharepath="${dir}" \
+ --with-opengl \
+ || die "egamesconf failed"
+
+ emake -j1 || die "emake failed"
+}
+
+src_install() {
+ local icon="${PN}.xpm"
+ # Reasonable set of default options.
+ # Don't bother with ${DVX}.ini file.
+ local params="-gl_trilinear -gl_anisotropy 8.0 -gl_16bpp -gl_16bittextures -gl_reticle 2 -fullscreen -menu_gameres -nomovies -nocdrom"
+
+ newgamesbin ${PN}-gl ${PN} || die "newgamesbin failed"
+ games_make_wrapper ${PN}-common "${PN} ${params}"
+ doicon "${WORKDIR}/${icon}"
+ make_desktop_entry ${PN}-common "Descent ${DV} Rebirth" "${icon}"
+
+ dodoc AUTHORS ChangeLog COPYING dxx-changelog dxx-readme.txt \
+ NEWS README "${WORKDIR}"/*.txt
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ elog "To play the game with common options, run: ${PN}-common"
+ echo
+}
diff --git a/games-action/d2x-rebirth/files/digest-d2x-rebirth-0.50 b/games-action/d2x-rebirth/files/digest-d2x-rebirth-0.50
new file mode 100644
index 000000000000..d6a7f35dcd37
--- /dev/null
+++ b/games-action/d2x-rebirth/files/digest-d2x-rebirth-0.50
@@ -0,0 +1,6 @@
+MD5 6e1688390d4987cf726540502baaabfc d2x-rebirth_v0.50-src-20061025.tar.gz 2331334
+RMD160 4b3338dd4a9c3531e2c804c540ae07c01e684eff d2x-rebirth_v0.50-src-20061025.tar.gz 2331334
+SHA256 988987b0793978c5a37acd0ebcc3e9b54614f1ef377daa92de416c1d1dffb9a7 d2x-rebirth_v0.50-src-20061025.tar.gz 2331334
+MD5 3a7aba641ef294b798b4f26e885adfd0 dxx-rebirth_icons.zip 137392
+RMD160 2e82d09ecd6e249aa7964221be3dc2647e31d505 dxx-rebirth_icons.zip 137392
+SHA256 d38ba8730335b13d63ddf9119ad180e3f6c29e3f238baad87080cf60c4730efc dxx-rebirth_icons.zip 137392
diff --git a/games-action/d2x-rebirth/metadata.xml b/games-action/d2x-rebirth/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-action/d2x-rebirth/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>