# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit games DESCRIPTION="Warzone 2100, the 3D real-time strategy game." HOMEPAGE="http://www.realtimestrategies.net/forums/index.php" SRC_URI="mirror://sourceforge/warzone2100/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="opengl" DEPEND=">=sys-apps/gawk-3.1.3 >=media-libs/libsdl-1.2.8 >=media-libs/sdl-net-1.2.5 opengl? ( virtual/opengl ) >=media-libs/openal-20040817 >=media-libs/libvorbis-1.1.0 >=media-libs/libmad-0.15" src_compile() { # A makefile is provided in the tarball in case the autotools don't # work. We use them though, so we need to run autogen.sh. cd ${WORKDIR} ./autogen.sh egamesconf \ $(use_with opengl) \ || die "Error : egamesconf failed !" emake || die "Error : emake failed !" } src_install() { # As the game can't install itself automatically yet, we've got to do it # manually. mkdir -p ${D}/${GAMES_DATADIR} cp -Rf ${WORKDIR}/data ${D}/${GAMES_DATADIR}/${PN} cp ${WORKDIR}/src/warzone ${D}/${GAMES_DATADIR}/${PN} cp ${WORKDIR}/COPYING ${D}/${GAMES_DATADIR}/${PN} cp ${WORKDIR}/README ${D}/${GAMES_DATADIR}/${PN} games_make_wrapper ${PN} ./warzone "${GAMES_DATADIR}/${PN}" prepgamesdirs } pkg_postinst() { games_pkg_postinst einfo "To start the game, run :" einfo " warzone2100" einfo "Check ${GAMES_DATADIR}/${PN}/README for more information." echo einfo "Please, post bugs at :" einfo " http://developer.berlios.de/bugs/?group_id=2909" einfo "Your reward will be a better Warzone 2100." echo }