# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-action/armagetronad/Attic/armagetronad-0.2.8.1.ebuild,v 1.3 2006/05/01 02:51:37 mr_bones_ Exp $ inherit flag-o-matic eutils games DESCRIPTION="\"A Tron clone in 3D\"" HOMEPAGE="http://armagetronad.net/" SRC_URI="mirror://sourceforge/armagetronad/${P}.src.tar.bz2 moviesounds? ( http://beta.armagetronad.net/fetch.php/PreResource/moviesounds_fq.zip linguas_es? ( !linguas_en? ( http://beta.armagetronad.net/fetch.php/PreResource/spanishvoices.zip ) ) ) moviepack? ( http://beta.armagetronad.net/fetch.php/PreResource/moviepack.zip ) " LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="debug dedicated krawall opengl moviepack moviesounds" GLDEPS="|| ( x11-libs/libX11 virtual/x11 ) virtual/glu virtual/opengl media-libs/libsdl media-libs/sdl-image media-libs/jpeg media-libs/libpng" RDEPEND=">=dev-libs/libxml2-2.6.12 sys-libs/zlib opengl? ( ${GLDEPS} ) !dedicated? ( ${GLDEPS} )" DEPEND="${RDEPEND} moviepack? ( app-arch/unzip ) moviesounds? ( app-arch/unzip ) linguas_es? ( !linguas_en? ( app-arch/unzip ) )" aabuild() { MyBUILDDIR="${WORKDIR}/build-$1" mkdir -p "${MyBUILDDIR}" || die "error creating build directory($1)" # -p to allow EEXIST scenario cd "${MyBUILDDIR}" ln -s "${S}/configure" . use debug && DEBUGLEVEL=3 || DEBUGLEVEL=0 export DEBUGLEVEL CODELEVEL=0 [ "$SLOT" == "0" ] && myconf="--disable-multiver" || myconf="--enable-multiver=${SLOT}" egamesconf ${myconf} \ --srcdir="${S}" \ --disable-binreloc \ --disable-master \ --enable-main \ $(use_enable krawall) \ --enable-sysinstall \ --disable-useradd \ --enable-etc \ --disable-restoreold \ --disable-games \ --enable-uninstall="emerge --clean =${CATEGORY}/${PF}" \ "${@:2}" || die "egamesconf($1) failed" [ "$1" == "server" ] && ded='-dedicated' || ded='' cat >>"config.h" <