blob: 276f320e4a45e392111c1db18ca299fcf7b97812 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-sports/gracer/gracer-0.1.5.ebuild,v 1.10 2005/05/01 18:13:15 hansmi Exp $
inherit gnuconfig games eutils
DESCRIPTION="3D motor sports simulator"
HOMEPAGE="http://gracer.sourceforge.net/"
SRC_URI="mirror://sourceforge/gracer/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 sparc ~amd64 ppc"
IUSE="gif jpeg png joystick"
RDEPEND="virtual/x11
virtual/glu
virtual/glut
virtual/opengl
dev-lang/tcl
gif? ( media-libs/giflib )
jpeg? ( media-libs/jpeg )
png? ( media-libs/libpng )
media-libs/plib"
DEPEND="${RDEPEND}
>=sys-apps/sed-4"
src_unpack() {
unpack ${A}
cd ${S}
epatch "${FILESDIR}/${PV}-gldefs.patch"
epatch ${FILESDIR}/${PN}-gcc-3.4.patch
}
src_compile() {
gnuconfig_update
egamesconf \
`use_enable joystick` \
`use_enable gif` \
`use_enable jpeg` \
`use_enable png` \
|| die
sed -i \
-e 's:-lplibsl:-lplibsl -lplibul:' `find -name Makefile` \
|| die "sed Makefiles failed"
emake || die "emake failed"
}
src_install() {
make DESTDIR=${D} install || die "make install failed"
dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed"
prepgamesdirs
}
|