# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-strategy/warzone2100/warzone2100-2.0.10.ebuild,v 1.1 2007/12/30 01:38:12 nyhm Exp $ inherit versionator games MY_PV=$(get_version_component_range -2) DESCRIPTION="3D real-time strategy game" HOMEPAGE="http://wz2100.net/" SRC_URI="http://download.gna.org/warzone/releases/${MY_PV}/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~ppc ~ppc64 ~x86 ~amd64" # upstream requested debug support IUSE="debug" RDEPEND="dev-games/physfs media-libs/jpeg media-libs/libogg media-libs/libpng media-libs/libsdl media-libs/libvorbis >=media-libs/openal-0.0.8-r1 media-libs/sdl-net virtual/glu virtual/opengl media-libs/quesoglc media-fonts/dejavu media-libs/libmad" DEPEND="${RDEPEND} app-arch/zip" src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}"/${P}-textdraw.patch #198147 } src_compile() { egamesconf \ --disable-dependency-tracking \ --docdir=/usr/share/doc/${PF} \ --with-distributor="Gentoo ${PF}" \ --with-icondir=/usr/share/pixmaps \ --with-applicationdir=/usr/share/applications \ --with-ogg=/usr \ --with-vorbis=/usr \ $(use_enable debug) \ || die emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" prepalldocs prepgamesdirs }