blob: 73eb9d8a78a61c262a413f172a031e90ee77c8d8 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-simulation/crashtest/crashtest-1.0.ebuild,v 1.4 2008/11/14 18:43:38 coldwind Exp $
EAPI=1
inherit eutils games
DESCRIPTION="Educational car crash simulator"
HOMEPAGE="http://bram.creative4vision.nl/crashtest/"
SRC_URI="http://bram.creative4vision.nl/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="x11-libs/fltk:1.1
dev-games/ode
media-libs/alsa-lib
virtual/opengl
virtual/glu
virtual/glut"
DEPEND="${RDEPEND}
>=media-libs/plib-1.8.4"
S=${WORKDIR}/${P}/src-${PN}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}"-gentoo.patch
sed -i \
-e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \
-e "s:@GENTOO_BINDIR@:${GAMES_BINDIR}:" \
-e "s:<FL/:<fltk-$(fltk-config --api-version)/FL/:" \
Makefile ${PN}.cxx \
|| die "sed failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc README
make_desktop_entry ${PN} Crashtest
prepgamesdirs
}
|