summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Stakenvicius <axs@gentoo.org>2014-07-10 22:14:04 +0000
committerIan Stakenvicius <axs@gentoo.org>2014-07-10 22:14:04 +0000
commit8a095dc8c16ed1d3090f826ad716b314879ed8ae (patch)
tree14d87bea269778ba8e6ded53ae07c8eb36da30a6 /games-fps
parentImprove dependencies (diff)
downloadgentoo-2-8a095dc8c16ed1d3090f826ad716b314879ed8ae.tar.gz
gentoo-2-8a095dc8c16ed1d3090f826ad716b314879ed8ae.tar.bz2
gentoo-2-8a095dc8c16ed1d3090f826ad716b314879ed8ae.zip
Bumped EAPI to 5, adjusted deps for gx86-multilib, added some vars to the wrapper so that it won't segfault with newer mesa or nvidia GL, added postinst reminder about /dev/dsp
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 2B6559ED)
Diffstat (limited to 'games-fps')
-rw-r--r--games-fps/soldieroffortune-demo/ChangeLog13
-rw-r--r--games-fps/soldieroffortune-demo/soldieroffortune-demo-0.57-r1.ebuild76
2 files changed, 86 insertions, 3 deletions
diff --git a/games-fps/soldieroffortune-demo/ChangeLog b/games-fps/soldieroffortune-demo/ChangeLog
index 0e08f747f3c1..0ea2d646e46d 100644
--- a/games-fps/soldieroffortune-demo/ChangeLog
+++ b/games-fps/soldieroffortune-demo/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for games-fps/soldieroffortune-demo
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/soldieroffortune-demo/ChangeLog,v 1.11 2012/12/28 20:28:30 tupone Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/soldieroffortune-demo/ChangeLog,v 1.12 2014/07/10 22:14:04 axs Exp $
+
+*soldieroffortune-demo-0.57-r1 (10 Jul 2014)
+
+ 10 Jul 2014; Ian Stakenvicius (_AxS_) <axs@gentoo.org>
+ +soldieroffortune-demo-0.57-r1.ebuild:
+ Bumped EAPI to 5, adjusted deps for gx86-multilib, added some vars to the
+ wrapper so that it won't segfault with newer mesa or nvidia GL, added postinst
+ reminder about /dev/dsp
28 Dec 2012; Tupone Alfredo <tupone@gentoo.org>
soldieroffortune-demo-0.57.ebuild:
@@ -44,4 +52,3 @@
+soldieroffortune-demo-0.57.ebuild:
Initial import. Ebuild by Paul Bredbury <brebs@sent.com>. Closing bug
#120422.
-
diff --git a/games-fps/soldieroffortune-demo/soldieroffortune-demo-0.57-r1.ebuild b/games-fps/soldieroffortune-demo/soldieroffortune-demo-0.57-r1.ebuild
new file mode 100644
index 000000000000..dbc8c5c442d2
--- /dev/null
+++ b/games-fps/soldieroffortune-demo/soldieroffortune-demo-0.57-r1.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/soldieroffortune-demo/soldieroffortune-demo-0.57-r1.ebuild,v 1.1 2014/07/10 22:14:04 axs Exp $
+
+EAPI=5
+inherit eutils unpacker games
+
+MY_PN=${PN/soldieroffortune/sof}
+
+DESCRIPTION="First-person shooter based on the mercenary trade"
+HOMEPAGE="http://www.lokigames.com/products/sof/"
+SRC_URI="mirror://lokigames/loki_demos/${MY_PN}.run"
+
+LICENSE="LOKI-EULA"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="strip"
+
+DEPEND="games-util/loki_patch"
+RDEPEND="|| (
+ (
+ virtual/opengl[abi_x86_32(-)]
+ media-libs/libsdl[X,opengl,sound,abi_x86_32(-)]
+ x11-libs/libXrender[abi_x86_32(-)]
+ x11-libs/libXrandr[abi_x86_32(-)]
+ x11-libs/libXcursor[abi_x86_32(-)]
+ media-libs/smpeg[abi_x86_32(-)]
+ )
+ (
+ app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
+ app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
+ app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
+ )
+)"
+
+S=${WORKDIR}
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+Ddir=${D}/${dir}
+QA_PREBUILT="${dir:1}/* ${dir:1}/base/*so"
+
+src_install() {
+ local demo="data/demos/sof_demo"
+ local exe="sof-bin.x86"
+
+ loki_patch patch.dat data/ || die "loki patch failed"
+
+ insinto "${dir}"
+ exeinto "${dir}"
+ doins -r "${demo}"/*
+ doexe "${demo}/${exe}"
+
+ # Replace bad library
+ dosym /usr/$(use amd64 && echo lib32 || echo lib)/libSDL.so "${dir}"/libSDL-1.1.so.0
+
+ games_make_wrapper ${PN} "./${exe}" "${dir}" "${dir}"
+
+ # fix buffer overflow
+ sed -i -e '/^exec/i \
+export MESA_EXTENSION_MAX_YEAR=2003 \
+export __GL_ExtensionStringVersion=17700' "${ED}"/usr/games/bin/${PN}
+
+ newicon "${demo}"/launch/box.png ${PN}.png
+ make_desktop_entry ${PN} "Soldier of Fortune (Demo)"
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ ewarn "This game requires OSS sound device /dev/dsp ; make sure the module"
+ ewarn "snd_pcm_oss is loaded and/or built into your kernel or there will be no sound"
+ elog
+ elog "Run '${PN}' to start the game"
+}