blob: 9c18b9250bdfc6b5a3b147f0cb5696a70b914240 (
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-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-sports/torcs/torcs-1.2.1.ebuild,v 1.3 2004/03/24 04:57:29 mr_bones_ Exp $
inherit games
DESCRIPTION="The Open Racing Car Simulator"
HOMEPAGE="http://torcs.org/"
SRC_URI="mirror://sourceforge/torcs/TORCS-${PV}-src.tgz
mirror://sourceforge/torcs/TORCS-${PV}-data.tgz
mirror://sourceforge/torcs/TORCS-${PV}-data-tracks-base.tgz
mirror://sourceforge/torcs/TORCS-${PV}-data-cars-extra.tgz
mirror://sourceforge/torcs/TORCS-${PV}-data-cars-Patwo-Design.tgz
mirror://sourceforge/torcs/TORCS-${PV}-src-robots-base.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
RDEPEND=">=media-libs/plib-1.6
virtual/opengl
virtual/glut
media-libs/libpng
sys-libs/zlib"
DEPEND="${RDEPEND}
>=sys-apps/sed-4"
src_compile() {
sed -i "/^instdir =/s:=.*:= ${GAMES_DATADIR}/${PN}:" Make-config.in
egamesconf \
--libdir=${GAMES_LIBDIR}/${PN} \
|| die
env HOME=${T} emake -j1 || die
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
dosed "s:DEFAULT_RUNTIME=.*:DEFAULT_RUNTIME=${GAMES_DATADIR}/${PN}:" \
"${GAMES_BINDIR}/torcs"
mv ${WORKDIR}/{cars,categories,data,menu,tracks} \
"${D}/${GAMES_DATADIR}/${PN}/"
dodoc README.linux
dohtml *.html *.png
prepgamesdirs
}
|