blob: ffa3409778da60d8f1bcbd7b08c5acacbf0a3ef1 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-arcade/project-starfighter/project-starfighter-1.1-r1.ebuild,v 1.2 2007/06/15 19:46:46 nyhm Exp $
inherit eutils games
MY_P=${P/project-/}
DESCRIPTION="A space themed shooter"
HOMEPAGE="http://www.parallelrealities.co.uk/starfighter.php"
SRC_URI="mirror://gentoo/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc sparc x86 ~x86-fbsd"
IUSE=""
DEPEND="media-libs/libsdl
media-libs/sdl-image
media-libs/sdl-mixer"
S=${WORKDIR}/${MY_P}
pkg_setup() {
if ! built_with_use media-libs/sdl-image gif
then
die "You need to build media-libs/sdl-image with USE=gif!"
fi
games_pkg_setup
}
src_unpack() {
unpack ${A}
cd "${S}"
sed -i \
-e "s:-O3:${CXXFLAGS}:" makefile \
|| die "sed makefile failed"
epatch "${FILESDIR}"/${PV}-ammo.patch
}
src_compile() {
emake DATA="${GAMES_DATADIR}/parallelrealities/" || die "emake failed"
}
src_install() {
dogamesbin starfighter || die "dogamesbin failed"
insinto "${GAMES_DATADIR}/parallelrealities/"
doins starfighter.pak || die "doins failed"
dohtml -r docs/
newicon docs/rocketAmmo.png ${PN}.png
make_desktop_entry starfighter "Project: Starfighter"
prepgamesdirs
}
|