/[gentoo-x86]/games-action/armagetronad/armagetronad-0.2.7.1-r1.ebuild
Gentoo

Contents of /games-action/armagetronad/armagetronad-0.2.7.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Tue Apr 6 17:28:21 2010 UTC (10 years, 7 months ago) by nyhm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
rm
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-action/armagetronad/armagetronad-0.2.7.1-r1.ebuild,v 1.9 2009/06/08 17:07:30 mr_bones_ Exp $
4
5 inherit eutils games
6
7 DESCRIPTION="3d tron lightcycles, just like the movie"
8 HOMEPAGE="http://armagetronad.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/armagetronad/${P}.tar.bz2
10 !dedicated? (
11 http://armagetron.sourceforge.net/addons/moviesounds_fq.zip
12 http://armagetron.sourceforge.net/addons/moviepack.zip
13 )"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="amd64 ppc x86"
18 IUSE="dedicated"
19
20 RDEPEND="
21 !dedicated? (
22 sys-libs/zlib
23 virtual/opengl
24 virtual/glu
25 media-libs/libsdl
26 media-libs/sdl-image
27 media-libs/jpeg
28 media-libs/libpng
29 )"
30 DEPEND="${RDEPEND}
31 !dedicated? ( app-arch/unzip )"
32
33 src_unpack() {
34 unpack ${A}
35 cd "${S}"
36 epatch "${FILESDIR}"/${P}-gcc4.patch
37 epatch "${FILESDIR}"/${P}-gcc43.patch #218542
38 epatch "${FILESDIR}"/${P}-security-1.patch
39 epatch "${FILESDIR}"/${P}-build.patch
40 cp "${FILESDIR}"/${PN}-ded "${FILESDIR}"/${PN} . || die
41 sed -i \
42 -e "s:@GAMES_SYSCONFDIR@:${GAMES_SYSCONFDIR}:" \
43 -e "s:@GAMES_LIBDIR@:$(games_get_libdir):" \
44 -e "s:@GAMES_DATADIR@:${GAMES_DATADIR}:" \
45 ${PN}-ded ${PN}
46 }
47
48 src_compile() {
49 local myconf=""
50 use dedicated && myconf="--disable-glout"
51 egamesconf ${myconf} || die "egamesconf failed"
52 emake || die "emake failed"
53 make documentation || die "make doc failed"
54 }
55
56 src_install() {
57 dohtml doc/*.html
58 docinto html/net
59 dohtml doc/net/*.html
60 newicon tron.ico ${PN}.ico
61 exeinto "$(games_get_libdir)/${PN}"
62 if use dedicated ; then
63 doexe src/tron/${PN}-dedicated || die "copying files"
64 else
65 doexe src/tron/${PN} || die "copying files"
66 fi
67 doexe src/network/armagetronad-* || die "copying files"
68 insinto "${GAMES_DATADIR}/${PN}"
69 doins -r log language || die "copying files"
70 if ! use dedicated ; then
71 doins -r arenas models sound textures music || die "copying files"
72 fi
73 insinto "${GAMES_SYSCONFDIR}/${PN}"
74 doins -r config/* || die "copying files"
75 cd "${S}"
76 if ! use dedicated ; then
77 insinto "${GAMES_DATADIR}/${PN}"
78 dogamesbin ${PN} || die
79 insinto "${GAMES_DATADIR}/${PN}"
80 doins -r ../moviepack ../moviesounds || die "copying movies"
81 make_desktop_entry armagetronad "Armagetron Advanced" ${PN}.ico
82 else
83 dogamesbin ${PN}-ded || die
84 fi
85 prepgamesdirs
86 }

  ViewVC Help
Powered by ViewVC 1.1.20