/[gentoo-x86]/games-action/gltron/gltron-0.70-r1.ebuild
Gentoo

Contents of /games-action/gltron/gltron-0.70-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Tue Aug 24 03:49:06 2010 UTC (4 years, 3 months ago) by mr_bones_
Branch: MAIN
Changes since 1.6: +5 -1 lines
respect LDFLAGS (bug #332473)
(Portage version: 2.1.8.3/cvs/Linux i686)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-action/gltron/gltron-0.70-r1.ebuild,v 1.6 2010/04/14 16:13:50 mr_bones_ Exp $
4
5 EAPI=2
6 inherit eutils games
7
8 DESCRIPTION="3d tron, just like the movie"
9 HOMEPAGE="http://gltron.sourceforge.net/"
10 SRC_URI="mirror://sourceforge/${PN}/${P}-source.tar.gz
11 mirror://gentoo/${PN}.png"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 ppc x86"
16 IUSE=""
17
18 DEPEND="virtual/opengl
19 media-libs/libpng
20 media-libs/libsdl[audio,video]
21 media-libs/sdl-mixer[vorbis]
22 media-libs/sdl-sound[vorbis,mikmod]
23 media-libs/smpeg
24 media-libs/libmikmod"
25
26 src_prepare() {
27 epatch \
28 "${FILESDIR}"/${P}-configure.patch \
29 "${FILESDIR}"/${P}-prototypes.patch \
30 "${FILESDIR}"/${P}-debian.patch
31 sed -i \
32 -e '/^gltron_LINK/s/$/ $(LDFLAGS)/' \
33 Makefile.in \
34 || die 'sed failed'
35 }
36
37 src_configure() {
38 # warn/debug/profile just modify CFLAGS, they aren't
39 # real options, so don't utilize USE flags here
40 egamesconf \
41 --disable-warn \
42 --disable-debug \
43 --disable-profile
44 }
45
46 src_install() {
47 emake DESTDIR="${D}" install || die
48 dodoc ChangeLog README
49 doicon "${DISTDIR}"/${PN}.png
50 make_desktop_entry ${PN} GLtron
51 prepgamesdirs
52 }

  ViewVC Help
Powered by ViewVC 1.1.20