/[gentoo-x86]/games-sports/torcs/torcs-1.3.4.ebuild
Gentoo

Contents of /games-sports/torcs/torcs-1.3.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Jan 30 18:06:19 2013 UTC (14 months, 2 weeks ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Stable for x86, wrt bug #453384

(Portage version: 2.1.11.31/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-sports/torcs/torcs-1.3.4.ebuild,v 1.2 2013/01/23 13:21:31 nimiux Exp $
4
5 EAPI=5
6 inherit autotools eutils multilib games
7
8 DESCRIPTION="The Open Racing Car Simulator"
9 HOMEPAGE="http://torcs.sourceforge.net/"
10 SRC_URI="mirror://sourceforge/torcs/${P}.tar.bz2"
11
12 LICENSE="GPL-2 FreeArt"
13 SLOT="0"
14 KEYWORDS="amd64 x86"
15 IUSE=""
16
17 RDEPEND="media-libs/freealut
18 media-libs/freeglut
19 media-libs/libpng:0
20 media-libs/libvorbis
21 media-libs/openal
22 >=media-libs/plib-1.8.4
23 sys-libs/zlib
24 virtual/opengl
25 virtual/glu
26 x11-libs/libX11
27 x11-libs/libXrandr
28 x11-libs/libXt"
29 DEPEND="${RDEPEND}
30 x11-proto/xf86vidmodeproto"
31
32 src_prepare() {
33 epatch \
34 "${FILESDIR}"/${P}-no-automake.patch \
35 "${FILESDIR}"/${P}-as-needed.patch \
36 "${FILESDIR}"/${P}-flags.patch
37 eautoreconf
38 ecvs_clean
39 }
40
41 src_configure() {
42 addpredict $(echo /dev/snd/controlC? | sed 's/ /:/g')
43 [[ -e /dev/dsp ]] && addpredict /dev/dsp
44 egamesconf \
45 --datadir="${GAMES_DATADIR_BASE}" \
46 --x-libraries=/usr/$(get_libdir) \
47 --enable-xrandr
48 }
49
50 src_compile() {
51 emake -j1
52 }
53
54 src_install() {
55 emake -j1 DESTDIR="${D}" install datainstall
56 newicon Ticon.png ${PN}.png
57 make_desktop_entry ${PN} TORCS
58 dodoc README doc/history/history.txt
59 doman doc/man/*.6
60 dohtml -r doc/faq/faq.html doc/tutorials doc/userman
61 prepgamesdirs
62 }

  ViewVC Help
Powered by ViewVC 1.1.20