blob: 9eb1474a378862312835a7e1fae6ecef778c8d88 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-misc/jugglemaster/jugglemaster-0.4.ebuild,v 1.4 2006/11/19 21:01:09 nyhm Exp $
inherit eutils toolchain-funcs wxwidgets games
DESCRIPTION="A siteswap animator"
HOMEPAGE="http://icculus.org/jugglemaster/"
SRC_URI="http://icculus.org/${PN}/download/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~ppc x86"
IUSE="ffmpeg"
DEPEND=">=x11-libs/wxGTK-2.6
ffmpeg? ( media-video/ffmpeg )"
pkg_setup() {
games_pkg_setup
WX_GTK_VER=2.6 need-wxwidgets gtk2
}
src_unpack() {
unpack ${A}
cd "${S}"
if use ffmpeg ; then
epatch "${FILESDIR}/${P}"-ffmpeg.patch
sed -i \
-e "s/libavcodec/ffmpeg/" \
src/jmdlx/Makefile \
|| die "sed Makefile (ffmpeg) failed"
sed -i \
-e "/^FFMPEG_PREFIX/s:=.*:=/usr/include:" \
-e "/^HAVE_FFMPEG/s:0:1:" \
Makefile.cfg \
|| die "sed Makefile.cfg failed"
fi
sed -i \
-e '/wx-config --ldflags/d' \
-e "s:wx-config:${WX_CONFIG}:" \
src/jmdlx/Makefile \
|| die "sed Makefile (wx) failed"
}
src_compile() {
emake \
-C src/jmdlx \
CXX=$(tc-getCXX) \
|| die "emake failed"
}
src_install () {
dogamesbin src/jmdlx/jmdlx || die "dogamesbin failed"
dodoc ChangeLog README TODO
prepgamesdirs
}
|