summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2006-11-19 21:01:09 +0000
committerTristan Heaven <nyhm@gentoo.org>2006-11-19 21:01:09 +0000
commitb93de54d217525f52ac3b33d95a61b2c0a14243b (patch)
tree096dff1e0fedbd35367fbeb445ddeaa45adcf92c /games-misc/jugglemaster
parentStable on SPARC wrt security bug #154573. (diff)
downloadgentoo-2-b93de54d217525f52ac3b33d95a61b2c0a14243b.tar.gz
gentoo-2-b93de54d217525f52ac3b33d95a61b2c0a14243b.tar.bz2
gentoo-2-b93de54d217525f52ac3b33d95a61b2c0a14243b.zip
Use wxwidgets eclass
(Portage version: 2.1.2_rc2)
Diffstat (limited to 'games-misc/jugglemaster')
-rw-r--r--games-misc/jugglemaster/ChangeLog5
-rw-r--r--games-misc/jugglemaster/jugglemaster-0.4.ebuild31
2 files changed, 27 insertions, 9 deletions
diff --git a/games-misc/jugglemaster/ChangeLog b/games-misc/jugglemaster/ChangeLog
index 7b2ebb6c5b72..717f7906d363 100644
--- a/games-misc/jugglemaster/ChangeLog
+++ b/games-misc/jugglemaster/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for games-misc/jugglemaster
# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-misc/jugglemaster/ChangeLog,v 1.6 2006/06/03 10:30:06 tupone Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-misc/jugglemaster/ChangeLog,v 1.7 2006/11/19 21:01:09 nyhm Exp $
+
+ 19 Nov 2006; Tristan Heaven <nyhm@gentoo.org> jugglemaster-0.4.ebuild:
+ Use wxwidgets eclass
03 Jun 2006; <Tupone@gentoo.org> +files/jugglemaster-0.4-ffmpeg.patch,
jugglemaster-0.4.ebuild:
diff --git a/games-misc/jugglemaster/jugglemaster-0.4.ebuild b/games-misc/jugglemaster/jugglemaster-0.4.ebuild
index ad86d0a1d3e5..9eb1474a3788 100644
--- a/games-misc/jugglemaster/jugglemaster-0.4.ebuild
+++ b/games-misc/jugglemaster/jugglemaster-0.4.ebuild
@@ -1,8 +1,9 @@
# 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.3 2006/06/03 10:30:06 tupone Exp $
+# $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
-inherit eutils
DESCRIPTION="A siteswap animator"
HOMEPAGE="http://icculus.org/jugglemaster/"
SRC_URI="http://icculus.org/${PN}/download/${P}.tar.bz2"
@@ -12,31 +13,45 @@ SLOT="0"
KEYWORDS="~ppc x86"
IUSE="ffmpeg"
-DEPEND="x11-libs/wxGTK
+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}"
- epatch "${FILESDIR}/${P}"-ffmpeg.patch
if use ffmpeg ; then
+ epatch "${FILESDIR}/${P}"-ffmpeg.patch
sed -i \
-e "s/libavcodec/ffmpeg/" \
src/jmdlx/Makefile \
- || die "sed failed"
+ || die "sed Makefile (ffmpeg) failed"
sed -i \
-e "/^FFMPEG_PREFIX/s:=.*:=/usr/include:" \
-e "/^HAVE_FFMPEG/s:0:1:" \
Makefile.cfg \
- || die "sed failed"
+ || 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 || die "emake failed"
+ emake \
+ -C src/jmdlx \
+ CXX=$(tc-getCXX) \
+ || die "emake failed"
}
src_install () {
- dobin src/jmdlx/jmdlx || die "dobin failed"
+ dogamesbin src/jmdlx/jmdlx || die "dogamesbin failed"
dodoc ChangeLog README TODO
+ prepgamesdirs
}