blob: d87e0ec6f0b0bf67c02cb451ca82450b336a693c (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-simulation/searchandrescue/searchandrescue-0.8.1.ebuild,v 1.6 2005/04/08 04:03:56 vapier Exp $
inherit games eutils
MY_PN=SearchAndRescue
DESCRIPTION="aircraft based rescue simulator"
HOMEPAGE="http://wolfpack.twu.net/SearchAndRescue/"
SRC_URI="ftp://wolfpack.twu.net/users/wolfpack/${MY_PN}-${PV}.tgz
ftp://wolfpack.twu.net/users/wolfpack/${MY_PN}-data-${PV}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="ppc x86"
IUSE="joystick"
DEPEND="virtual/x11
joystick? ( media-libs/libjsw )
virtual/opengl"
S=${WORKDIR}/${MY_PN}-${PV}
src_unpack() {
unpack ${MY_PN}-${PV}.tgz
mkdir data ; cd data
unpack ${MY_PN}-data-${PV}.tgz
cd "${S}"
epatch "${FILESDIR}"/${P}-gcc33.patch
bunzip2 sar/man/${MY_PN}.6.bz2
sed -i "s:/usr/share/icons:/usr/share/icons/${PN}:g" sar/config.h
sed -i '/FeatureCFLAGS.*march/s:=.*:=:g' sar/platforms.ini
}
src_compile() {
local myjoyconf
use joystick \
&& myjoyconf="--enable=joystick" \
|| myjoyconf="--disable=joystick"
./configure \
Linux \
--prefix=${GAMES_PREFIX} \
${myjoyconf} \
|| die
make || die
}
src_install() {
dogamesbin sar/${MY_PN}
insinto /usr/share/icons/${PN}
doman sar/man/${MY_PN}.6
doins sar/icons/*.{ico,xpm}
dodoc AUTHORS HACKING README
cd ${WORKDIR}/data
dodir ${GAMES_DATADIR}/${MY_PN}
cp -r * "${D}"/${GAMES_DATADIR}/${MY_PN}/ || die
prepgamesdirs
}
|