summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2009-09-16 13:56:03 +0000
committerTristan Heaven <nyhm@gentoo.org>2009-09-16 13:56:03 +0000
commit7507ef8d0a26fa3c5c4c64eb2c3a64fb3144ac43 (patch)
tree152ed5199a50a15460940df9274166ab7418c5d8 /games-strategy/savage2-bin/savage2-bin-2.1.0.1-r1.ebuild
parentadd for games-strategy/savage2-bin (diff)
downloadgentoo-2-7507ef8d0a26fa3c5c4c64eb2c3a64fb3144ac43.tar.gz
gentoo-2-7507ef8d0a26fa3c5c4c64eb2c3a64fb3144ac43.tar.bz2
gentoo-2-7507ef8d0a26fa3c5c4c64eb2c3a64fb3144ac43.zip
Remove bundled libs (except libpng), bug #284884
(Portage version: 2.2_rc40/cvs/Linux x86_64)
Diffstat (limited to 'games-strategy/savage2-bin/savage2-bin-2.1.0.1-r1.ebuild')
-rw-r--r--games-strategy/savage2-bin/savage2-bin-2.1.0.1-r1.ebuild93
1 files changed, 93 insertions, 0 deletions
diff --git a/games-strategy/savage2-bin/savage2-bin-2.1.0.1-r1.ebuild b/games-strategy/savage2-bin/savage2-bin-2.1.0.1-r1.ebuild
new file mode 100644
index 000000000000..ed808e18feb6
--- /dev/null
+++ b/games-strategy/savage2-bin/savage2-bin-2.1.0.1-r1.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/savage2-bin/savage2-bin-2.1.0.1-r1.ebuild,v 1.1 2009/09/16 13:56:03 nyhm Exp $
+
+EAPI=2
+inherit eutils games
+
+DESCRIPTION="Unique mix of strategy and FPS"
+HOMEPAGE="http://savage2.s2games.com/"
+SRC_URI="x86? ( http://www.savage2.com/en/downloads/installers/Savage2Install-${PV}-i686.bin )
+ amd64? ( http://www.savage2.com/en/downloads/installers/Savage2Install-${PV}-x86_64.bin )"
+
+LICENSE="savage2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="mirror strip"
+PROPERTIES="interactive"
+QA_TEXTRELS_x86="
+ ${GAMES_PREFIX_OPT:1}/savage2/vid_gl2.so
+ ${GAMES_PREFIX_OPT:1}/savage2/editor/cgame.so
+ ${GAMES_PREFIX_OPT:1}/savage2/game/libgame_shared.so
+ ${GAMES_PREFIX_OPT:1}/savage2/game/game.so
+ ${GAMES_PREFIX_OPT:1}/savage2/game/cgame.so
+ ${GAMES_PREFIX_OPT:1}/savage2/modelviewer/cgame.so
+ ${GAMES_PREFIX_OPT:1}/savage2/libk2.so"
+QA_EXECSTACK_x86="
+ ${GAMES_PREFIX_OPT:1}/savage2/savage2.bin
+ ${GAMES_PREFIX_OPT:1}/savage2/savage2_update.bin"
+QA_EXECSTACK_amd64="
+ ${GAMES_PREFIX_OPT:1}/savage2/savage2.bin
+ ${GAMES_PREFIX_OPT:1}/savage2/savage2_update.bin"
+
+RDEPEND="virtual/opengl
+ virtual/glu
+ dev-libs/libxml2
+ net-misc/curl
+ x11-libs/libX11
+ x11-libs/libXrandr
+ media-libs/alsa-lib
+ media-libs/speex
+ media-libs/freetype:2
+ media-libs/fmod:1
+ sys-libs/glibc
+ x86? ( || ( media-libs/jpeg-compat <media-libs/jpeg-7 ) )"
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}/data
+
+GAMES_CHECK_LICENSE="yes"
+
+src_unpack() {
+ if use x86 ; then
+ unzip "${DISTDIR}"/Savage2Install-${PV}-i686.bin
+ elif use amd64 ; then
+ unzip "${DISTDIR}"/Savage2Install-${PV}-x86_64.bin
+ else
+ die "Unsupported arch"
+ fi
+}
+
+src_prepare() {
+ rm -f dedicated_server.sh editor.sh modelviewer.sh
+ mv -f libs/libpng12.so.0 . || die
+ rm -rf libs
+}
+
+src_install() {
+ local dir=${GAMES_PREFIX_OPT}/savage2
+
+ insinto "${dir}"
+ doins -r * || die "doins failed"
+ fperms g+x "${dir}"/savage2{,_update}.bin || die "fperms failed"
+ newicon s2icon.png ${PN}.png
+
+ games_make_wrapper savage2 "./savage2.bin" "${dir}" "${dir}:${dir}/game"
+ make_desktop_entry savage2 "Savage 2: A Tortured Soul"
+
+ games_make_wrapper savage2-editor \
+ "./savage2.bin \"PushMod editor; Set host_autoExec StartClient\"" \
+ "${dir}" "${dir}"
+ make_desktop_entry savage2-editor "Savage 2: Editor"
+
+ games_make_wrapper savage2-modelviewer \
+ "./savage2.bin \"PushMod modelviewer; Set host_autoExec StartClient\"" \
+ "${dir}" "${dir}"
+ make_desktop_entry savage2-modelviewer "Savage 2: Model Viewer"
+
+ games_make_wrapper savage2-ded \
+ "./savage2.bin \"Set host_dedicatedServer true\"" "${dir}" "${dir}"
+
+ prepgamesdirs
+}