diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-07-22 00:05:03 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-07-22 00:05:03 +0000 |
commit | 99e521fae3cc4c17d5d02f913b3db06c6cf3f167 (patch) | |
tree | aab1149deb17468eb52a5efdca3835ff02b7bd50 /games-emulation/snes9x | |
parent | Add support for Emerald club members #99618 by Paul Varner. (diff) | |
download | historical-99e521fae3cc4c17d5d02f913b3db06c6cf3f167.tar.gz historical-99e521fae3cc4c17d5d02f913b3db06c6cf3f167.tar.bz2 historical-99e521fae3cc4c17d5d02f913b3db06c6cf3f167.zip |
Fix amd64 support so it works.
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'games-emulation/snes9x')
-rw-r--r-- | games-emulation/snes9x/ChangeLog | 6 | ||||
-rw-r--r-- | games-emulation/snes9x/Manifest | 11 | ||||
-rw-r--r-- | games-emulation/snes9x/files/snes9x-1.43-build.patch | 34 | ||||
-rw-r--r-- | games-emulation/snes9x/snes9x-1.43.ebuild | 22 |
4 files changed, 60 insertions, 13 deletions
diff --git a/games-emulation/snes9x/ChangeLog b/games-emulation/snes9x/ChangeLog index 562ab0cdc3ce..328cb8757025 100644 --- a/games-emulation/snes9x/ChangeLog +++ b/games-emulation/snes9x/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for games-emulation/snes9x # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-emulation/snes9x/ChangeLog,v 1.16 2005/07/21 04:36:01 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-emulation/snes9x/ChangeLog,v 1.17 2005/07/22 00:05:03 vapier Exp $ + + 22 Jul 2005; Mike Frysinger <vapier@gentoo.org> + +files/snes9x-1.43-build.patch, snes9x-1.43.ebuild: + Fix amd64 support so it works. 21 Jul 2005; Mike Frysinger <vapier@gentoo.org> snes9x-1.43.ebuild: Punt 3dfx support since it requires glide-2 but we only have glide-3 #93097. diff --git a/games-emulation/snes9x/Manifest b/games-emulation/snes9x/Manifest index 4b921bc9d56a..2c5d04351d0c 100644 --- a/games-emulation/snes9x/Manifest +++ b/games-emulation/snes9x/Manifest @@ -2,12 +2,13 @@ Hash: SHA1 MD5 c30d64cc29b742b593f6e92a69c1a4a7 snes9x-1.42-r1.ebuild 1813 -MD5 5e00aaa770f82d03f1fafb0c8dd7a6da snes9x-1.43.ebuild 2156 +MD5 ee3a8880ef58936e33d6399e13881baf snes9x-1.43.ebuild 2356 MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158 -MD5 079c2f54b26b6a223317953535a8045d ChangeLog 3452 +MD5 c977cf96d7854e2acd2381e837a6b592 ChangeLog 3590 MD5 60e338baf6468da1d0c1fece4884553c files/snes9x-gcc3.diff 979 MD5 95a147283e0b09db8ad3307bb3e5b305 files/snes9x-139-r1-BE-sound-fix.diff 550 MD5 82847f439abd1f8ae87876515e60ccdf files/1.42-system-zlib.patch 2004 +MD5 3c7f3eecac089063f960f627df4ac7e5 files/snes9x-1.43-build.patch 1104 MD5 dbd6370fa28b91acc3b14b5534f87866 files/digest-snes9x-1.43 68 MD5 5b7c3589393da0616b766b78c69aa16e files/snes9x-139-r1-Makefile-ppc.diff 779 MD5 82847f439abd1f8ae87876515e60ccdf files/1.41.1-system-zlib.patch 2004 @@ -16,7 +17,7 @@ MD5 29f4c8bf43e00e929c25d85ec4a06b70 files/digest-snes9x-1.42-r1 67 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) -iD8DBQFC3yZBgIKl8Uu19MoRAkZJAJ9oMWAbHgGJVkE2zfE7eIdb9huvSACfaCRB -UlaAdwFdpHt5IV286wFUwT4= -=wC3+ +iD8DBQFC4Dg8gIKl8Uu19MoRAhf4AKCEK1rHnppaTMx5J58NsD5eU96d/QCfVPy7 +XmCD6HaO04xsvR/+rhMtgzM= +=TrlJ -----END PGP SIGNATURE----- diff --git a/games-emulation/snes9x/files/snes9x-1.43-build.patch b/games-emulation/snes9x/files/snes9x-1.43-build.patch new file mode 100644 index 000000000000..efc9d31fc226 --- /dev/null +++ b/games-emulation/snes9x/files/snes9x-1.43-build.patch @@ -0,0 +1,34 @@ +Make sure the build process respects our LDFLAGS (so we can slip in -m32) +and that the stupid custom OPTIMIZE flags arent used in favor of our own +CFLAGS (so we can slip in -m32). + +--- snes9x/Makefile.in ++++ snes9x/Makefile.in +@@ -16,6 +16,7 @@ + @DREAMCAST@ + CHEATS=1 + 2XSAI=1 ++EXTRALIBS=@LDFLAGS@ + + #Fairly good and special-char-safe descriptor of the os being built on. + OS=`uname -s -r -m|sed \"s/ /-/g\"|tr \"[A-Z]\" \"[a-z]\"|tr \"/()\" \"___\"` +@@ -186,7 +188,7 @@ + OPTIMISE=-O4 -ffreestanding -ffast-math -fschedule-insns2 -fomit-frame-pointer -fno-inline-functions -fno-defer-pop -fforce-addr -fstrict-aliasing -funroll-loops -fdelete-null-pointer-checks -fno-exceptions + CPUFLAGS=-ml -m4-single-only + else +-OPTIMISE = @OPTIMIZE@ ++OPTIMISE = @CFLAGS@ + endif + + DEFS += \ +@@ -257,8 +259,8 @@ + @test -d unzip || mkdir unzip + @test -d jma || mkdir jma + +-offsets: offsets.o +- $(CCC) $(INCLUDES) -o $@ offsets.o ++offsets: offsets.cpp ++ $(CCC) $(EXTRALIBS) $(INCLUDES) -o $@ offsets.cpp + ./offsets >$(srcdir)/$(CPU)/offsets.h #FIXME: Move to builddir + + snes9x: $(OBJECTS) unix/x11.o $(AIDOOBJS) diff --git a/games-emulation/snes9x/snes9x-1.43.ebuild b/games-emulation/snes9x/snes9x-1.43.ebuild index cb1cd137ddab..19354b15a266 100644 --- a/games-emulation/snes9x/snes9x-1.43.ebuild +++ b/games-emulation/snes9x/snes9x-1.43.ebuild @@ -1,12 +1,12 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-emulation/snes9x/snes9x-1.43.ebuild,v 1.4 2005/07/21 04:36:01 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-emulation/snes9x/snes9x-1.43.ebuild,v 1.5 2005/07/22 00:05:03 vapier Exp $ # 3dfx support (glide) is disabled because it requires # glide-v2 while we only provide glide-v3 in portage # http://bugs.gentoo.org/show_bug.cgi?id=93097 -inherit eutils games +inherit eutils games flag-o-matic DESCRIPTION="Super Nintendo Entertainment System (SNES) emulator" HOMEPAGE="http://www.snes9x.com/" @@ -15,7 +15,7 @@ SRC_URI="http://www.lysator.liu.se/snes9x/${PV}/snes9x-${PV}-src.tar.gz" LICENSE="as-is" SLOT="0" KEYWORDS="amd64 ppc x86" -IUSE="opengl X joystick zlib dga" +IUSE="opengl X joystick zlib dga debug" RDEPEND="zlib? ( sys-libs/zlib ) virtual/x11 @@ -31,13 +31,21 @@ src_unpack() { cd "${S}"/snes9x epatch "${FILESDIR}"/nojoy.patch sed -i 's:png_jmpbuf:png_write_info:g' configure - sed -i \ - -e 's:@OPTIMIZE@:@CFLAGS@:' \ - -e 's:-lXext -lX11::' \ - Makefile.in + + rm offsets # stupid prebuilt file + sed -i -e 's:-lXext -lX11::' Makefile.in + sed -i -e '/X_LDFLAGS=/d' configure + cp Makefile.in{,.orig} + epatch "${FILESDIR}"/${P}-build.patch } src_compile() { + if use amd64 ; then + export ABI=x86 + append-flags -m32 + append-ldflags -m32 + fi + local vidconf= local target= local vid= |