blob: 409f2ac96be8c1046170e2976d9a225f72c207e7 (
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-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/trackballs/trackballs-1.0.0-r1.ebuild,v 1.2 2005/05/05 23:11:33 swegener Exp $
inherit eutils games
DESCRIPTION="simple game similar to the classical game Marble Madness"
HOMEPAGE="http://trackballs.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
mirror://gentoo/${PN}-music-0.9.0.tbz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~ppc"
IUSE=""
DEPEND="virtual/opengl
virtual/glu
media-libs/libsdl
>=dev-util/guile-1.6
media-libs/sdl-mixer
media-libs/sdl-image
media-libs/sdl-ttf
sys-libs/zlib"
src_unpack() {
unpack ${A}
cd "${S}"
sed -i \
-e 's/icons//' share/Makefile.in \
|| die "sed share/Makefile.in failed"
epatch "${FILESDIR}/${PV}-drift.patch"
}
src_compile() {
egamesconf \
--disable-dependency-tracking \
--with-highscores=${GAMES_STATEDIR}/${PN}-highscores \
|| die "egamesconf failed"
emake || die "emake failed"
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
insinto /usr/share/pixmaps
doins share/icons/*png || die "doins failed"
make_desktop_entry trackballs "Trackballs" trackballs-48x48.png
insinto "${GAMES_DATADIR}/${PN}/music"
doins "${WORKDIR}"/tb_*.ogg || die "doins failed"
dodoc AUTHORS ChangeLog README* NEWS
prepgamesdirs
}
|