diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-08-07 07:49:02 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-08-07 07:49:02 +0000 |
commit | 44f952dd140520abb64ff2eb458a40be92c1d3f5 (patch) | |
tree | b801f2f6f7bef3a1795469d9054d2008ce8aeee7 /games-emulation | |
parent | amd64 love (diff) | |
download | gentoo-2-44f952dd140520abb64ff2eb458a40be92c1d3f5.tar.gz gentoo-2-44f952dd140520abb64ff2eb458a40be92c1d3f5.tar.bz2 gentoo-2-44f952dd140520abb64ff2eb458a40be92c1d3f5.zip |
Add support for amd64 #65374.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'games-emulation')
-rw-r--r-- | games-emulation/pcsx2/ChangeLog | 8 | ||||
-rw-r--r-- | games-emulation/pcsx2/files/pcsx2-0.8.1-amd64.patch | 25 | ||||
-rw-r--r-- | games-emulation/pcsx2/pcsx2-0.8.1.ebuild | 17 |
3 files changed, 41 insertions, 9 deletions
diff --git a/games-emulation/pcsx2/ChangeLog b/games-emulation/pcsx2/ChangeLog index a0e46f7f6cb2..2ad89ba1fc68 100644 --- a/games-emulation/pcsx2/ChangeLog +++ b/games-emulation/pcsx2/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for games-emulation/pcsx2 -# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-emulation/pcsx2/ChangeLog,v 1.6 2005/08/04 04:49:29 mr_bones_ Exp $ +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/pcsx2/ChangeLog,v 1.7 2005/08/07 07:49:02 vapier Exp $ + + 07 Aug 2005; Mike Frysinger <vapier@gentoo.org> + +files/pcsx2-0.8.1-amd64.patch, pcsx2-0.8.1.ebuild: + Add support for amd64 #65374. *pcsx2-0.8.1 (04 Aug 2005) diff --git a/games-emulation/pcsx2/files/pcsx2-0.8.1-amd64.patch b/games-emulation/pcsx2/files/pcsx2-0.8.1-amd64.patch new file mode 100644 index 000000000000..49ab0d803ebf --- /dev/null +++ b/games-emulation/pcsx2/files/pcsx2-0.8.1-amd64.patch @@ -0,0 +1,25 @@ +--- x86/ix86/ix86_cpudetect.c.orig 2005-08-07 03:43:45.000000000 -0400 ++++ x86/ix86/ix86_cpudetect.c 2005-08-07 03:44:23.000000000 -0400 +@@ -94,16 +94,19 @@ +
+ __asm__ __volatile__ (
+ #ifdef __x86_64__
++#define AX "%%rax" + "sub $0x18, %%rsp\n"
++#else ++#define AX "%%eax" + #endif
+ "pushf\n"
+- "pop %%eax\n"
++ "pop "AX"\n"
+ "mov %%eax, %%edx\n"
+ "xor $0x200000, %%eax\n"
+- "push %%eax\n"
++ "push "AX"\n"
+ "popf\n"
+ "pushf\n"
+- "pop %%eax\n"
++ "pop "AX"\n"
+ "xor %%edx, %%eax\n"
+ "mov %%eax, %0\n"
+ #ifdef __x86_64__
diff --git a/games-emulation/pcsx2/pcsx2-0.8.1.ebuild b/games-emulation/pcsx2/pcsx2-0.8.1.ebuild index d048c1739279..92d84f1db9c5 100644 --- a/games-emulation/pcsx2/pcsx2-0.8.1.ebuild +++ b/games-emulation/pcsx2/pcsx2-0.8.1.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-emulation/pcsx2/pcsx2-0.8.1.ebuild,v 1.1 2005/08/04 04:49:29 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-emulation/pcsx2/pcsx2-0.8.1.ebuild,v 1.2 2005/08/07 07:49:02 vapier Exp $ -inherit eutils games +inherit games eutils toolchain-funcs DESCRIPTION="Playstation2 emulator" HOMEPAGE="http://www.pcsx2.net/" @@ -10,7 +10,7 @@ SRC_URI="http://www.pcsx2.net/download/0.8release/${P}src.7z" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~x86" +KEYWORDS="~amd64 ~x86" IUSE="" RDEPEND="virtual/x11 @@ -19,9 +19,9 @@ RDEPEND="virtual/x11 >=games-emulation/ps2emu-cddvdlinuz-0.3-r1 >=games-emulation/ps2emu-cdvdiso-0.3 ) - >=games-emulation/ps2emu-gssoft-0.61 + >=games-emulation/ps2emu-gssoft-0.6.1 >=games-emulation/ps2emu-padxwin-0.5 - >=games-emulation/ps2emu-spu2null-0.21 + >=games-emulation/ps2emu-spu2null-0.2.1 >=games-emulation/ps2emu-dev9null-0.1" DEPEND="${RDEPEND} app-arch/p7zip" @@ -29,11 +29,12 @@ DEPEND="${RDEPEND} S=${WORKDIR}/${P}src src_unpack() { - cd "${WORKDIR}" 7z x "${DISTDIR}/${P}src.7z" || die "unpack failed" cd "${S}" + epatch "${FILESDIR}"/${P}-amd64.patch sed -i \ - -e "/^CC/d" \ + -e '/^CC/d' \ + -e "/^CPU/s:=.*:=$(tc-arch-kernel):" \ Linux/Makefile \ || die "sed failed" sed -i \ @@ -55,5 +56,7 @@ src_install() { "${D}/${GAMES_BINDIR}/pcsx2" \ || die "sed failed" dodoc Docs/*.txt + doicon "${FILESDIR}"/pcsx2.png + make_desktop_entry pcsx2 PCSX2 pcsx2.png prepgamesdirs } |