blob: cbe027e93005239ec5b9b318b29e6b109baf26b5 (
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
59
60
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/btanks/btanks-0.7.5800.ebuild,v 1.6 2008/04/20 09:19:43 vapier Exp $
inherit eutils games
DESCRIPTION="Fast 2D tank arcade game with multiplayer and split-screen modes"
HOMEPAGE="http://btanks.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
RDEPEND=">=dev-libs/libsigc++-2.0
>=dev-lang/lua-5.1
media-libs/openal
media-libs/libsdl
media-libs/libvorbis
virtual/opengl
dev-libs/expat
media-libs/sdl-image"
DEPEND="${RDEPEND}
dev-util/scons
dev-util/pkgconfig"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-scons-blows.patch
epatch "${FILESDIR}"/${P}-gcc43.patch #217944
}
src_compile() {
scons \
mode="release" \
prefix=/usr \
lib_dir="$(games_get_libdir)/${PN}" \
resources_dir="${GAMES_DATADIR}/${PN}" \
|| die "scons"
}
src_install() {
newgamesbin bt btanks || die "newgamesbin"
insinto "$(games_get_libdir)"/${PN}
doins lib{mrt,bt,sdlx}.so || die "doins for lib.so failed"
exeinto "${GAMES_DATADIR}/${PN}"
doexe libbt_objects.so || die "doins for libbt_objects.so failed"
insinto "${GAMES_DATADIR}/${PN}"
doins -r data || die "doins for data failed"
dodoc ChangeLog *.txt
newicon src/bt.xpm ${PN}.xpm || die "newicon"
make_desktop_entry ${PN} "Battle Tanks" ${PN}
prepgamesdirs
}
|