# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils games IUSE="" DESCRIPTION="Trigger is a free rally car racing game." HOMEPAGE="http://www.positro.net/trigger/" SRC_URI="http://files.daaw.org/pub/trigger/${P}-src.tar.bz2 http://files.daaw.org/pub/trigger/${P}-linux.tar.bz2" SLOT="0" LICENSE="GPL-2" KEYWORDS="x86 " S="${WORKDIR}/${P}-src" DEPEND="media-libs/libsdl media-libs/sdl-image media-libs/sdl-mixer dev-util/jam dev-libs/boost" src_unpack() { unpack ${A} epatch ${FILESDIR}/trigger-0.4.2-compil.patch } src_compile() { mkdir ${S}/trigger/tinyxml cp pengine/tinyxml.cpp ${S}/trigger/tinyxml/ cp pengine/tinyxml.h ${S}/trigger/tinyxml/ ./do-trigger.sh } src_install () { dodir ${GAMES_DATADIR}/${PN} ${GAMES_BINDIR} cp -r ${WORKDIR}/${P}-linux/data ${D}${GAMES_DATADIR}/${PN} exeinto ${GAMES_DATADIR}/${PN} doexe trigger/linux/trigger cat << EOF > ${D}${GAMES_BINDIR}/${PN} #!/bin/sh cd ${GAMES_DATADIR}/${PN} ./${PN} \$@ EOF chmod +x ${D}${GAMES_BINDIR}/${PN} }