blob: 76b5e874d5fda0c65326f21f4b61356cb43c507b (
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-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/blobandconquer/blobandconquer-0.8.ebuild,v 1.2 2007/02/27 12:39:17 blubb Exp $
inherit eutils flag-o-matic toolchain-funcs games
MY_PN=blobAndConquer
DESCRIPTION="Mission and objective based 3D action game"
HOMEPAGE="http://www.parallelrealities.co.uk/blobAndConquer.php"
SRC_URI="mirror://gentoo/${MY_PN}-${PV}-2.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="virtual/opengl
virtual/glu
media-libs/libsdl
media-libs/sdl-mixer
media-libs/sdl-image
media-libs/sdl-ttf"
S=${WORKDIR}/${MY_PN}-${PV}
src_unpack() {
unpack ${A}
cd "${S}"
sed -i 's:CFLAGS:CXXFLAGS:' makefile || die "sed failed"
}
src_compile() {
append-flags -fno-strict-aliasing
emake \
CXX=$(tc-getCXX) \
LIBPATH="${LDFLAGS}" \
DATADIR="${GAMES_DATADIR}"/${PN}/ \
DOCDIR=/usr/share/doc/${PF}/html/ \
|| die "emake failed"
}
src_install() {
dogamesbin ${MY_PN} || die "dogamesbin failed"
insinto "${GAMES_DATADIR}"/${PN}
doins -r data gfx music sound textures || die "doins failed"
doicon icons/${MY_PN}.png
domenu icons/${MY_PN}.desktop
cd doc
dohtml -r images pages index.html
dodoc README
prepgamesdirs
}
pkg_postinst() {
games_pkg_postinst
ewarn "Until ${PN}-1.0, save games may be incompatible with previous"
ewarn "versions."
}
|