blob: f1be775e05156d0ae4a9a0be49c7e76690a2b11a (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-sports/race/race-0.5.ebuild,v 1.10 2005/05/17 18:55:42 wolf31o2 Exp $
inherit eutils toolchain-funcs games
DESCRIPTION="OpenGL Racing Game"
HOMEPAGE="http://projectz.org/?id=70"
SRC_URI="ftp://users.freebsd.org.uk/pub/foobar2k/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ppc x86"
IUSE=""
RDEPEND="virtual/opengl
virtual/glu
media-libs/libsdl
media-libs/sdl-image
media-libs/sdl-mixer"
src_unpack() {
unpack ${A}
cd ${S}/src
epatch ${FILESDIR}/${PV}-gentoo.patch
sed -i \
-e "s:GENTOO_DATADIR:${GAMES_DATADIR}/${PN}:g" \
-e "s:GENTOO_CONFDIR:${GAMES_SYSCONFDIR}:g" \
*.c || die "sed failed"
find "${S}"/data/ -type d -name .xvpics -print0 | xargs -0 rm -r
}
src_compile() {
emake CC="$(tc-getCC) ${CFLAGS}" || die "emake failed"
}
src_install() {
dogamesbin race || die "dogamesbin failed"
insinto ${GAMES_SYSCONFDIR}
newins config race.conf || die "newins failed"
dodir ${GAMES_DATADIR}/${PN}
cp -r data/* ${D}/${GAMES_DATADIR}/${PN}/ || die "cp failed"
dodoc README
prepgamesdirs
}
|