blob: 522c5a0288c05bff34984a6555c0048b3c00fce0 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-sports/toycars/toycars-0.3.5.ebuild,v 1.2 2008/12/21 02:54:29 darkside Exp $
inherit autotools eutils games
DESCRIPTION="a physics based 2-D racer inspired by Micro Machines"
HOMEPAGE="http://sourceforge.net/projects/toycars"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="media-libs/libsdl
media-libs/sdl-image
>=media-libs/fmod-4
virtual/glu
virtual/opengl"
src_unpack() {
unpack ${A}
cd "${S}"
epatch \
"${FILESDIR}"/${P}-asneeded.patch \
"${FILESDIR}"/${P}-fmod.patch \
"${FILESDIR}"/${P}-assert.patch \
"${FILESDIR}"/${P}-datadir.patch \
"${FILESDIR}"/${P}-64bit.patch \
"${FILESDIR}"/${P}-gcc43.patch
AT_M4DIR=m4 eautoreconf
}
src_install() {
dogamesbin src/${PN} || die "dogamesbin failed"
insinto "${GAMES_DATADIR}"/${PN}
doins -r data || die "doins failed"
newicon celica-render.png ${PN}.png
make_desktop_entry ${PN} "Toy Cars"
dodoc AUTHORS ChangeLog README TODO
prepgamesdirs
}
|