summaryrefslogtreecommitdiff
blob: bcbe311e03b31c653360197bc8849138f272e8e4 (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
53
54
55
56
57
58
59
60
61
62
63
64
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/armagetron/armagetron-0.1.4.9.ebuild,v 1.2 2003/10/28 14:10:22 vapier Exp $

inherit eutils flag-o-matic

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

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc"

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

S=${WORKDIR}/${PN}

src_unpack() {
	unpack armagetron_src_${PV}.tar.gz
	unpack moviesounds_fq.zip
	unpack moviepack.zip
	cd ${S}
	# Doesn't find libs in /usr/X11R6/lib for some reason...patched
	epatch ${FILESDIR}/${P}-configure.patch
	# Uses $SYNC which which conflicts with emerge
	epatch ${FILESDIR}/${P}-Makefile.global.in.patch
}

src_compile() {
	filter-flags -fno-exceptions
	econf || die "config failed"
	emake all || die "Make Failed"
}

src_install () {
	# make install for armagetron is non-existant
	dodir /usr/bin
	dodir /usr/share/armagetron
	dodir /usr/X11R6/lib/X11/fonts/truetype
	cp src/tron/armagetron ${D}/usr/share/armagetron || die "No Armagetron Executable"
	cp -r arenas  ${D}/usr/share/armagetron/arenas
	cp -r models ${D}/usr/share/armagetron/models
	cp -r sound ${D}/usr/share/armagetron/sound
	cp -r textures ${D}/usr/share/armagetron/textures
	# maybe convert this to a .png or something
	#cp tron.ico ${D}/usr/share/armagetron
	dohtml doc
	cp ${FILESDIR}/${P}.sh ${D}/usr/bin/armagetron
	cp -r ../moviepack ${D}/usr/share/armagetron
	cp -r ../moviesounds ${D}/usr/share/armagetron
	chmod -R a+r ${D}
	chmod a+rx ${D}/usr/bin/armagetron
	chmod a+rx ${D}/usr/share/armagetron/armagetron
}