summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2010-04-03 18:03:45 +0000
committerTristan Heaven <nyhm@gentoo.org>2010-04-03 18:03:45 +0000
commit1a829f53ca0b904ef85ee8345c37d662df8c0d96 (patch)
tree6f558dc3a928a2cb9224c53d23801d690b1d9885 /games-puzzle/mirrormagic/mirrormagic-2.0.2-r1.ebuild
parentmedia-libs/mesa: bump libdrm dependency (diff)
downloadgentoo-2-1a829f53ca0b904ef85ee8345c37d662df8c0d96.tar.gz
gentoo-2-1a829f53ca0b904ef85ee8345c37d662df8c0d96.tar.bz2
gentoo-2-1a829f53ca0b904ef85ee8345c37d662df8c0d96.zip
Patch from Debian to fix crash on amd64, bug #196500; install menu entry
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'games-puzzle/mirrormagic/mirrormagic-2.0.2-r1.ebuild')
-rw-r--r--games-puzzle/mirrormagic/mirrormagic-2.0.2-r1.ebuild55
1 files changed, 55 insertions, 0 deletions
diff --git a/games-puzzle/mirrormagic/mirrormagic-2.0.2-r1.ebuild b/games-puzzle/mirrormagic/mirrormagic-2.0.2-r1.ebuild
new file mode 100644
index 000000000000..eb6992134522
--- /dev/null
+++ b/games-puzzle/mirrormagic/mirrormagic-2.0.2-r1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/mirrormagic/mirrormagic-2.0.2-r1.ebuild,v 1.1 2010/04/03 18:03:45 nyhm Exp $
+
+EAPI=2
+inherit eutils toolchain-funcs games
+
+DESCRIPTION="a game like Deflektor (C 64) or Mindbender (Amiga)"
+HOMEPAGE="http://www.artsoft.org/mirrormagic/"
+SRC_URI="http://www.artsoft.org/RELEASES/unix/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="sdl"
+
+RDEPEND="!sdl? ( x11-libs/libX11 )
+ sdl? (
+ media-libs/libsdl[video]
+ media-libs/sdl-mixer
+ media-libs/sdl-image
+ )"
+DEPEND="${RDEPEND}
+ !sdl? ( x11-libs/libXt )"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-gcc41.patch \
+ "${FILESDIR}"/${P}-64bit.patch
+ rm -f ${PN}
+}
+
+src_compile() {
+ emake \
+ -C src \
+ CC="$(tc-getCC)" \
+ AR="$(tc-getAR)" \
+ RANLIB="$(tc-getRANLIB)" \
+ OPTIONS="${CFLAGS}" \
+ EXTRA_LDFLAGS="${LDFLAGS}" \
+ RO_GAME_DIR="${GAMES_DATADIR}"/${PN} \
+ RW_GAME_DIR="${GAMES_STATEDIR}"/${PN} \
+ TARGET=$(use sdl && echo sdl || echo x11) \
+ || die "emake failed"
+}
+
+src_install() {
+ dogamesbin ${PN} || die "dogamesbin failed"
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r graphics levels music sounds || die "doins failed"
+ doicon "${FILESDIR}"/${PN}.xpm
+ make_desktop_entry ${PN} "Mirror Magic II"
+ dodoc CHANGES CREDITS README TODO
+ prepgamesdirs
+}