# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit games toolchain-funcs versionator MY_P="${PN}_v$(delete_all_version_separators $PV)_src" S="${WORKDIR}/${MY_P}" DESCRIPTION="Action-adventure dungen crawl game" HOMEPAGE="http://www.asceai.net/meritous/" SRC_URI="http://www.asceai.net/files/${MY_P}.tar.bz2" LICENSE="GPL-3" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="media-libs/libsdl media-libs/sdl-image media-libs/sdl-mixer" RDEPEND="${DEPEND}" src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}"/data-dir.patch epatch "${FILESDIR}"/Makefile-flags.patch sed -ie 's/gcc/$(CC)/' Makefile || die "sed Makefile failed" } src_compile() { CFLAGS="${CFLAGS} -DDATA_DIR=\\\"${GAMES_DATADIR}/meritous\\\"" emake CC=$(tc-getCC) default } src_install() { dodir "${GAMES_DATADIR}/meritous" || die insinto "${GAMES_DATADIR}/meritous" || die doins -r dat/* || die dogamesbin meritous || die dodoc readme.txt || die prepgamesdirs }