Ucpt:Games-strategy/bfm/bfm-0.0.6.2.ebuild
From Gentoo Linux Wiki
#Download - Bugs - Discussion - History
inherit games
DESCRIPTION="Battle for Mandicor is free real-time strategy game. Its engine is based on Stratagus."
HOMEPAGE="http://battle4mandicor.sourceforge.net/"
SRC_URI="mirror://sourceforge/battle4mandicor/bfm-0.0.6.2-src.tar.gz"
LICENSE="GPL-2"
SLOT=""
KEYWORDS="x86"
IUSE="bzip2 flac mad ogg" # opengl breaks code, FIXME
RDEPEND=">=games-engines/stratagus-2.1"
DEPEND=""
src_compile() {
CONFSTR="--prefix=${D}/usr --datadir=${D}/usr/share/games --bindir=${D}/usr/games/bin --with-x"
for TAG in $IUSE; do
use $TAG && CONFSTR="$CONFSTR --with-$TAG"
done
./configure $CONFSTR
emake || die "emake failed"
}
src_install() {
mkdir -p ${D}/usr/bin
make install || die "make install failed"
cd doc-bfm
mv -f RELASE-NOTES RELEASE-NOTES
dodoc CHEATS README RELEASE-NOTES
cd ${D}/usr/bin
cat > bfm << EOF
/usr/share/games/${PN}/${PN} -d /usr/share/games/${PN} \$*
EOF
prepgamesdirs
make_desktop_entry bfm "Battle for Mandicor" /usr/share/games/bfm/icon.png
}
#
