blob: b02a6ef7ffca0a155dcd80c1c0d2ec32faf91698 (
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
|
# 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.91.ebuild,v 1.1 2007/05/28 21:46:31 nyhm Exp $
inherit eutils 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}-1.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_compile() {
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."
}
|