blob: 8eea47fd600a16c4f8560a66a2e8f7d0595e8113 (
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/supertuxkart/supertuxkart-0.6.2.ebuild,v 1.9 2010/11/03 08:56:15 tupone Exp $
EAPI=5
inherit autotools eutils games
MY_PN="supertuxkart"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="A kart racing game starring Tux, the linux penguin (TuxKart fork)"
HOMEPAGE="http://supertuxkart.sourceforge.net/"
SRC_URI="
mirror://sourceforge/supertuxkart/files/SuperTuxKart/${PV}/${MY_P}-src.tar.bz2
mirror://gentoo/${MY_PN}.png"
LICENSE="GPL-3 CC-BY-SA-3.0 CC-BY-2.0 public-domain"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="nls"
RDEPEND=">=media-libs/plib-1.8.4
virtual/opengl
media-libs/freeglut
virtual/glu
net-libs/enet:0
media-libs/libmikmod
media-libs/libvorbis
media-libs/openal
media-libs/libsdl[X,video,audio,joystick]
virtual/libintl"
DEPEND="${RDEPEND}
!games-action/supertuxkart
nls? ( sys-devel/gettext )"
S="${WORKDIR}/${MY_P}"
src_prepare() {
esvn_clean
sed -i \
-e '/ENETTREE/d' \
-e '/src\/enet\/Makefile/d' \
-e '110 i\ AC_SEARCH_LIBS(gluLookAt, GLU)' \
configure.ac \
|| die "sed failed"
sed -i \
-e '/SUBDIRS/s/doc//' \
-e '/pkgdata/d' \
Makefile.am \
|| die "sed failed"
sed -i \
-e '/pkgdatadir/s:/games::' \
-e '/desktop/d' \
-e '/icon/d' \
$(find data -name Makefile.am) \
|| die "sed failed"
sed -i \
-e '/bindir/d' \
-e '/AM_CPPFLAGS/s:/games::' \
src/Makefile.am \
|| die "sed failed"
# bug #328021
sed -i \
-e '13d' \
data/Makefile.am \
|| die "sed failed"
rm -rf src/enet
eautoreconf
epatch "${FILESDIR}"/${MY_P}-ovflfix.patch \
"${FILESDIR}"/${MY_P}-speedhack.patch
}
src_configure() {
egamesconf \
--disable-dependency-tracking \
$(use_enable nls)
}
src_install() {
default
doicon "${DISTDIR}"/${MY_PN}.png
make_desktop_entry ${MY_PN} SuperTuxKart
dodoc AUTHORS ChangeLog README TODO
prepgamesdirs
}
|