summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-sports/stormbaancoureur/stormbaancoureur-2.1.6.ebuild')
-rw-r--r--games-sports/stormbaancoureur/stormbaancoureur-2.1.6.ebuild48
1 files changed, 48 insertions, 0 deletions
diff --git a/games-sports/stormbaancoureur/stormbaancoureur-2.1.6.ebuild b/games-sports/stormbaancoureur/stormbaancoureur-2.1.6.ebuild
new file mode 100644
index 000000000000..3a4ea266b0a3
--- /dev/null
+++ b/games-sports/stormbaancoureur/stormbaancoureur-2.1.6.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-sports/stormbaancoureur/stormbaancoureur-2.1.6.ebuild,v 1.1 2009/12/02 09:38:56 mr_bones_ Exp $
+
+EAPI=2
+inherit eutils games
+
+DESCRIPTION="Simulated obstacle course for automobiles"
+HOMEPAGE="http://www.stolk.org/stormbaancoureur/"
+SRC_URI="http://www.stolk.org/stormbaancoureur/download/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND="virtual/opengl
+ virtual/glu
+ virtual/glut
+ >=dev-games/ode-0.8
+ >=media-libs/plib-1.8.4
+ media-libs/alsa-lib"
+
+S=${WORKDIR}/${P}/src-${PN}
+
+src_prepare() {
+ sed -i \
+ -e "/dirprefix \?=\"/s:=.*: = \"${GAMES_DATADIR}/${PN}\";:" main.cxx \
+ || die "sed failed"
+
+ sed -i \
+ -e "/^CXX=/d" \
+ -e '/Wall/d' \
+ -e "/^CXXFLAGS/ s%=%= ${CXXFLAGS} %" \
+ -e '/DGAMEVERSION/s:\\::' \
+ -e '/^LFLAGS=/s:=:= $(LDFLAGS) :' \
+ -e 's:$(ODEPREFIX)/$(LIBDIRNAME)/libode.a:-lode:' \
+ Makefile || die "sed failed"
+}
+
+src_install() {
+ dogamesbin ${PN} || die "dogamesbin failed"
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r images/ models/ sounds/ shaders/ || die "doins failed"
+ dodoc JOYSTICKS README TODO
+ make_desktop_entry ${PN} "Stormbaan Coureur"
+ prepgamesdirs
+}