summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2004-06-06 03:28:25 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2004-06-06 03:28:25 +0000
commit6a1179e672bb13fbe14d9b84bb8bdf6b43cf9b11 (patch)
tree65e21ebacd3fca269532e8a3a30ee7066fc3b214 /games-emulation/fceultra
parentdep for html-fromtext (Manifest recommit) (diff)
downloadgentoo-2-6a1179e672bb13fbe14d9b84bb8bdf6b43cf9b11.tar.gz
gentoo-2-6a1179e672bb13fbe14d9b84bb8bdf6b43cf9b11.tar.bz2
gentoo-2-6a1179e672bb13fbe14d9b84bb8bdf6b43cf9b11.zip
resurrect the 0.81 version for gcc 2 systems
Diffstat (limited to 'games-emulation/fceultra')
-rw-r--r--games-emulation/fceultra/ChangeLog8
-rw-r--r--games-emulation/fceultra/fceultra-0.81-r1.ebuild55
-rw-r--r--games-emulation/fceultra/files/digest-fceultra-0.81-r11
3 files changed, 63 insertions, 1 deletions
diff --git a/games-emulation/fceultra/ChangeLog b/games-emulation/fceultra/ChangeLog
index 9f722c4ecd8e..8c00012f5dd8 100644
--- a/games-emulation/fceultra/ChangeLog
+++ b/games-emulation/fceultra/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-emulation/fceultra
# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-emulation/fceultra/ChangeLog,v 1.8 2004/06/05 07:36:48 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/fceultra/ChangeLog,v 1.9 2004/06/06 03:28:25 mr_bones_ Exp $
+
+*fceultra-0.81-r1 (05 Jun 2004)
+
+ 05 Jun 2004; Michael Sterrett <mr_bones_@gentoo.org>
+ fceultra-0.81-r1.ebuild:
+ resurrect the 0.81 version for gcc 2 systems
*fceultra-0.93 (05 Jun 2004)
diff --git a/games-emulation/fceultra/fceultra-0.81-r1.ebuild b/games-emulation/fceultra/fceultra-0.81-r1.ebuild
new file mode 100644
index 000000000000..6c09a3e50c60
--- /dev/null
+++ b/games-emulation/fceultra/fceultra-0.81-r1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/fceultra/fceultra-0.81-r1.ebuild,v 1.5 2004/06/06 03:28:25 mr_bones_ Exp $
+
+inherit gcc
+
+MY_P=fceu
+S=${WORKDIR}/${MY_P}
+DESCRIPTION="A portable NES/Famicom Emulator"
+HOMEPAGE="http://fceultra.sourceforge.net/"
+SRC_URI="http://fceultra.sourceforge.net/dev/${MY_P}${PV//.}src.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 -ppc"
+
+DEPEND="svga? ( media-libs/svgalib )
+ sdl? ( media-libs/libsdl )"
+
+pkg_setup() {
+ if [ `gcc-major-version` == 3 ] && [ `gcc-minor-version` == 2 ] && [ ${ARCH} == "x86" ] ; then
+ eerror "Do not use gcc 3.2.x to compile the source code"
+ eerror "on 80x86/IA32 platforms. It has a code generation"
+ eerror "bug in it that will cause FCE Ultra to not work."
+ die "cant compile on x86 with gcc-3.2.x"
+ fi
+
+ use sdl && return 0
+ use svga && return 0
+
+ eerror "You must have 'sdl' or 'svga' in your USE variable"
+ die "unable to build SVGA or SDL versions"
+}
+
+src_compile() {
+ mv Makefile.base Makefile.orig
+ sed -e "s:\${TFLAGS}:\${TFLAGS} ${CFLAGS}:" \
+ Makefile.orig > Makefile.base
+
+ if [ `use sdl` ] ; then
+ make -f Makefile.unixsdl || die "sdl make failed"
+ mv fceu fceu-sdl
+ make -f Makefile.unixsdl clean
+ fi
+ if [ `use svga` ] ; then
+ make -f Makefile.linuxvga || die "svga make failed"
+ mv fceu fceu-svga
+ fi
+}
+
+src_install() {
+ use sdl && dobin fceu-sdl
+ use svga && dobin fceu-svga
+ dodoc Documentation/{*,rel/readme-linux.txt}
+}
diff --git a/games-emulation/fceultra/files/digest-fceultra-0.81-r1 b/games-emulation/fceultra/files/digest-fceultra-0.81-r1
new file mode 100644
index 000000000000..8722963963cc
--- /dev/null
+++ b/games-emulation/fceultra/files/digest-fceultra-0.81-r1
@@ -0,0 +1 @@
+MD5 1dcfc1199a2dad906ddb771f89f50ddf fceu081src.tar.gz 424700