summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2005-01-24 04:59:30 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2005-01-24 04:59:30 +0000
commitb01362f7e1eeea9bdae9eec7ae94c7e9cbd8b34c (patch)
tree7565126ed9459df3cde8147a6602a2f6dfa81335 /games-emulation/zsnes/zsnes-1.42.ebuild
parentchange $ARCH to tc-arch() to fix cross-compiling again (diff)
downloadhistorical-b01362f7e1eeea9bdae9eec7ae94c7e9cbd8b34c.tar.gz
historical-b01362f7e1eeea9bdae9eec7ae94c7e9cbd8b34c.tar.bz2
historical-b01362f7e1eeea9bdae9eec7ae94c7e9cbd8b34c.zip
version bump (bug #78873); add support for png use flag; add desktop and icon (bug #73316)
Package-Manager: portage-2.0.51-r14
Diffstat (limited to 'games-emulation/zsnes/zsnes-1.42.ebuild')
-rw-r--r--games-emulation/zsnes/zsnes-1.42.ebuild67
1 files changed, 67 insertions, 0 deletions
diff --git a/games-emulation/zsnes/zsnes-1.42.ebuild b/games-emulation/zsnes/zsnes-1.42.ebuild
new file mode 100644
index 000000000000..5cdcbbadb3aa
--- /dev/null
+++ b/games-emulation/zsnes/zsnes-1.42.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/zsnes/zsnes-1.42.ebuild,v 1.1 2005/01/24 04:59:30 mr_bones_ Exp $
+
+inherit eutils flag-o-matic games
+
+DESCRIPTION="SNES (Super Nintendo) emulator that uses x86 assembly"
+HOMEPAGE="http://www.zsnes.com/ http://ipherswipsite.com/zsnes/"
+SRC_URI="mirror://sourceforge/zsnes/${PN}${PV//.}src.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="opengl png"
+
+# we need libsdl for headers on amd64, even though we'll technically be using
+# the 32bit sdl from emul-linux-x86-sdl.
+RDEPEND="virtual/libc
+ >=media-libs/libsdl-1.2.0
+ >=sys-libs/zlib-1.1
+ amd64? ( app-emulation/emul-linux-x86-sdl )
+ opengl? ( virtual/opengl )
+ png? ( media-libs/libpng )"
+DEPEND="${RDEPEND}
+ >=dev-lang/nasm-0.98
+ sys-devel/automake
+ >=sys-devel/autoconf-2.58"
+
+S="${WORKDIR}/${PN}_${PV//./_}"
+
+multilib_check() {
+ if has_m32 ; then
+ einfo "multilib detected, adding -m32 to CFLAGS. note that opengl"
+ einfo "support probably wont work quite right."
+ append-flags -m32
+ else
+ die "zsnes requires multilib support in gcc. please re-emerge gcc with multilib in USE and try again"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"/src
+ cp "icons/48x48x32.png" "${T}/zsnes.png"
+ epatch "${FILESDIR}"/${PV}-configure.patch
+ aclocal && autoconf || die "autotools failed"
+}
+
+src_compile() {
+ use amd64 && multilib_check
+ cd src
+ egamesconf \
+ $(use_enable png libpng) \
+ $(use_enable opengl) \
+ || die
+ emake || die "emake failed"
+}
+
+src_install() {
+ dogamesbin src/zsnes || die "dogamesbin failed"
+ newman src/linux/zsnes.1 zsnes.6
+ dodoc docs/{*.txt,README.LINUX}
+ dohtml -r docs/Linux/*
+ make_desktop_entry zsnes ZSNES zsnes.png
+ doicon "${T}/zsnes.png"
+ prepgamesdirs
+}