View | Details | Raw Unified
Collapse All | Expand All

(-) /usr/portage/games-action/armagetronad/armagetronad-0.2.7.1.ebuild (-17 / +13 lines)
 Lines 8-14    Link Here 
DESCRIPTION="3d tron lightcycles, just like the movie"
DESCRIPTION="3d tron lightcycles, just like the movie"
HOMEPAGE="http://armagetronad.sourceforge.net/"
HOMEPAGE="http://armagetronad.sourceforge.net/"
SRC_URI="mirror://sourceforge/armagetronad/${P}.tar.bz2
SRC_URI="mirror://sourceforge/armagetronad/${P}.tar.bz2
	opengl? (
	!dedicated? (
		http://armagetron.sourceforge.net/addons/moviesounds_fq.zip
		http://armagetron.sourceforge.net/addons/moviesounds_fq.zip
		http://armagetron.sourceforge.net/addons/moviepack.zip
		http://armagetron.sourceforge.net/addons/moviepack.zip
	)"
	)"
 Lines 16-40    Link Here 
LICENSE="GPL-2"
LICENSE="GPL-2"
SLOT="0"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
KEYWORDS="amd64 ~ppc x86"
IUSE="dedicated opengl"
IUSE="dedicated"
RDEPEND="sys-libs/zlib
RDEPEND="
	opengl? (
	!dedicated? (
		sys-libs/zlib
		virtual/opengl
		virtual/opengl
		virtual/glu
		media-libs/libsdl
		media-libs/libsdl
		media-libs/sdl-image
		media-libs/sdl-image
		media-libs/sdl-mixer
		media-libs/jpeg
		media-libs/jpeg
		media-libs/libpng )"
		media-libs/libpng )"
DEPEND="${RDEPEND}
DEPEND="${RDEPEND}
	app-arch/unzip
	!dedicated? ( app-arch/unzip )"
	|| (
		x11-libs/libX1
		virtual/x11 )"
src_compile() {
src_compile() {
	filter-flags -fno-exceptions
	filter-flags -fno-exceptions
	if use dedicated && ! use opengl; then
	if use dedicated; then
		egamesconf --disable-glout || die "egamesconf failed"
		egamesconf --disable-glout || die "egamesconf failed"
	else
	else
		egamesconf || die "egamesconf failed"
		egamesconf || die "egamesconf failed"
 Lines 49-66    Link Here 
	dohtml doc/net/*.html
	dohtml doc/net/*.html
	newicon tron.ico ${PN}.ico
	newicon tron.ico ${PN}.ico
	exeinto "${GAMES_LIBDIR}/${PN}"
	exeinto "${GAMES_LIBDIR}/${PN}"
	if use dedicated && ! use opengl; then
	if use dedicated; then
		doexe src/tron/${PN}-dedicated || die "copying files"
		doexe src/tron/${PN}-dedicated || die "copying files"
	else
	else
		doexe src/tron/${PN} || die "copying files"
		doexe src/tron/${PN} || die "copying files"
	fi
	fi
	doexe src/network/armagetronad-* || die "copying files"
	doexe src/network/armagetronad-* || die "copying files"
	insinto "${GAMES_DATADIR}/${PN}"
	insinto "${GAMES_DATADIR}/${PN}"
	if use dedicated && ! use opengl; then
	doins -r log language || die "copying files"
		doins -r log language || die "copying files"
	if ! use dedicated; then
	else
		doins -r arenas models sound textures music || die "copying files"
		doins -r arenas models sound textures language log music \
			|| die "copying files"
	fi
	fi
	insinto "${GAMES_SYSCONFDIR}/${PN}"
	insinto "${GAMES_SYSCONFDIR}/${PN}"
	doins -r config/* || die "copying files"
	doins -r config/* || die "copying files"
 Lines 69-75    Link Here 
	fi
	fi
	cd "${S}"
	cd "${S}"
	insinto "${GAMES_DATADIR}/${PN}"
	insinto "${GAMES_DATADIR}/${PN}"
	if use opengl; then
	if ! use dedicated; then
		dogamesbin "${FILESDIR}/${PN}"
		dogamesbin "${FILESDIR}/${PN}"
		insinto "${GAMES_DATADIR}/${PN}"
		insinto "${GAMES_DATADIR}/${PN}"
		doins -r ../moviepack ../moviesounds || die "copying movies"
		doins -r ../moviepack ../moviesounds || die "copying movies"