summaryrefslogtreecommitdiff
blob: def6bd4e4175e792948a3b288f761b2e63d26a57 (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
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-sports/soccar/soccar-0.5.2.ebuild,v 1.4 2004/05/04 02:17:26 mr_bones_ Exp $

inherit games eutils

DESCRIPTION="Soccer with Cars"
HOMEPAGE="http://soccar.sourceforge.net/"
SRC_URI="mirror://sourceforge/soccar/${P}-src.tar.bz2
	mirror://sourceforge/soccar/${P}-data.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND="dev-util/jam
	dev-games/ogre
	dev-games/ode
	net-libs/enet"

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/${PV}-cfg-reloc.patch
	sed -i \
		-e "s:GENTOO_CFGDIR:${GAMES_SYSCONFDIR}/${PN}:" src/{app,config}.cpp
	sed -i \
		-e "s:-g -O2:${CXXFLAGS} `pkg-config OGRE --cflags`:" src/Jamfile
	sed -i \
		-e 's:/local/:/:' plugins.cfg
}

src_compile() {
	jam || die
}

src_install() {
	insinto ${GAMES_SYSCONFDIR}/${PN}
	echo "FileSystem=${GAMES_DATADIR}/${PN}/" > resources.cfg
	doins resources.cfg plugins.cfg
	insinto ${GAMES_DATADIR}/${PN}
	doins data/*
	dogamesbin src/soccar
	prepgamesdirs
}