# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit games PSOURCE="${P/_/-}-src" PDATA="${P/_/-}-data" DESCRIPTION="Trigger is a free OpenGL rally car racing game." HOMEPAGE="http://www.positro.net/trigger/" SRC_URI="http://files.scapecaster.com/posit/${PSOURCE}.tar.bz2 http://files.scapecaster.com/posit/${PDATA}.tar.bz2" S=${WORKDIR}/${PSOURCE} LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="virtual/opengl media-libs/libsdl media-libs/sdl-image media-libs/openal dev-games/physfs dev-util/jam" #jam is needed for the build process, but the author thinks of changing this RDEPEND="${DEPEND}" src_compile() { ./autogen.sh || die "autogen failed" GAMES_DATADIR="${GAMES_DATADIR}/${PN}" egamesconf || die "configure failed" jam || "compile failed" } src_install() { dogamesbin trigger || die "copy game-binary failed" dodir "${GAMES_DATADIR}/${PN}" cp -r ../${PDATA}/events \ ../${PDATA}/maps \ ../${PDATA}/plugins \ ../${PDATA}/sounds \ ../${PDATA}/textures \ ../${PDATA}/vehicles \ ../${PDATA}/trigger.config.defs \ "${D}${GAMES_DATADIR}/${PN}" || die "copy game-data failed" dodoc README.txt prepgamesdirs }