summaryrefslogtreecommitdiff
blob: d7e29792736632b0f15ffe152ab96ccbb2a86ea5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/armagetron/armagetron-0.2.6.1.ebuild,v 1.2 2005/08/04 08:04:37 blubb Exp $

inherit flag-o-matic eutils games

DESCRIPTION="3d tron lightcycles, just like the movie"
HOMEPAGE="http://armagetron.sourceforge.net/"
SRC_URI="mirror://sourceforge/armagetron/${P}.tar.bz2
	http://armagetron.sourceforge.net/addons/moviesounds_fq.zip
	http://armagetron.sourceforge.net/addons/moviepack.zip"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ppc x86"
IUSE=""

RDEPEND="virtual/x11
	virtual/opengl
	media-libs/libsdl
	media-libs/sdl-image
	sys-libs/zlib
	media-libs/libpng"
DEPEND="${RDEPEND}
	app-arch/unzip"

src_compile() {
	#	$(use_enable !dedicated glout)
	egamesconf \
		--enable-music \
		|| die
	emake || die
}

src_install() {
	dogamesbin src/network/astat || die "astat failed"
	exeinto "${GAMES_LIBDIR}"/${PN}
	doexe src/tron/armagetron || die "armagetron failed"

	insinto "${GAMES_DATADIR}"/${PN}
	doins -r arenas config language models music sound textures || die "doins data"
	doins -r ../movie{pack,sounds} || die "doins movie data"
	dohtml -r doc/*

	newgamesbin "${FILESDIR}"/${PN}-0.2.6.1.sh armagetron
	sed -i \
		-e "s:DATADIR:${GAMES_DATADIR}/${PN}:" \
		-e "s:LIBDIR:${GAMES_LIBDIR}/${PN}:" \
		"${D}/${GAMES_BINDIR}"/armagetron \
		|| die "sed failed"
	prepgamesdirs
}