blob: 8da84def10c490c0078c0f04e0c9a7ea00f0a770 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/extreme-tuxracer/extreme-tuxracer-0.5_beta.ebuild,v 1.2 2010/03/09 18:30:55 ssuominen Exp $
EAPI=2
inherit eutils games
DESCRIPTION="High speed arctic racing game based on Tux Racer"
HOMEPAGE="http://www.extremetuxracer.com/"
SRC_URI="mirror://sourceforge/extremetuxracer/extremetuxracer-${PV/_/}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="nls"
RDEPEND="virtual/opengl
virtual/glu
dev-lang/tcl
media-libs/libsdl[X,audio,video]
media-libs/sdl-mixer[mikmod,vorbis]
media-libs/freetype:2
media-libs/libpng
x11-libs/libXmu
x11-libs/libXi
virtual/libintl"
DEPEND="${RDEPEND}
nls? ( sys-devel/gettext )
dev-util/pkgconfig"
S=${WORKDIR}/${P/_}
src_prepare() {
sed -i \
-e '/^localedir/s:=.*:=@localedir@:' \
src/Makefile.in \
|| die "sed failed"
epatch "${FILESDIR}"/${P}-libpng14.patch
}
src_configure() {
egamesconf \
--disable-dependency-tracking \
--localedir=/usr/share/locale \
$(use_enable nls)
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS ChangeLog
doicon "${FILESDIR}"/${PN}.svg
make_desktop_entry etracer "Extreme Tux Racer"
prepgamesdirs
}
|