ChangeLog

# ChangeLog for games-action/d2x-rebirth
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/games-action/d2x-rebirth/ChangeLog,v 1.2 2008/03/06 03:15:20 wolf31o2 Exp $

06 Mar 2008; Chris Gianelloni
d2x-rebirth-0.50.ebuild:
Removing COPYING from dodoc to shut up repoman.

*d2x-rebirth-0.50 (09 Jan 2007)

09 Jan 2007; Chris Gianelloni +metadata.xml,
+d2x-rebirth-0.50.ebuild:
Initial import. Ebuild by Paul Bredbury . Closing bug
#137309.

Manifest

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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 2944 RMD160 7b594b4380412138f0a7f1c022609cd3568544f5 SHA1 f8cd3fc6f5918860d839c762f1ca69c85c9fb682 SHA256 9a09715f039e251de2d404c88f37b36432afeb9fe91f58c1fd2b989161cf7f59
MISC ChangeLog 569 RMD160 74798551b9eae6fe828736458c977d9e187ee3c4 SHA1 f55073f817b8d8df520aa3c98b64f183bce6a872 SHA256 04d1405a4c5e2d97a450c2789323f9b3b39e0dc18af4d466e88a048879d645d4
MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)

iD8DBQFHz2HHkT4lNIS36YERAkn9AJ9g1lNCYWJqu3b7oaKLSW63Z3DpjACfSZY8
H8jR4Jq8cz0OGnnnfRrIiEg=
=WVuU
-----END PGP SIGNATURE-----

d2x-rebirth-0.50.ebuild

# Copyright 1999-2008 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.3 2008/03/06 03:15:20 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
eautoreconf || die "eautoreconf failed"
}

src_compile() {

# 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 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
}

metadata.xml




games