blob: 5880eeb28dc3afd6d9de86f442b7ce8ab48d0e2e (
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-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-arcade/jumpnbump/jumpnbump-1.50-r1.ebuild,v 1.7 2006/04/02 17:39:48 vapier Exp $
inherit eutils games
DESCRIPTION="a funny multiplayer game about cute little fluffy bunnies"
HOMEPAGE="http://www.jumpbump.mine.nu/"
SRC_URI="http://www.jumpbump.mine.nu/port/${P}.tar.gz
mirror://gentoo/${P}-autotool.patch.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ppc x86"
IUSE="X tcltk svga fbcon kde"
DEPEND="X? (
|| (
x11-libs/libXext
virtual/x11 )
kde? ( || ( kde-base/kdialog kde-base/kdebase ) )
)
>=media-libs/sdl-mixer-1.2
>=media-libs/libsdl-1.2
>=media-libs/sdl-net-1.2"
RDEPEND="${DEPEND}
tcltk? (
dev-lang/tcl
dev-lang/tk )"
src_unpack() {
unpack ${P}.tar.gz
epatch "${DISTDIR}/${P}-autotool.patch.bz2"
cd "${S}"
chmod +x configure
sed -i \
-e "/PREFIX/ s:PREFIX.*:\"${GAMES_DATADIR}/${PN}/jumpbump.dat\":" \
globals.h \
|| die "sed failed"
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
# clean up a bit. It leave a dep on Xdialog but ignore that.
use fbcon || rm -f "${D}${GAMES_BINDIR}/jumpnbump.fbcon"
use kde || rm -f "${D}${GAMES_BINDIR}/jumpnbump-kdialog"
use svga || rm -f "${D}${GAMES_BINDIR}/jumpnbump.svgalib"
use tcltk || rm -f "${D}${GAMES_BINDIR}/jnbmenu.tcl"
newicon sdl/jumpnbump64.xpm ${PN}.xpm
make_desktop_entry jumpnbump "Jump n Bump" ${PN}.xpm
prepgamesdirs
}
|