From fd6d282a3cffae332aa10437d7409459afbcb6ef Mon Sep 17 00:00:00 2001 From: Leonardo Valeri Manera Date: Tue, 29 Apr 2008 00:04:59 +0200 Subject: [PATCH] Add Alephone. --- games-fps/alephone/Manifest | 4 ++ games-fps/alephone/alephone-20071103-r1.ebuild | 72 ++++++++++++++++++++++ .../files/alephone-20071103-speex-1.2.patch | 12 ++++ games-fps/alephone/files/alephone.sh | 28 +++++++++ 4 files changed, 116 insertions(+) create mode 100644 games-fps/alephone/Manifest create mode 100644 games-fps/alephone/alephone-20071103-r1.ebuild create mode 100644 games-fps/alephone/files/alephone-20071103-speex-1.2.patch create mode 100644 games-fps/alephone/files/alephone.sh diff --git a/games-fps/alephone/Manifest b/games-fps/alephone/Manifest new file mode 100644 index 0000000..e659546 --- /dev/null +++ b/games-fps/alephone/Manifest @@ -0,0 +1,4 @@ +AUX alephone-20071103-speex-1.2.patch 287 RMD160 6e8f0d5a5b2e047e56cc9c51476cf32acf59f915 SHA1 9e6139e7f3d0f63d53515a38f97f57065def1d61 SHA256 d281597f250bf809f72a89d3a3a6daf81f131d9b9373f5e7e5de46c03a3cdb3f +AUX alephone.sh 442 RMD160 f5bf19e2752d356e51fa886dbad9fedfe12f9d34 SHA1 317ab6a122227e30cd1d508e3957e27b8cafa9bd SHA256 03d4eaec18bed5fd909604ff7efbcf4ba737a2cc76ca80161bdcb4bdf527d8b9 +DIST AlephOne-20071103-nolibs.tar.bz2 1750781 RMD160 75cb7d8fc3bae0410fea79f61d96e1ef3abcb798 SHA1 bd14fd1f77c6d58cbb73298cb681f24da61bffe9 SHA256 d8ec999cd474cd210bbcfa5b52b98d8338a3eefa9e714f6e65c718e24eeb55aa +EBUILD alephone-20071103-r1.ebuild 2020 RMD160 80cb6f343d8da78893513ce18e55978885c3ea66 SHA1 832b644576e803fbf527d250212e0b24bfd126c5 SHA256 1d11e21276469092e456dad09592ba68af9218e408ccdaca17d55de62dcf3a70 diff --git a/games-fps/alephone/alephone-20071103-r1.ebuild b/games-fps/alephone/alephone-20071103-r1.ebuild new file mode 100644 index 0000000..2cea89a --- /dev/null +++ b/games-fps/alephone/alephone-20071103-r1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/alephone/alephone-20071103.ebuild,v 1.1 2008/02/04 22:32:29 mr_bones_ Exp $ + +inherit autotools eutils games + +DESCRIPTION="An enhanced version of the game engine from the classic Mac game, Marathon" +HOMEPAGE="http://source.bungie.org/" +SRC_URI="mirror://sourceforge/marathon/AlephOne-${PV}-nolibs.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" +IUSE="lua mad opengl smpeg sndfile speex vorbis" + +RDEPEND="opengl? ( virtual/opengl ) + speex? ( media-libs/speex ) + mad? ( media-libs/libmad ) + vorbis? ( media-libs/libvorbis ) + sndfile? ( media-libs/libsndfile ) + smpeg? ( media-libs/smpeg ) + media-libs/sdl-net + media-libs/sdl-image + media-libs/libsdl + media-libs/alsa-lib" +DEPEND="${RDEPEND} + dev-libs/boost" + +S=${WORKDIR}/AlephOne-${PV} + +src_unpack() { + unpack ${A} + cd "${S}" + use speex && epatch "${FILESDIR}"/alephone-20071103-speex-1.2.patch + sed "s:GAMES_DATADIR:${GAMES_DATADIR}:g" \ + "${FILESDIR}"/${PN}.sh > "${T}"/${PN}.sh \ + || die "sed failed" +} + +src_compile() { + egamesconf \ + --disable-dependency-tracking \ + $(use_enable lua) \ + $(use_enable mad) \ + $(use_enable opengl) \ + $(use_enable smpeg) \ + $(use_enable sndfile) \ + $(use_enable speex) \ + $(use_enable vorbis) \ + || die + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dogamesbin "${T}"/${PN}.sh || die "dogamesbin failed" + dodoc AUTHORS ChangeLog README docs/Cheat_Codes + dohtml docs/MML.html + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + echo + elog "Read the docs and install the data files accordingly to play." + echo + elog "If you only want to install one scenario, read" + elog "http://traxus.jjaro.net/traxus/AlephOne:Install_Guide#Single_scenario_3" + elog "If you want to install multiple scenarios, read" + elog "http://traxus.jjaro.net/traxus/AlephOne:Install_Guide#Multiple_scenarios_3" + echo +} diff --git a/games-fps/alephone/files/alephone-20071103-speex-1.2.patch b/games-fps/alephone/files/alephone-20071103-speex-1.2.patch new file mode 100644 index 0000000..7f9ec8c --- /dev/null +++ b/games-fps/alephone/files/alephone-20071103-speex-1.2.patch @@ -0,0 +1,12 @@ +--- configure.ac 2007/12/02 04:13:53 1.56 ++++ configure.ac 2008/01/30 03:56:31 1.57 +@@ -163,6 +163,9 @@ + LIBS="-lspeex $LIBS" + AC_DEFINE(SPEEX, 1, [Speex support is enabled]) + ]) ++ AC_CHECK_LIB(speexdsp, speex_preprocess_state_init, [ ++ LIBS="-lspeexdsp $LIBS" ++]) + ]) + fi + diff --git a/games-fps/alephone/files/alephone.sh b/games-fps/alephone/files/alephone.sh new file mode 100644 index 0000000..62ac98f --- /dev/null +++ b/games-fps/alephone/files/alephone.sh @@ -0,0 +1,28 @@ +#!/bin/sh + +DIR=$(dirname "${0}") +CMD=$(basename "${0}") +ALEPHONE=${CMD%%.sh} + +if [[ -z "${1}" ]] +then + echo "Usage: ${0} SCENARIO FLAGS" + echo "Where SCENARIO is one of:" + for d in "GAMES_DATADIR"/alephone-* + do + echo " ${d##*/alephone-}" + done + exit 2 +fi + +export ALEPHONE_DATA="GAMES_DATADIR/alephone-${1}" + +shift + +# kill ARTS, because we're just that nice +if artsshell terminate 2> /dev/null +then + sleep 2 +fi + +"${DIR}"/"${ALEPHONE}" "$@" -- 2.11.4.GIT