blob: ac8a43d101be0371ebc4ca3bf9aa03435155fe91 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit eutils games
DESCRIPTION="a 3D physics platform game - won the grand prize in the 10th annual CS 248 video game competition!"
HOMEPAGE="http://cs.stanford.edu/people/mbostock/polly/"
SRC_URI="http://graphics.stanford.edu/~mbostock/polly-src.zip"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
RDEPEND="media-libs/libsdl
virtual/opengl
media-libs/sdl-image
media-libs/glew
media-libs/freeglut
dev-libs/tinyxml
media-libs/sdl-mixer"
DEPEND="${RDEPEND}"
S=${WORKDIR}/${PN/b-gone/src}
src_prepare(){
epatch "${FILESDIR}"/"${PV}"-libs.patch \
"${FILESDIR}"/"${PV}"-Makefile.patch
cd "${S}"
sed -i -e "s:resources/:"${GAMES_DATADIR}"/"${PN}"/resources/:" -i resource.cpp
}
src_install() {
dogamesbin ${PN} || die "dogamesbin ${PN} failed"
local datadir="${GAMES_DATADIR}"/"${PN}"
dodir ${datadir}
insinto "${datadir}"
doins -r resources || die "doins resources failed"
newicon "${FILESDIR}"/"${PN}.png" "${PN}.png"
make_desktop_entry "${PN}" "${PN}"
dodoc README* || die
prepgamesdirs
}
pkg_postinst() {
games_pkg_postinst
}
|