blob: 27eb55e54bf8fb7de4fe102d062e57ba9a9b66e8 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-sports/trigger/trigger-0.5.2.ebuild,v 1.2 2006/01/29 08:04:42 joshuabaergen Exp $
inherit eutils games
DESCRIPTION="Free OpenGL rally car racing game"
HOMEPAGE="http://www.positro.net/trigger/"
SRC_URI="http://files.scapecaster.com/posit/${P}-src.tar.bz2
http://files.scapecaster.com/posit/${P}-data.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc x86"
IUSE=""
RDEPEND="virtual/opengl
|| (
( x11-libs/libX11 )
virtual/x11 )
>=media-libs/libsdl-1.2.5
>=media-libs/sdl-image-1.2
media-libs/sdl-mixer
media-libs/openal
dev-games/physfs"
DEPEND="${RDEPEND}
|| (
( x11-libs/libXt
x11-proto/xproto )
virtual/x11
)
dev-util/jam"
S=${WORKDIR}/${P}-src
src_unpack() {
unpack ${A}
cd "${S}"
sed -i \
-e 's:#include <GL/glew.h>:#include "glew.h":' \
-e 's:include <GL/glxew.h>:include "glxew.h":' \
src/glew/glew.cpp \
src/glew/GL/glxew.h \
|| die "sed failed"
}
src_compile() {
egamesconf --datadir="${GAMES_DATADIR}/${PN}" || die
jam || die "jam failed"
}
src_install() {
dogamesbin trigger || die "dogamesbin failed"
cd ../${P}-data
insinto "${GAMES_DATADIR}/${PN}"
doins -r events maps plugins sounds textures vehicles trigger.config.defs
dodoc README.txt README-stereo.txt
prepgamesdirs
}
pkg_postinst() {
games_pkg_postinst
einfo "After running ${PN} for the first time, a config file is"
einfo "available in ~/.trigger/trigger.config"
echo
}
|