# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils games DESCRIPTION="A retro side scrolling shoot'em up based on the editor war story." HOMEPAGE="http://wordwarvi.sourceforge.net" SRC_URI="mirror://sourceforge/wordwarvi/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64" IUSE="portaudio" # Portaudio >=0.19 is needed for sound. # TODO USE="joystick". # TODO See how to include or exclude rumble (forcefeedback) support (e.g. look into # kernel settings). DEPEND=">=x11-libs/gtk+-2.0 dev-libs/atk x11-libs/pango portaudio? ( media-libs/libvorbis media-libsvorbis-tools >=media-libs/portaudio-0.19 ) " src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}/${P}-destdir.patch" } src_compile() { if ! use portaudio ; then emake WITHAUDIO=no else emake || die "emake failed" fi } src_install() { if ! use portaudio ; then emake WITHAUDIO=no DESTDIR="${D}" PREFIX="${GAMES_PREFIX}" install else emake DESTDIR="${D}" PREFIX="${GAMES_PREFIX}" install fi dodoc README AUTHORS changelog.txt prepgamesdirs }