summaryrefslogtreecommitdiff
path: root/games-action/dxx-rebirth
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-action/dxx-rebirth
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'games-action/dxx-rebirth')
-rw-r--r--games-action/dxx-rebirth/Manifest12
-rw-r--r--games-action/dxx-rebirth/dxx-rebirth-0.59.100.ebuild107
-rw-r--r--games-action/dxx-rebirth/files/dxx-rebirth-0.59.100-flags.patch10
-rw-r--r--games-action/dxx-rebirth/files/dxx-rebirth-0.59.100-sharepath.patch11
-rw-r--r--games-action/dxx-rebirth/metadata.xml39
5 files changed, 179 insertions, 0 deletions
diff --git a/games-action/dxx-rebirth/Manifest b/games-action/dxx-rebirth/Manifest
new file mode 100644
index 000000000000..f2fde940546b
--- /dev/null
+++ b/games-action/dxx-rebirth/Manifest
@@ -0,0 +1,12 @@
+AUX dxx-rebirth-0.59.100-flags.patch 371 BLAKE2B 7902a9375b9f6782eb1cdaba1d0e27ede3476149554a711473631eb652d953828a67836515c097c459b2e3ea31014a71e3ee5d2c46d1ed25dce97ac0cde6f88e SHA512 c8bb575a172845b2643838c95ccbe3fac4509a3b5c24178816ea5a1a46a0fa2721d3fae841641950e97dec0e3a9fb74d8ddac493183df8834caca7d8d9ce11b4
+AUX dxx-rebirth-0.59.100-sharepath.patch 553 BLAKE2B 651db97d70b177754d7053c400a99a79c5ff7cd82af7743ef4588f0981ac2e17143fc0b41cbc62670d896e7f51cfc21e96f0b77d0a4994b4e2b56853ee29b28b SHA512 6f57832df96b6c927ea6f1d93f57662df24c0127b8a22ee08c73c3ecd21ab027fa7367070d0bec09250042e716409b258373e54c9189de68d41b799f785498b8
+DIST d1xr-briefings-ger.dxa 16798 BLAKE2B f5e1f4f91cb3464b3d356fab1e3993700cc19f3f2db8682f5194e59aa5d2623efa427db4135c3595534e5dac0f2589b53aac7df3610501b759407e1ead342458 SHA512 956a3ef1fe7379b71d5f651fdcb1f26b786883a35193a0a22009204e885a12fceb3a69c6accbeb2bd20be65afe087d23532d7ef3439edd97cc8904968bf519e3
+DIST d1xr-hires.dxa 1426884 BLAKE2B c4d9b950353fc450c64568779bc3d2e93a46e17980c8df08a2ef06bff5b9709869fdbbaf4fb6698be994b3faae7a75036a53357743d47b728bb3ef9df126afd8 SHA512 3fc84d5610ba40ee383c1720f80513a21b4644ff8b6da4b84ebca13b11c1131deb4897ded6324b54845b6c847dfc0f16700535e16afdd7ebe83bfff042892302
+DIST d1xr-opl3-music.dxa 81503503 BLAKE2B b560597e0f08139109a6dc4ee7996c05010561686029d1fd754375278b8a11e6df0f6106c797d524e92d4998683d6e1e07b6cfc982ea3ff167a0b9ca92ba0dc2 SHA512 4ac82c4bc2ddb02e2941746921443e38b698c6e54cfcab317fc9108f84ada7b868ec2ee3c70b28c1dfe9f41e2aadab4124c8daa65a409905cba5d674f0aab8a8
+DIST d1xr-sc55-music.dxa 72803408 BLAKE2B eb52491f5c43e9f04aea5715cffc0a47d029dda0b8e5ae1a79ec36122a17c01e3b2a731f369d72fe0e069e1188bdaf03f82d0845b574d76b6798be33481e3b84 SHA512 3cdce5b6535e28397b3216cc9ca05cccf7194349c62d64c54300f02f39248b98598d170599e5c61b6900d780e4917f905c3c31eb814fbb8429221c804cbd8bf9
+DIST d2xr-briefings-ger.dxa 11717 BLAKE2B 27af93656ac91bf5490195d2aebc9c9f252cb730094cccb53298b07f2e2031935033b8db765b40fdad93fb55b157a2be07906ea45185b754e5ec7c205803cc92 SHA512 479aa577dc65271c705e80404ec46e6c59ee3a5122d6e9705dbdd16b71b16c0d3447426e3e74937aa20eb7026f67a3896c5e814fbfcede9164bd557b6eb8423c
+DIST d2xr-opl3-music.dxa 22710919 BLAKE2B 82bdf29b6afe88305d4c7b69bb8b094efcf33ad23becec223311775cd50600ed399c207ee3a05da3800bcc5e123d00f9f8fa7d2d4f4d4be57bbf71e1c2482a9c SHA512 876321a9a16403f6e9d12e10bb73c9cdc57e1a106fa64833a1be8cc17b74f6f13e57e40f051a1b40e7bc88b95bfe86cff181c93c8619383dfdeb74f36f5cce86
+DIST d2xr-sc55-music.dxa 19579531 BLAKE2B 16091e24477a49319f2685884a7538a3597a9132707ac1d59405fa08ce7492158075df4ee680a5c7ba44aa0bd0b16170057f6a8956eab4b56913d00ee2f1f339 SHA512 290713b05627bf65bdc55fc6631a0c86e50f484a167f3fd20b3fe2bc5b772437939b5bf32eea852874dd983fbd47f160cae2412a2d6c5319f0d1583a33d28da6
+DIST dxx-rebirth_v0.59.100-src.tar.gz 1809614 BLAKE2B 6826380312fa23dbc99459db9272cf7ffb5a00a14cfdd777339633fbd943a288af00f182692ebc3078e4c39bf6b6cc9fb05cc6a533ec126b8c881eb22c465868 SHA512 dc9b7ad263e189e779756b62613d4bc62371cb5fec2176a4013395fc18c9d03ab0c9ddc5ccf2668b87e4a77b25d500bdef373126f176bfce49f73b5a98de23d7
+EBUILD dxx-rebirth-0.59.100.ebuild 3276 BLAKE2B 2fb4ede8bc77e37d698f776cdf2aceb7a969ee821d61f7a9ac06e512b8c504fcb911928588686580bad91b15cebee9d6f4a87a17f777e4e5dd82d93caf6cc596 SHA512 ce48361403cc3696ee8d19b33f9546b41867e2eef330bef6dc821a1995bdb6b2ec10328fc15997942ffa1e0908abf810a0bb479192495a4b84fcc891363895a6
+MISC metadata.xml 1974 BLAKE2B 654588e63aa9b45daa812b1a79cedc5992ec6a083d37f7abc13643ea49c5e2679ff967af6f5d3f309f832a0d0a8c8877a6b0b3984f2515aeea95a0750fab6b3a SHA512 4c6bcb9366d27b943b5b0e0e77ce4fc3a9424cf7bee7f76a33b33da803fa86440a2ddf2359996871953ebb3e1c51451032f920b73e3d9fe918415a2fca3f5c09
diff --git a/games-action/dxx-rebirth/dxx-rebirth-0.59.100.ebuild b/games-action/dxx-rebirth/dxx-rebirth-0.59.100.ebuild
new file mode 100644
index 000000000000..048eb3cb263c
--- /dev/null
+++ b/games-action/dxx-rebirth/dxx-rebirth-0.59.100.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils scons-utils toolchain-funcs xdg
+
+MY_P="${PN}_v${PV}-src"
+DESCRIPTION="Descent Rebirth - enhanced Descent 1 & 2 engine"
+HOMEPAGE="https://www.dxx-rebirth.com/"
+SRC_URI="https://www.dxx-rebirth.com/download/dxx/${MY_P}.tar.gz
+ opl3-musicpack? (
+ descent1? ( https://www.dxx-rebirth.com/download/dxx/res/d1xr-opl3-music.dxa )
+ descent2? ( https://www.dxx-rebirth.com/download/dxx/res/d2xr-opl3-music.dxa ) )
+ sc55-musicpack? (
+ descent1? ( https://www.dxx-rebirth.com/download/dxx/res/d1xr-sc55-music.dxa )
+ descent2? ( https://www.dxx-rebirth.com/download/dxx/res/d2xr-sc55-music.dxa ) )
+ l10n_de? (
+ descent1? ( https://www.dxx-rebirth.com/download/dxx/res/d1xr-briefings-ger.dxa )
+ descent2? ( https://www.dxx-rebirth.com/download/dxx/res/d2xr-briefings-ger.dxa ) )
+ textures? (
+ descent1? ( https://www.dxx-rebirth.com/download/dxx/res/d1xr-hires.dxa ) )"
+
+LICENSE="DXX-Rebirth GPL-3 public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+data debug +descent1 +descent2 ipv6 l10n_de +music +opengl opl3-musicpack sc55-musicpack +textures"
+
+REQUIRED_USE="|| ( descent1 descent2 )
+ ?? ( opl3-musicpack sc55-musicpack )
+ opl3-musicpack? ( music )
+ sc55-musicpack? ( music )"
+
+DEPEND="dev-games/physfs:0=[hog,mvl,zip]
+ media-libs/libsdl:0=[joystick,opengl?,sound,video]
+ music? ( media-libs/sdl-mixer:0= )
+ opengl? (
+ virtual/opengl
+ virtual/glu )"
+
+RDEPEND="${DEPEND}
+ data? (
+ descent1? ( || ( games-action/descent1-data games-action/descent1-demodata ) )
+ descent2? ( || ( games-action/descent2-data games-action/descent2-demodata ) ) )
+ music? (
+ !opl3-musicpack? ( !sc55-musicpack? ( media-libs/sdl-mixer:0=[midi] ) )
+ opl3-musicpack? ( media-libs/sdl-mixer:0=[vorbis] )
+ sc55-musicpack? ( media-libs/sdl-mixer:0=[vorbis] ) )
+ !games-action/d1x-rebirth
+ !games-action/d2x-rebirth"
+
+S="${WORKDIR}/${MY_P}"
+
+# Remove hardcoded optimisation flags.
+# Change share path to use old d1x/d2x locations.
+PATCHES=( "${FILESDIR}"/${P}-{flags,sharepath}.patch )
+
+src_compile() {
+ tc-export CXX
+ escons \
+ prefix="${EPREFIX}"/usr \
+ d1x=$(usex descent1 1 0) \
+ d2x=$(usex descent2 1 0) \
+ debug=$(usex debug 1 0) \
+ ipv6=$(usex ipv6 1 0) \
+ opengl=$(usex opengl 1 0) \
+ sdlmixer=$(usex music 1 0) \
+ verbosebuild=1
+}
+
+src_install() {
+ local DV PROGRAM
+
+ for DV in 1 2; do
+ use descent${DV} || continue
+ PROGRAM=d${DV}x-rebirth
+
+ docinto ${PROGRAM}
+ edos2unix ${PROGRAM}/*.txt
+ dodoc ${PROGRAM}/*.txt
+
+ insinto /usr/share/games/d${DV}x
+ use opl3-musicpack && doins "${DISTDIR}"/d${DV}xr-opl3-music.dxa
+ use sc55-musicpack && doins "${DISTDIR}"/d${DV}xr-sc55-music.dxa
+ use l10n_de && doins "${DISTDIR}"/d${DV}xr-briefings-ger.dxa
+
+ dobin ${PROGRAM}/${PROGRAM}
+ make_desktop_entry ${PROGRAM} "Descent ${DV} Rebirth" ${PROGRAM}
+ doicon ${PROGRAM}/${PROGRAM}.xpm
+ done
+
+ if use textures && use descent1; then
+ insinto /usr/share/games/d1x
+ doins "${DISTDIR}"/d1xr-hires.dxa
+ fi
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+
+ if ! use data; then
+ elog "To play the game enable USE=\"data\" or manually "
+ elog "copy the files to ${EPREFIX}/usr/share/games/{d1x,d2x}."
+ elog "See each game's INSTALL.txt for details."
+ echo
+ fi
+}
diff --git a/games-action/dxx-rebirth/files/dxx-rebirth-0.59.100-flags.patch b/games-action/dxx-rebirth/files/dxx-rebirth-0.59.100-flags.patch
new file mode 100644
index 000000000000..75c3a64f893b
--- /dev/null
+++ b/games-action/dxx-rebirth/files/dxx-rebirth-0.59.100-flags.patch
@@ -0,0 +1,10 @@
+--- dxx-rebirth_v0.59.100-src/SConstruct 2016-12-12 02:47:40.000000000 +0300
++++ dxx-rebirth_v0.59.100-src/SConstruct 2016-12-28 02:11:16.657874914 +0300
+@@ -3488,7 +3488,6 @@
+ env = self.env
+ user_settings = self.user_settings
+
+- env.Prepend(CXXFLAGS = ['-g', '-O2'])
+ # Raspberry Pi?
+ if user_settings.raspberrypi:
+ rpi_vc_path = user_settings.rpi_vc_path
diff --git a/games-action/dxx-rebirth/files/dxx-rebirth-0.59.100-sharepath.patch b/games-action/dxx-rebirth/files/dxx-rebirth-0.59.100-sharepath.patch
new file mode 100644
index 000000000000..ee1b6bb9ea05
--- /dev/null
+++ b/games-action/dxx-rebirth/files/dxx-rebirth-0.59.100-sharepath.patch
@@ -0,0 +1,11 @@
+--- dxx-rebirth_v0.59.100-src/SConstruct 2016-12-12 02:47:40.000000000 +0300
++++ dxx-rebirth_v0.59.100-src/SConstruct 2016-12-29 19:26:58.987760410 +0300
+@@ -2875,7 +2875,7 @@
+ return 'GLESv2'
+ return self.default_OGLES_LIB
+ def __default_DATA_DIR(self):
+- return '%s/share/games/%s' % (self.prefix, self._program.target)
++ return '%s/share/games/%s' % (self.prefix, self._program.shortname)
+ def _generic_variable(key,help,default):
+ return (key, help, default)
+ def __get_configure_tests(tests,_filter=lambda s: s.name[0] != '_'):
diff --git a/games-action/dxx-rebirth/metadata.xml b/games-action/dxx-rebirth/metadata.xml
new file mode 100644
index 000000000000..b2765a3b0291
--- /dev/null
+++ b/games-action/dxx-rebirth/metadata.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>totktonada.ru@gmail.com</email>
+ <name>Alexander Turenko</name>
+ </maintainer>
+ <longdescription>
+ Descent 1 is a classic first-person shooter released in 1995
+ by Interplay and Parallax. Descent 2 released for the PC in
+ 1996. It, along with its predecessor, was one of the first
+ games with true 3-dimensional graphics, 6 degrees of freedom
+ in movement, light sourcing, and the capability to join
+ multiplayer games on-the-fly. D1X-Rebirth and DXX-Rebirth are
+ modifications of the original Descent 1 and 2 sources that was
+ released by Parallax (and are based on the D1X and D2X
+ sources). It offering OpenGL graphics, advanced multiplayer,
+ new features, and cross-platform compatibility. Now code bases
+ of D1X-Rebirth and DXX-Rebirth merged and released as
+ DXX-Rebirth.
+ </longdescription>
+ <use>
+ <flag name="data">Install data files</flag>
+ <flag name="descent1">Install Descent 1 resources and executable</flag>
+ <flag name="descent2">Install Descent 2 resources and executable</flag>
+ <flag name="l10n_de">Provides German translations for the game's briefings, robot descriptions, and outro of the original campaign</flag>
+ <flag name="music">Enable music support</flag>
+ <flag name="opl3-musicpack">Include alternate version of the game's music, recorded with the Yamaha YMF262 OPL3 soundchip</flag>
+ <flag name="sc55-musicpack">Include alternate version of the game's music, recorded with the Roland Sound Canvas SC-55 MIDI module</flag>
+ <flag name="textures">Include high resolution (640x480) backgrounds, briefing images and fonts (Descent 1)</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">dxx-rebirth/dxx-rebirth</remote-id>
+ </upstream>
+</pkgmetadata>