# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-sports/stormbaancoureur/stormbaancoureur-2.0.2.ebuild,v 1.1 2008/01/07 03:27:27 mr_bones_ Exp $ inherit eutils toolchain-funcs games DESCRIPTION="Simulated obstacle course for automobiles" HOMEPAGE="http://www.sturmbahnfahrer.com/" SRC_URI="http://bram.creative4vision.nl/stormbaancoureur/download/${P}.tar.gz" LICENSE="GPL-2" 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_unpack() { unpack ${A} cd "${S}" sed -i \ -e "/dirprefix \?=\"/s:=.*: = \"${GAMES_DATADIR}/${PN}\";:" main.cxx \ || die "sed failed" sed -i \ -e "/^CXX/s:g++:$(tc-getCXX):" \ -e '/^CXXFLAGS=/s/=/ += -DGL_GLEXT_PROTOTYPES /' \ -e '/DGAMEVERSION/s:\\::' \ -e '/Wall/d' \ -e '/^LFLAGS=/s:=:= $(LDFLAGS) :' \ -e 's:$(ODEPREFIX)/lib/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 }