# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # likewhoa inherit games # This works as long as the filename contains the version number without # dots and a trailing "1". MY_P="${PN}-srcdata-${PV//.}1" DESCRIPTION="UltimateStunts will be a remake of the famous DOS-game \"stunts\"" HOMEPAGE="http://www.ultimatestunts.nl" SRC_URI="mirror://sourceforge/ultimatestunts/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" S=${WORKDIR}/${MY_P} DEPEND="media-libs/fmod media-libs/openal media-libs/libsdl virtual/opengl" RDEPEND="${DEPEND}" src_unpack() { unpack ${A} cd "${S}" # corrects some path to conform with fmod ebuild sed -i \ -e 's:fmod/fmod.h:fmod.h:' \ -e 's:/games/ultimatestunts:/ultimatestunts:' \ -e "s:./data/:${GAMES_DATADIR}/${PN}/data/:" \ configure || die "sed failed" cd ultimatestunts sed -i \ -e 's:fmod/::' \ music.cpp \ music.h \ sndsample.cpp \ sndsample.h \ soundobj.cpp \ soundobj.h \ sound.cpp \ sound.h \ || die "sed failed" } src_compile() { egamesconf \ --with-x \ --sysconfdir=${GAMES_SYSCONFDIR}/${PN} \ || die "econf failed." } src_install() { # prevent sandbox violation sed -i '302,306s#${usdatadir}#$(DESTDIR)${usdatadir}#' data/Makefile.in egamesinstall DESTDIR="${D}" || die "make install failed." dodoc AUTHORS README TODO prepgamesdirs } pkg_postinst() { games_pkg_postinst }