ChangeLog

# ChangeLog for games-action/d1x-rebirth
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/games-action/d1x-rebirth/ChangeLog,v 1.2 2007/01/10 17:40:02 wolf31o2 Exp $

10 Jan 2007; Chris Gianelloni
d1x-rebirth-0.50.ebuild:
Stable on x86 since this actually works, d1x is busted, and descent1-maps
complains via repoman and I don't want to mask that package, which works
with both.

*d1x-rebirth-0.50 (09 Jan 2007)

09 Jan 2007; Chris Gianelloni +metadata.xml,
+d1x-rebirth-0.50.ebuild:
Initial import. Original ebuild by Paul Bredbury and edited
by me. Closing bug #154590.

Manifest

DIST d1x-rebirth_hires-briefings.zip 893529 RMD160 1aeff3e8ffd2f17383a2bbdd439a555611624fe8 SHA1 3f68db3f07a7b1bd5ad8f0e5717a880021adaa62 SHA256 497043a5b11dcfd7f192ade3b20ec68fa15394b284d3a02aadf640dbe551b1d8
DIST d1x-rebirth_hires-fonts.zip 29503 RMD160 c2dbaf36d2732641cc96403e1588e4fcc1360e7a SHA1 9a26d06352bc4748e3a2e5ec0a7f366977a4e37d SHA256 59d8f8c11861cfbc48239ed55c678aee92f3df2a922a3648f51d8fe8047f4aa4
DIST d1x-rebirth_v0.50-src-20061025.tar.gz 1336642 RMD160 0e85d20e09ee4ff7359b6ae9950026e8aaf5818b SHA1 a8c21987c2c1599403f7c6377d4585a0beb62e2f SHA256 742249021633fed2b07ef2d5ab040a66ae72cc5b122330521578bc2952895078
DIST dxx-rebirth_icons.zip 137392 RMD160 2e82d09ecd6e249aa7964221be3dc2647e31d505 SHA1 7228b659259aed6960760ee163dfa41ff2cf2740 SHA256 d38ba8730335b13d63ddf9119ad180e3f6c29e3f238baad87080cf60c4730efc
EBUILD d1x-rebirth-0.50.ebuild 3465 RMD160 91ee84c893197372ba544f5a3d69c32f89c14d31 SHA1 8a600da51e5448655b89aeae1adaa119bf8ee54e SHA256 bea9f475b989e99865dbfee2965b0ffb795f28bd1de6ba29840856b6c818121e
MISC ChangeLog 709 RMD160 9cff675548430cec020d97ea9d773f3a74a63ee1 SHA1 013fea2d40b59e6a18359cc5646497cfe09d8d5b SHA256 aa40cb9518119abdae3464df73c65f68a8c79a00152cf2df953a6287305add79
MISC metadata.xml 498 RMD160 fd4ccf86d4c198335dc55bc67e47beb8dd581e30 SHA1 f5c7d52e7eeecac15d92335dff514d4e37912b46 SHA256 71671d36c4865c9594ace8fca76f7df46f87a05f7abfa8475dced6106e58a986

d1x-rebirth-0.50.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/d1x-rebirth/d1x-rebirth-0.50.ebuild,v 1.2 2007/01/10 17:40:02 wolf31o2 Exp $

inherit autotools eutils games

# DV is the Descent version. Used because the d2x-rebirth ebuild is similar.
DV="1"
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 1 client"
HOMEPAGE="http://www.dxx-rebirth.de/"
SRC_URI="${SRC_STEM}/oss/src/${FILE_START}.tar.gz
${SRC_STEM}/res/dxx-rebirth_icons.zip
${SRC_STEM}/res/${PN}_hires-briefings.zip
${SRC_STEM}/res/${PN}_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="~amd64 x86"
IUSE="awe32 debug demo mpu401 opengl mixer"

QA_EXECSTACK="${GAMES_BINDIR:1}/${PN}"

UIRDEPEND="media-libs/alsa-lib
>=media-libs/libsdl-1.2.9
>=media-libs/sdl-image-1.2.3-r1
mixer? ( media-libs/sdl-mixer )
>=dev-games/physfs-1.0.1
opengl? (
virtual/glu
virtual/opengl )
x11-libs/libX11"
UIDEPEND="x11-proto/xf86dgaproto
x11-proto/xf86vidmodeproto
x11-proto/xproto"
# There is no ebuild for descent1-data
RDEPEND="${UIRDEPEND}
demo? ( games-action/descent1-demodata )"
DEPEND="${UIRDEPEND}
${UIDEPEND}
dev-util/scons
app-arch/unzip"

S=${WORKDIR}/${PN}
dir=${GAMES_DATADIR}/${DVX}

src_unpack() {
unpack ${A}
cd "${S}"

# "sdl_only=1" does not compile otherwise:
# arch/sdl/clipboard.o: In function `getClipboardText':
# clipboard.c:(.text+0x89): undefined reference to `XGetSelectionOwner'
sed -i \
-e "s:'SDL':'SDL', 'X11':" \
-e "s:-O2:${CXXFLAGS}:" \
SConstruct || die "sed SConstruct failed"

# 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() {
local opts
use debug && opts="${opts} debug=1"
use mixer && opts="${opts} sdlmixer=1"
use x86 || opts="${opts} no_asm=1"
use opengl || opts="${opts} sdl_only=1"
use demo && opts="${opts} shareware=1"

# From "scons -h"
# sharepath must end with a slash.
scons \
${opts} \
sharepath="${dir}/" \
|| die "scons 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"

local exe=${PN}-sdl
use opengl && exe=${PN}-gl
newgamesbin ${exe} ${PN} || die "newgamesbin ${exe} failed"
games_make_wrapper ${PN}-common "${PN} ${params}"
doicon "${WORKDIR}/${icon}"
make_desktop_entry ${PN}-common "Descent ${DV} Rebirth" "${icon}"

insinto "${dir}"
doins "${WORKDIR}"/*.{pcx,fnt} || die

dodoc *.txt

prepgamesdirs
}

pkg_postinst() {
games_pkg_postinst

if use demo ; then
elog "${PN} has been compiled specifically for the demo data."
else
elog "Place the DOS data files in ${dir}"
ewarn "Re-emerge with the 'demo' USE flag if this error is shown:"
ewarn " Error: Not enough strings in text file"
fi
elog "To play the game with common options, run: ${PN}-common"
echo
}

metadata.xml




games

Descent 1 is a classic first-person shooter released in 1995 by Interplay
and Parallax. It was one of the first games with true 3-dimensional
graphics, movement, and light sourcing. D1X-Rebirth is a modification of the
Descent 1 source that was released by Parallax and is based on the D1X source.