summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-fps')
-rw-r--r--games-fps/uhexen2-cvs/ChangeLog280
-rw-r--r--games-fps/uhexen2-cvs/Manifest6
-rw-r--r--games-fps/uhexen2-cvs/metadata.xml23
-rw-r--r--games-fps/uhexen2-cvs/uhexen2-cvs-20080404.ebuild460
4 files changed, 0 insertions, 769 deletions
diff --git a/games-fps/uhexen2-cvs/ChangeLog b/games-fps/uhexen2-cvs/ChangeLog
deleted file mode 100644
index beb5873d4..000000000
--- a/games-fps/uhexen2-cvs/ChangeLog
+++ /dev/null
@@ -1,280 +0,0 @@
-# ChangeLog for games-fps/uhexen2-cvs
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: $
-
- 06 May 2009; Christian Ruppert <idl0r@gentoo.org>
- uhexen2-cvs-20080404.ebuild:
- Use src_prepare instead of src_unpack, improved find call, added missing
- die statements, replaced some elog calls by einfo.
-
- 16 Mar 2009; Nick Fortino (nfortino) <nfortino@gmail.com>
- uhexen2-cvs-20080404.ebuild:
- Update ebuild to use EAPI 2. Thanks to Cristian Ruppert and Thomas Sachau
- for review
-
- 31 Aug 2008; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> metadata.xml:
- Add local useflags to metadata.xml (GLEP 56)
-
- 07 Apr 2008; Thomas Sachau (Tommy[D]) <tommy@gentoo.org>
- +uhexen2-cvs-20080321.ebuild:
- Fix quotation
-
- 06 Apr 2008; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20080321.ebuild, +uhexen2-cvs-20080404.ebuild:
- Version bump
-
- 21 Mar 2008; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20080307.ebuild, +uhexen2-cvs-20080321.ebuild:
- Version bump
-
- 09 Mar 2008; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20080208.ebuild, +uhexen2-cvs-20080307.ebuild:
- Version bump
-
- 17 Feb 2008; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20080129.ebuild, +uhexen2-cvs-20080208.ebuild:
- Version bump
-
- 30 Jan 2008; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20080112.ebuild, +uhexen2-cvs-20080129.ebuild:
- Version bump
-
- 13 Jan 2008; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20080110.ebuild, +uhexen2-cvs-20080112.ebuild:
- Version bump
-
- 12 Jan 2008; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20080104.ebuild, +uhexen2-cvs-20080110.ebuild:
- Version bump
-
- 05 Jan 2008; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20071224.ebuild, +uhexen2-cvs-20080104.ebuild:
- Version bump (and an happy new year :) )
-
- 25 Dec 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20071215.ebuild, +uhexen2-cvs-20071224.ebuild:
- Version bump
-
- 19 Dec 2007; Davide Cendron (scen) <scen@gentoo.org>
- uhexen2-cvs-20071215.ebuild:
- Fixed SRC_URI, because 20071215 CVS tarball is available on SF mirrors
-
- 18 Dec 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20071125.ebuild, +uhexen2-cvs-20071215.ebuild:
- Version bump
-
- 25 Nov 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20071117.ebuild, +uhexen2-cvs-20071125.ebuild:
- Version bump
-
- 19 Nov 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20071114.ebuild, +uhexen2-cvs-20071117.ebuild:
- Version bump
-
- 14 Nov 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20071112.ebuild, +uhexen2-cvs-20071114.ebuild:
- Version bump
-
- 13 Nov 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20071111.ebuild, +uhexen2-cvs-20071112.ebuild:
- Version bump
-
- 11 Nov 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20071107.ebuild, +uhexen2-cvs-20071111.ebuild:
- Version bump
-
- 08 Nov 2007; Davide Cendron (scen) <scen@gentoo.org> ChangeLog:
- Update manifest (hexenworld-pakfiles tarball has been updated some time ago)
-
- 07 Nov 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20071105.ebuild, +uhexen2-cvs-20071107.ebuild:
- Version bump
-
- 05 Nov 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20071030.ebuild, +uhexen2-cvs-20071105.ebuild:
- Version bump
-
- 31 Oct 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20071024.ebuild, +uhexen2-cvs-20071030.ebuild:
- Version bump
-
- 25 Oct 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20071015.ebuild, +uhexen2-cvs-20071024.ebuild:
- Version bump
-
- 15 Oct 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20071002.ebuild, +uhexen2-cvs-20071015.ebuild:
- Version bump
-
- 02 Oct 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20071001.ebuild, +uhexen2-cvs-20071002.ebuild:
- Version bump
-
- 01 Oct 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20070926.ebuild, +uhexen2-cvs-20071001.ebuild:
- Version bump
-
- 27 Sep 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20070923.ebuild, +uhexen2-cvs-20070926.ebuild:
- Version bump (1.4.2 is approaching...)
-
- 24 Sep 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20070920.ebuild, +uhexen2-cvs-20070923.ebuild:
- Version bump
-
- 20 Sep 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20070915.ebuild, +uhexen2-cvs-20070920.ebuild:
- Version bump
-
- 17 Sep 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20070909.ebuild, +uhexen2-cvs-20070915.ebuild:
- Version bump
-
- 11 Sep 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20070905.ebuild, +uhexen2-cvs-20070909.ebuild:
- Version bump
-
- 06 Sep 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20070902.ebuild, +uhexen2-cvs-20070905.ebuild:
- Version bump
-
- 03 Sep 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20070830.ebuild, +uhexen2-cvs-20070902.ebuild:
- Version bump
-
- 31 Aug 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20070828.ebuild, +uhexen2-cvs-20070830.ebuild:
- Version bump
-
- 30 Aug 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20070825.ebuild, +uhexen2-cvs-20070828.ebuild:
- Version bump
-
- 26 Aug 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20070820.ebuild, +uhexen2-cvs-20070825.ebuild:
- Version bump
-
- 22 Aug 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20070814.ebuild, +uhexen2-cvs-20070820.ebuild:
- Version bump
-
- 20 Aug 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20070813.ebuild, +uhexen2-cvs-20070814.ebuild:
- Version bump
-
- 13 Aug 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20070809.ebuild, +uhexen2-cvs-20070813.ebuild:
- Version bump (and drop old)
-
- 09 Aug 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20070806.ebuild, +uhexen2-cvs-20070809.ebuild:
- Version bump
-
- 06 Aug 2007; Davide Cendron (scen) <scen@gentoo.org>
- +uhexen2-cvs-20070806.ebuild:
- Version bump
-
- 02 Aug 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20070729.ebuild, +uhexen2-cvs-20070801.ebuild:
- Version bump (and drop old)
-
- 01 Aug 2007; Davide Cendron (scen) <scen@gentoo.org>
- uhexen2-cvs-20070729.ebuild:
- Fixed SRC_URI items
-
- 30 Jul 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20070725.ebuild, +uhexen2-cvs-20070729.ebuild:
- Version bump (and drop old)
-
- 25 Jul 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20070722.ebuild, +uhexen2-cvs-20070725.ebuild:
- Version bump (and drop old)
-
- 23 Jul 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20070715.ebuild, +uhexen2-cvs-20070722.ebuild:
- Version bump (and drop old)
-
- 16 Jul 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20070704.ebuild, -uhexen2-cvs-20070712.ebuild,
- +uhexen2-cvs-20070715.ebuild:
- Version bump (and drop old ebuilds)
-
- 12 Jul 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20070711.ebuild, +uhexen2-cvs-20070712.ebuild:
- Version bump (and drop old 20070711, but keep 20070704 because snapshot is
- still available)
-
- 12 Jul 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20070709.ebuild, +uhexen2-cvs-20070711.ebuild:
- Version bump (snd drop old 20070709, but keep 20070704 because snapshot is
- still available)
-
- 10 Jul 2007; Davide Cendron (scen) <scen@gentoo.org>
- +uhexen2-cvs-20070709.ebuild:
- Version bump
-
- 05 Jul 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20070701.ebuild, +uhexen2-cvs-20070704.ebuild:
- Version bump (and removed old)
-
- 04 Jul 2007; Davide Cendron (scen) <scen@gentoo.org>
- uhexen2-cvs-20070701.ebuild:
- Some fixes/additions from upstream (thanks to sezero); added ~ppc keyword,
- because this package is known to work on this arch (but please test it 8) )
-
- 02 Jul 2007; Davide Cendron (scen) <scen@gentoo.org>
- uhexen2-cvs-20070701.ebuild:
- Fixed an installation issue, due to a vanished text doc
-
- 02 Jul 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20070627.ebuild, +uhexen2-cvs-20070701.ebuild:
- Version bump (and drop old)
-
- 27 Jun 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20070616.ebuild, -uhexen2-cvs-20070626.ebuild,
- +uhexen2-cvs-20070627.ebuild:
- Version bump (and drop old)
-
- 26 Jun 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20070625.ebuild, +uhexen2-cvs-20070626.ebuild:
- Version bump (and drop previous version); maintaining 20070616 because
- tarball is still available
-
- 25 Jun 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20070624.ebuild, +uhexen2-cvs-20070625.ebuild:
- Version bump (and drop old version); maintaining 20070616 because tarball is
- still available
-
- 25 Jun 2007; Davide Cendron (scen) <scen@gentoo.org>
- +uhexen2-cvs-20070624.ebuild:
- Version bump
-
- 19 Jun 2007; Davide Cendron (scen) <scen@gentoo.org>
- uhexen2-cvs-20070616.ebuild:
- Added '3dfx' and 'asm' USE flags, 'timidity' replaced by 'midi', done some
- change to ewarn/elog messages
-
- 18 Jun 2007; Davide Cendron (scen) <scen@gentoo.org>
- -uhexen2-cvs-20070612.ebuild, +uhexen2-cvs-20070616.ebuild:
- Version bump (and removed old one)
-
- 15 Jun 2007; Ali Polatel (hawking) <polatel@gmail.com>
- -uhexen2-cvs-20070609.ebuild:
- Drop old
-
- 14 Jun 2007; Davide Cendron (scen) <scen@gentoo.org>
- uhexen2-cvs-20070612.ebuild:
- Fixed Portage working dir path
-
- 14 Jun 2007; Davide Cendron (scen) <scen@gentoo.org>
- +uhexen2-cvs-20070612.ebuild:
- Version bump
-
- 13 Jun 2007; Davide Cendron (scen) <scen@gentoo.org>
- uhexen2-cvs-20070609.ebuild:
- Get rid of yesno() function
-
- 12 Jun 2007; Davide Cendron (scen) <scen@gentoo.org>
- +uhexen2-cvs-20070609.ebuild, +metadata.xml:
- New Ebuild for bug 181824
-
diff --git a/games-fps/uhexen2-cvs/Manifest b/games-fps/uhexen2-cvs/Manifest
deleted file mode 100644
index c1db689cb..000000000
--- a/games-fps/uhexen2-cvs/Manifest
+++ /dev/null
@@ -1,6 +0,0 @@
-DIST gamedata-all-1.19a.tgz 3703488 RMD160 3dad3b4b3aa80fb595749a6768376a245db89c12 SHA1 25ce550057c511b5cc2e4372163c0216eac35fcd SHA256 b9b9561b4155bfe3f8005315a7f8f95a567c2ebbcb2a950ad05dcb1702ac68de
-DIST hexenworld-pakfiles-0.15.tgz 4948641 RMD160 bbc3d2368b01d60accf457b42f9ed5d247f94d1b SHA1 a7600b80b4205788b64fb57191e194c28b55b522 SHA256 49462cdf984deee7350d03c7d192d1c34d682647ffc9d06de4308e0a7c71c4d9
-DIST uhexen2-cvs-20080404.tgz 6434136 RMD160 9d931a13fc7e4c69d4b4183aacda18a76fcd62e6 SHA1 10716270bc65fed4b7484c60b64e71571b47d337 SHA256 5043b8642823a7493b0ff0f6105e79e475b597f9214769efd005366b0e09a172
-EBUILD uhexen2-cvs-20080404.ebuild 12703 RMD160 7eb9db79f9aa133c2adf31a9b16567686edc5dd1 SHA1 36cf1756b77aab24d7c88e8c3d6daf746e45b08e SHA256 18b6c72c24786e791f982ba59d095823b67b75254f7e2e47a67c9a559888d448
-MISC ChangeLog 9758 RMD160 0d9d43cd1ce7656f491ad3c13207ed416e1c782b SHA1 0ad90dbb5a6a1aef7dd01ecbf61665e716847c5f SHA256 4f73a408ae65317693137d6a6cd0d4a40dd5fa0278efbe75305b705b94bffb24
-MISC metadata.xml 1190 RMD160 b56b4fc13dd39301d4cdf260dd96c5ca3aa91cdd SHA1 20533c33af6dd7ce0545ffe3e2be79b155ab6d14 SHA256 2de2270d08921023e5f4f01e421813a7998597720e3cc36d2586ddbf9a49643d
diff --git a/games-fps/uhexen2-cvs/metadata.xml b/games-fps/uhexen2-cvs/metadata.xml
deleted file mode 100644
index 00ccbeec5..000000000
--- a/games-fps/uhexen2-cvs/metadata.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <herd>no-herd</herd>
- <maintainer><email>maintainer-wanted@gentoo.org</email></maintainer>
- <longdescription lang="en">
- Hammer of Thyrion is a port of Raven's Hexen II source code to
- support Linux, FreeBSD, other unices and Windows.
- </longdescription>
- <use>
- <flag name='asm'>Use x86 assembly on ia32 machines which is faster (it only applies to software renderer)</flag>
- <flag name='cdaudio'>Enable cd audio playback support</flag>
- <flag name='demo'>Install the demo files (hexen2-demodata) and configure for use</flag>
- <flag name='dynamic'>Link to the opengl libraries at compile time</flag>
- <flag name='hexenworld'>Build support for HexenWorld</flag>
- <flag name='lights'>Install and setup the updated light maps</flag>
- <flag name='midi'>Include MIDI music support</flag>
- <flag name='optimize-cflags'>Build with more optimized CFLAGS</flag>
- <flag name='sdlaudio'>Enable SDL audio</flag>
- <flag name='sdlcd'>Enable cd audio playback support through SDL</flag>
- <flag name='tools'>Install various useful tools</flag>
- </use>
-</pkgmetadata>
diff --git a/games-fps/uhexen2-cvs/uhexen2-cvs-20080404.ebuild b/games-fps/uhexen2-cvs/uhexen2-cvs-20080404.ebuild
deleted file mode 100644
index 8ccab3a2c..000000000
--- a/games-fps/uhexen2-cvs/uhexen2-cvs-20080404.ebuild
+++ /dev/null
@@ -1,460 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="2"
-
-inherit eutils flag-o-matic toolchain-funcs games
-
-DATA_PV="1.19a"
-HW_PV="0.15"
-MY_PN="hexen2"
-DEMO_PV="1.4.2"
-
-DESCRIPTION="Hexen 2 port - Hammer of Thyrion (CVS snapshot)"
-HOMEPAGE="http://uhexen2.sourceforge.net/"
-SRC_URI="http://uhexen2.sourceforge.net/devel/cvs_latest/${P}.tgz
- mirror://sourceforge/u${MY_PN}/gamedata-all-${DATA_PV}.tgz
- hexenworld? ( mirror://sourceforge/u${MY_PN}/hexenworld-pakfiles-${HW_PV}.tgz )"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="3dfx alsa asm cdaudio debug dedicated demo dynamic hexenworld gtk lights
-midi opengl optimize-cflags oss sdlaudio sdlcd tools"
-
-QA_EXECSTACK="${GAMES_BINDIR:1}/hexen2
- ${GAMES_BINDIR:1}/glhexen2
- ${GAMES_BINDIR:1}/hexen2-demo
- ${GAMES_BINDIR:1}/glhexen2-demo
- ${GAMES_BINDIR:1}/hwcl
- ${GAMES_BINDIR:1}/glhwcl
- ${GAMES_BINDIR:1}/hwcl-demo
- ${GAMES_BINDIR:1}/glhwcl-demo"
-
-UIDEPEND=">=media-libs/libsdl-1.2.7
- 3dfx? ( media-libs/glide-v3 )
- alsa? ( >=media-libs/alsa-lib-1.0.7 )
- midi? ( >=media-libs/sdl-mixer-1.2.5[timidity] )
- !midi? ( >=media-libs/sdl-mixer-1.2.5 )
- opengl? ( virtual/opengl )"
-
-# Launcher depends from GTK+ libs
-LNCHDEPEND="gtk? ( =x11-libs/gtk+-2* )"
-
-# xdelta is needed to manually run the patch script
-RDEPEND="!games-fps/uhexen2
- ${UIDEPEND}
- ${LNCHDEPEND}
- demo? ( >=games-fps/hexen2-demodata-${DEMO_PV} )
- lights? ( games-fps/hexen2-lights )
- >=dev-util/xdelta-1.1.3-r1"
-DEPEND="${UIDEPEND}
- ${LNCHDEPEND}
- x86? ( asm? ( >=dev-lang/nasm-0.98.38 ) )"
-
-S="${WORKDIR}/uhexen2-cvs-${PV}"
-dir="${GAMES_DATADIR}/${MY_PN}"
-
-pkg_setup() {
- games_pkg_setup
-
- if ! use midi ; then
- ewarn "MIDI support disabled! MIDI music won't be played at all."
- ewarn "If you want to hear it, recompile this package"
- ewarn "with \"midi\" USE flag enabled."
- fi
-
- use alsa || ewarn "alsa is the recommended sound driver."
-}
-
-src_prepare() {
- # Clean CVS stuff
- find . -type d -name 'CVS' -exec rm -fr {} ';'
-
- cd hexen2
- epatch "${S}/00_Patches/external-music-file-support.diff"
- cd ..
-
- # Whether to use the demo directory
- local demo
- use demo && demo="/demo"
-
- # Use default basedir - has 2 variations
- sed -i \
- -e "s:parms.basedir = cwd;:parms.basedir = \""${dir}"${demo}\";:" \
- -e "s:parms.basedir = \".\";:parms.basedir = \""${dir}"${demo}\";:" \
- {hexen2,hexen2/server,hexenworld/{Client,Server}}/sys_unix.c \
- || die "sed sys_unix.c failed"
-
- # Change default sndspeed from 22050 to 44100,
- # to improve the quality/reliability.
- sed -i \
- -e "s:desired_speed = 22050:desired_speed = 44100:" \
- {hexen2,hexenworld/Client}/snd_dma.c || die "sed snd_dma.c failed"
-
- # Change patch script to be suitable
- sed -i \
- -e "s:chmod :#chmod :" \
- -e 's:"xdelta113":"/usr/bin/xdelta":' \
- -e "s:./xdelta113:xdelta": \
- "${WORKDIR}"/update_xdelta.sh || die "sed update_xdelta.sh failed"
-
- # Honour Portage CFLAGS also when debuggins is enabled
- use debug && append-flags "-g2"
- for u in `grep -lr '\-g \-Wall' *`; do
- sed -i \
- -e "s/^CFLAGS \:\= \-g \-Wall/CFLAGS \:\= ${CFLAGS}/" \
- ${u} || die "sed ${u} failed"
- done
-
- if use demo ; then
- # Allow lightmaps in demo
- sed -i \
- -e "s:!override_pack:0:" \
- hexen2/common.c || die "sed common.c demo failed"
- fi
-
- if use gtk ; then
- # Tweak the default games data dir for graphical launcher
- sed -i \
- -e "/int basedir_nonstd/s:= 0:= 1:" \
- -e "/game_basedir\[0\]/d" \
- launcher/config_file.c || die "sed config_file.c failed"
- # Tweak the default name for binary executables,if DEMO version is enabled
- if use demo ; then
- sed -i \
- -e "/BINARY_NAME/s:\"$:-demo\":" \
- launcher/games.h || die "sed games.h failed"
- fi
- fi
-
- rm -rf docs/{activision,COMPILE,COPYING,LICENSE,README.win32}
-}
-
-src_compile() {
-
- local h2bin="h2" hwbin="hw" link_gl_libs="no" opts
- local \
- h2bin="h2" hwbin="hw" \
- USE_ALSA="no" \
- USE_CDAUDIO="no" \
- LINK_GL_LIBS="no" \
- USE_MIDI="no" \
- OPT_EXTRA="no" \
- USE_OSS="no" \
- USE_SDLCD="no" \
- X86_ASM="no" \
- USE_3DFX="no" \
- opts
-
- if use opengl ; then
- h2bin="${h2bin} gl${h2bin}"
- hwbin="${hwbin} gl${hwbin}"
- use dynamic && LINK_GL_LIBS="yes"
- fi
-
- use debug && opts="${opts} DEBUG=1"
- use demo && opts="${opts} DEMO=1"
-
- use alsa && USE_ALSA="yes"
- use cdaudio && USE_CDAUDIO="yes"
- use optimize-cflags && OPT_EXTRA="yes"
- use oss && USE_OSS="yes"
- use sdlcd && USE_SDLCD="yes"
- use midi && USE_MIDI="yes"
- use x86 && use asm && X86_ASM="yes"
- use 3dfx && USE_3DFX="yes"
-
- if use gtk ; then
- # Build launcher
- cd "${S}/launcher"
- einfo "Building graphical launcher"
- emake \
- AUTOTOOLS=1 \
- ${opts} \
- CPUFLAGS="${CFLAGS}" \
- CC="$(tc-getCC)" \
- || die "emake launcher failed"
- fi
-
- if use tools ; then
- # Build Hexen2 utils
- cd "${S}/utils"
- einfo "Building utils"
- local utils_list="hcc maputils genmodel qfiles dcc jsh2color hcc_old texutils/bsp2wal texutils/lmp2pcx"
- for x in ${utils_list}
- do
- emake -C ${x} \
- ${opts} \
- CPUFLAGS="${CFLAGS}" \
- CC="$(tc-getCC)" \
- || die "emake ${x} failed"
- done
- fi
-
- if use dedicated ; then
- # Dedicated Server
- cd "${S}/${MY_PN}"
- einfo "Building Dedicated Server"
- emake \
- ${opts} \
- OPT_EXTRA=${OPT_EXTRA} \
- CPUFLAGS="${CFLAGS}" \
- CC="$(tc-getCC)" \
- -f Makefile.sv \
- || die "emake Dedicated server failed"
- fi
-
- if use hexenworld ; then
- if use tools; then
- # Hexenworld utils
- local hw_utils="hwmquery hwrcon"
- einfo "Building Hexenworld utils"
- cd "${S}/hw_utils"
- for x in ${hw_utils} ; do
- emake \
- ${opts} \
- CPUFLAGS="${CFLAGS}" \
- CC="$(tc-getCC)" \
- -C ${x} \
- || die "emake ${x} failed"
- done
- fi
-
- # Hexenworld
- einfo "Building Hexenworld servers"
- cd "${S}"/hexenworld
- # Hexenworld servers
- emake \
- ${opts} \
- CPUFLAGS="${CFLAGS}" \
- CC="$(tc-getCC)" \
- -C Server \
- || die "emake HexenWorld Server failed"
- emake \
- ${opts} \
- CPUFLAGS="${CFLAGS}" \
- CC="$(tc-getCC)" \
- -C Master \
- || die "emake HexenWorld Master failed"
-
- # Hexenworld client
- einfo "Building Hexenworld client(s)"
- for m in ${hwbin} ; do
- emake -C Client clean
- emake \
- ${opts} \
- USE_ALSA=${USE_ALSA} \
- USE_OSS=${USE_OSS} \
- USE_CDAUDIO=${USE_CDAUDIO} \
- USE_MIDI=${USE_MIDI} \
- USE_SDLAUDIO=${USE_SDLAUDIO} \
- USE_SDLCD=${USE_SDLCD} \
- USE_X86_ASM=${X86_ASM} \
- OPT_EXTRA=${OPT_EXTRA} \
- LINK_GL_LIBS=${LINK_GL_LIBS} \
- USE_3DFXGAMMA="${USE_3DFX}" \
- CPUFLAGS="${CFLAGS}" \
- CC="$(tc-getCC)" \
- ${m} \
- -C Client \
- || die "emake Hexenworld Client (${m}) failed"
- done
- fi
-
- # Hexen 2 game executable
- cd "${S}/${MY_PN}"
-
- einfo "Building UHexen2 game executable(s)"
- for m in ${h2bin} ; do
- emake clean
- emake \
- ${opts} \
- USE_ALSA=${USE_ALSA} \
- USE_OSS=${USE_OSS} \
- USE_CDAUDIO=${USE_CDAUDIO} \
- USE_MIDI=${USE_MIDI} \
- USE_SDLAUDIO=${USE_SDLAUDIO} \
- USE_SDLCD=${USE_SDLCD} \
- USE_X86_ASM=${X86_ASM} \
- OPT_EXTRA=${OPT_EXTRA} \
- LINK_GL_LIBS=${LINK_GL_LIBS} \
- USE_3DFXGAMMA=${USE_3DFX} \
- CPUFLAGS="${CFLAGS}" \
- CC="$(tc-getCC)" \
- ${m} \
- || die "emake Hexen2 (${m}) failed"
- done
-
-}
-
-src_install() {
- local demo demo_title demo_suffix
- use demo && demo="-demo" && demo_title=" (Demo)" && demo_suffix="demo"
-
- newicon hexen2/icons/h2_32x32x4.png ${PN}.png || die
-
- make_desktop_entry "${MY_PN}${demo}" "Hexen 2${demo_title}" ${PN}.png
- newgamesbin "${MY_PN}/${MY_PN}" "${MY_PN}${demo}" \
- || die "newgamesbin ${MY_PN} failed"
-
- if use opengl ; then
- make_desktop_entry "gl${MY_PN}${demo}" "GLHexen 2${demo_title}" ${PN}.png
- newgamesbin "${MY_PN}/gl${MY_PN}" "gl${MY_PN}${demo}" \
- || die "newgamesbin gl${MY_PN} failed"
- fi
-
- if use dedicated ; then
- newgamesbin "${MY_PN}"/h2ded "${MY_PN}${demo}-ded" \
- || die "newgamesbin h2ded failed"
- fi
-
- if use hexenworld ; then
- if use tools; then
- # Hexenworld utils
- dobin hw_utils/hwmquery/hwmquery || die "dobin hwmquery failed"
- dobin hw_utils/hwrcon/{hwrcon,hwterm} || die "dobin hwrcon/hwterm failed"
-
- dodoc hw_utils/hwmquery/hwmquery.txt || die "dodoc hwmquery.txt failed"
- dodoc hw_utils/hwrcon/{hwrcon,hwterm}.txt \
- || die "dodoc hwrcon/hwterm.txt failed"
- fi
-
- # Hexenworld Servers
- newgamesbin hexenworld/Server/hwsv hwsv${demo} \
- || die "newgamesbin hwsv failed"
-
- newgamesbin hexenworld/Master/hwmaster hwmaster${demo} \
- || die "newgamesbin hwmaster failed"
-
- # HexenWorld client(s)
- newicon hexenworld/icons/hw2_32x32x8.png hwcl.png || die
-
- make_desktop_entry \
- "hwcl${demo}" "Hexen 2${demo_title} Hexenworld Client" hwcl.png
- newgamesbin "hexenworld/Client/hwcl" "hwcl${demo}" \
- || die "newgamesbin hwcl failed"
-
- if use opengl ; then
- make_desktop_entry \
- "glhwcl${demo}" "GLHexen 2${demo_title} Hexenworld Client" hwcl.png
- newgamesbin "hexenworld/Client/glhwcl" "glhwcl${demo}" \
- || die "newgamesbin glhwcl failed"
- fi
-
- insinto "${dir}"/${demo_suffix}
- doins -r "${WORKDIR}"/hw || die "doins hexenworld pak failed"
- fi
-
- if use gtk ; then
- # GTK launcher
- local lnch_name="h2launcher"
- use demo && lnch_name="h2demo"
- newgamesbin launcher/${lnch_name} h2launcher \
- || die "newgamesbin h2launcher failed"
- make_desktop_entry \
- "h2launcher" "Hexen 2${demo_title} Launcher" ${PN}.png
- fi
-
- # Forge a new useful document 8)
- head -22 "00_Patches/external-music-file-support.diff" > \
- "docs/external_music.README" || die "make readme failed"
-
- dodoc docs/* || die
-
- if ! use demo ; then
- # Install updated game data
- insinto "${dir}"
- doins -r "${WORKDIR}"/{data1,patchdata,portals,siege} || die
- # Patching should really be done by a future "hexen2-data" ebuild.
- # But this works for now.
- doins "${WORKDIR}"/update_xdelta.sh || die
- dodoc "${WORKDIR}"/*.txt || die
- fi
-
- if use tools ; then
- dobin \
- utils/bin/{bsp2wal,bspinfo,dhcc,genmodel,hcc} \
- || die "dobin utils part 1 failed"
- dobin \
- utils/bin/{jsh2colour,light,lmp2pcx,qbsp,qfiles,vis} \
- || die "dobin utils part 2 failed"
- newbin utils/hcc_old/hcc hcc_old || die "newbin hcc_old failed"
- docinto utils
- dodoc utils/README || die "dodoc README failed"
- newdoc utils/dcc/README README.dcc || die "newdoc dcc failed"
- dodoc utils/dcc/dcc.txt || die "dodoc dcc.txt failed"
- newdoc utils/hcc/README README.hcc || die "newdoc hcc failed"
- newdoc utils/hcc_old/README hcc_old.txt || die "newdoc hcc_old failed"
- newdoc utils/jsh2color/README README.jsh2color \
- || die "newdoc README.jsh2color failed"
- newdoc utils/jsh2color/ChangeLog ChangeLog.jsh2color \
- || die "newdoc Changelog.jsh2color failed"
- fi
-
- prepgamesdirs
-}
-
-pkg_postinst() {
- games_pkg_postinst
-
- if use demo ; then
- einfo "uhexen2 has been compiled specifically to play the demo maps."
- einfo "Example command-line:"
- einfo " hexen2-demo -width 1024 -height 768 -conwidth 640"
- einfo
- else
- elog "To play the demo, emerge with the 'demo' USE flag."
- elog
- elog "For the Hexen 2 original game..."
- elog "Put the following files into "${dir}"/data1 before playing:"
- elog " pak0.pak pak1.pak"
- elog "Then to play: hexen2"
- elog
- elog "For the 'Portal of Praevus' mission pack..."
- elog "Put the following file into "${dir}"/portals before playing:"
- elog " pak3.pak"
- elog "Then to play: hexen2 -portals"
- elog
- elog "To ensure the data files from the CD are patched, run as root:"
- elog " cd "${dir}" && sh update_xdelta.sh"
- elog
- elog "Example command-line:"
- elog " hexen2 -width 1024 -height 768 -conwidth 640"
- einfo
- fi
- if use gtk ; then
- einfo "You've also installed a nice graphical launcher. Simply run:"
- einfo
- einfo " h2launcher"
- einfo
- einfo "to enjoy it :)"
- einfo
- fi
- if use tools ; then
- if use hexenworld; then
- einfo "You've also installed some Hexenworld utility:"
- einfo
- einfo " - hwmquery (console app to query HW master servers)"
- einfo " - hwrcon (remote interface to HW rcon command)"
- einfo " - hwterm (HW remote console terminal)"
- einfo
- fi
- einfo "You've also installed some Hexen2 utility"
- einfo "(useful for mod developing)"
- einfo
- einfo " - dhcc (old progs.dat compiler/decompiler)"
- einfo " - genmodel (3-D model grabber)"
- einfo " - hcc (HexenC compiler)"
- einfo " - hcc_old (old version of HexenC compiler)"
- einfo " - jsh2color (light colouring utility)"
- einfo " - maputils (Map compiling tools: bspinfo, light, qbsp, vis)"
- einfo " - qfiles (build pak files and regenerate bsp models)"
- einfo " - bsp2wal (extract all textures from a bsp file)"
- einfo " - lmp2pcx (convert hexen2 texture data into pcx and tga)"
- einfo
- einfo "See relevant documentation for further informations"
- einfo
- fi
-}