summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-01-24 18:47:34 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-01-24 18:47:34 +0000
commit866f836edee63779ece8d3d636e0e0e36f477e44 (patch)
treea5b5ecd3f6f2b3adcd9ddb22fc9773853ae99fc0 /games-emulation/mupen64
parentAdd ~sparc wrt #299937 (diff)
downloadgentoo-2-866f836edee63779ece8d3d636e0e0e36f477e44.tar.gz
gentoo-2-866f836edee63779ece8d3d636e0e0e36f477e44.tar.bz2
gentoo-2-866f836edee63779ece8d3d636e0e0e36f477e44.zip
Remove masked mupen64, including a plugin that used qt3, replaced by mupen64plus in tree
Diffstat (limited to 'games-emulation/mupen64')
-rw-r--r--games-emulation/mupen64/ChangeLog147
-rw-r--r--games-emulation/mupen64/Manifest10
-rw-r--r--games-emulation/mupen64/files/mupen64-0.5-anisotropic.patch108
-rw-r--r--games-emulation/mupen64/files/mupen64-0.5-gcc42.patch22
-rw-r--r--games-emulation/mupen64/files/mupen64-0.5-gcc43.patch76
-rw-r--r--games-emulation/mupen64/files/mupen64-0.5-gentoo3.patch279
-rw-r--r--games-emulation/mupen64/files/mupen64-glN64-noasmfix.patch11
-rw-r--r--games-emulation/mupen64/files/mupen64-glN64-ucode.patch121
-rw-r--r--games-emulation/mupen64/metadata.xml9
-rw-r--r--games-emulation/mupen64/mupen64-0.5-r4.ebuild91
10 files changed, 0 insertions, 874 deletions
diff --git a/games-emulation/mupen64/ChangeLog b/games-emulation/mupen64/ChangeLog
deleted file mode 100644
index afd272be7bdc..000000000000
--- a/games-emulation/mupen64/ChangeLog
+++ /dev/null
@@ -1,147 +0,0 @@
-# ChangeLog for games-emulation/mupen64
-# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-emulation/mupen64/ChangeLog,v 1.28 2009/09/08 07:59:52 tupone Exp $
-
- 08 Sep 2009; Tupone Alfredo <tupone@gentoo.org>
- +files/mupen64-0.5-gcc43.patch, mupen64-0.5-r4.ebuild:
- Fix build with gcc-4.3 Bug #268917 by Ray
-
- 17 Nov 2008; Diego E. Pettenò <flameeyes@gentoo.org>
- files/mupen64-0.5-anisotropic.patch:
- Fix patch with absolute paths.
-
- 13 Jun 2007; Tristan Heaven <nyhm@gentoo.org>
- +files/mupen64-0.5-gcc42.patch, mupen64-0.5-r4.ebuild:
- Patch for gcc-4.2
-
-*mupen64-0.5-r4 (28 Mar 2007)
-
- 28 Mar 2007; Christian Birchinger <joker@gentoo.org>
- +files/mupen64-glN64-noasmfix.patch, +files/mupen64-glN64-ucode.patch,
- +mupen64-0.5-r4.ebuild:
- New revision with some patches from the standalone glN64 ebuild. Infos taken
- from Bug #170763 and thanks to Sal Gonzalez <ghostx@optonline.net>.
-
-*mupen64-0.5-r3 (27 Mar 2007)
-
- 27 Mar 2007; Christian Birchinger <joker@gentoo.org>
- +files/mupen64-0.5-anisotropic.patch, +files/mupen64-0.5-gentoo3.patch,
- +mupen64-0.5-r3.ebuild:
- New revision with better support for multilib installs.
-
- 22 Feb 2007; Simon Stelling <blubb@gentoo.org> mupen64-0.5-r2.ebuild:
- depend on >=emul-sdl-10.0; bug 167202
-
-*mupen64-0.5-r2 (14 Feb 2007)
-
- 14 Feb 2007; Tristan Heaven <nyhm@gentoo.org>
- +files/mupen64-0.5-paths.patch, +files/mupen64-0.5-sdl-ttf.patch,
- +mupen64-0.5-r2.ebuild:
- Use external sdl-ttf, bug #166531
-
-*mupen64-0.5-r1 (17 Sep 2006)
-
- 17 Sep 2006; Christian Birchinger <joker@gentoo.org>
- +mupen64-0.5-r1.ebuild:
- New revision which uses the included plugins and supports building on amd64
-
- 21 Aug 2006; Michael Sterrett <mr_bones_@gentoo.org> mupen64-0.5.ebuild:
- avoid pre-stripping files; fixup warning message (bug #137824) - patch from
- Tristan Heaven
-
-*mupen64-0.5 (27 Jan 2006)
-
- 27 Jan 2006; Daniel Goller <morfic@gentoo.org>
- +files/mupen64-gentoo.patch, +mupen64-0.5.ebuild:
- Bump to 0.5
-
- 08 Nov 2005; Daniel Goller <morfic@gentoo.org>
- -files/mupen64-gentoo-avi.patch, mupen64-0.4-r2.ebuild:
- remove avifile dep and avi support wrt bug #111337, -amd64 since it doesn't
- work
-
- 20 Sep 2005; Michael Sterrett <mr_bones_@gentoo.org>
- mupen64-0.4-r2.ebuild:
- remove gtk2 use flag
-
- 30 May 2005; Sven Wegener <swegener@gentoo.org> mupen64-0.4-r2.ebuild:
- Removed unneeded use of gcc.eclass.
-
- 24 Apr 2005; Daniel Goller <morfic@gentoo.org> mupen64-0.4-r2.ebuild:
- amd64 fixes
-
- 23 Apr 2005; Daniel Goller <morfic@gentoo.org>
- files/mupen64-gtk2-makefile.patch, files/mupen64-makefiles.patch,
- mupen64-0.4-r2.ebuild:
- adding amd64
-
- 18 Apr 2005; Michael Sterrett <mr_bones_@gentoo.org>
- -mupen64-0.4-r1.ebuild:
- clean old ebuild
-
-*mupen64-0.4-r2 (25 Mar 2005)
-
- 25 Mar 2005; Michael Sterrett <mr_bones_@gentoo.org>
- files/mupen64-gtk2-makefile.patch, +mupen64-0.4-r2.ebuild:
- Update gtk2 patch (from Arnaud Lech via bug #86156); tidy ebuild
-
- 19 Jan 2005; Daniel Goller <morfic@gentoo.org> mupen64-0.4-r1.ebuild:
- Stable on x86
-
- 08 Jan 2005; Daniel Goller <morfic@gentoo.org> files/mupen64:
- Updated start script
-
- 07 Jan 2005; Daniel Goller <morfic@gentoo.org> metadata.xml:
- Adding maintainer
-
-*mupen64-0.4-r1 (07 Jan 2005)
-
- 07 Jan 2005; Daniel Goller <morfic@gentoo.org> +mupen64-0.4-r1.ebuild,
- -mupen64-0.4.ebuild:
- Bump to force upgrade to fixed dep glN64
-
- 05 Jan 2005; Daniel Goller <morfic@gentoo.org> files/mupen64,
- files/mupen64-confdir.patch, files/mupen64-makefiles.patch,
- +files/mupen64-noasm.patch, mupen64-0.4.ebuild:
- Fixed mupen64 , cleaned it up, split out plugins into own ebuilds
-
-*mupen64-0.4 (01 Jan 2005)
-
- 01 Jan 2005; Daniel Goller <morfic@gentoo.org>
- +files/mupen64-SDL_ttf.patch, +files/mupen64-confdir.patch,
- +files/mupen64-gcc3.patch, +files/mupen64-gentoo-avi.patch,
- +files/mupen64-gentoo-sdl.patch, +files/mupen64-gtk2-makefile.patch,
- +files/mupen64-makefiles.patch, +files/mupen64-rice-confdir.patch,
- +mupen64-0.4.ebuild:
- Initial commit of version 0.4 thanks to al contributors on bug#56195
- Adding patch to allow it compile with ~arch freetype
-
- 27 Sep 2003; Michael Sterrett <msterret@gentoo.org> mupen64-0.3.ebuild,
- files/mupen64:
- disable the riceplugin for anything < gcc 3.3; more error messages; make
- wrapper script run out of ~/.mupen64 to avoid segfault on exit; wrapper is a
- bash script; cp ini file to ~ so it can be updated on exit. Should work
- around bug 29206 enough to close that bug.
-
-*mupen64-0.3 (19 Sep 2003)
-
- 19 Sep 2003; Mike Frysinger <vapier@gentoo.org> :
- Version bump #29016.
-
-*mupen64-0.2 (03 Sep 2003)
-
- 03 Sep 2003; Michael Sterrett <msterret@gentoo.org> mupen64-0.2.ebuild:
- version bump (bug 26448)
-
- 25 Jun 2003; <msterret@gentoo.org> mupen64-0.1.ebuild:
- KEYWORD sparc64 doesn't exist; use sed -i (added src_unpack)
-
-*mupen64-0.1 (21 Jun 2003)
-
- 21 Jun 2003; Mike Frysinger <vapier@gentoo.org> :
- Version bumped + build from src + games.eclass support #13141.
-
-*mupen64-0.0.90a (26 Dec 2002)
-
- 26 Dec 2002; Ryan Phillips <rphillips@gentoo.org> ChangeLog :
- initial release
diff --git a/games-emulation/mupen64/Manifest b/games-emulation/mupen64/Manifest
deleted file mode 100644
index c648ab14ba3e..000000000000
--- a/games-emulation/mupen64/Manifest
+++ /dev/null
@@ -1,10 +0,0 @@
-AUX mupen64-0.5-anisotropic.patch 5196 RMD160 d64fe831e82622b3b32c85e4cf87b5653dd4223c SHA1 9385b452d5e1eb712765f9db39c5c117a82a0bbf SHA256 39291ce8aa800c514da5017a893a62901794b5ae2c12f3cd2aa1dfc4e96d94ed
-AUX mupen64-0.5-gcc42.patch 1451 RMD160 3e2bb2609b6566ac141750eecc292ba525f46f0b SHA1 6949337e313296e716d054c4f4be7a5f6ccdd004 SHA256 87694cefad2da7328d66c964fd205f7a5b4d7025dbc9a0b683121df6c33c0550
-AUX mupen64-0.5-gcc43.patch 2279 RMD160 d42b5fd2af53c5f1f4dcf3a627efdb3bd192837f SHA1 d17efd9e13255654ca844ce309611adb444ab638 SHA256 f3ee6a57f86e19aab20ae0bd96eb57b7101833c48b7ccb652ac4e94ee35d4c5e
-AUX mupen64-0.5-gentoo3.patch 9770 RMD160 f81fdac8fad1e5d61316819cbd045e98a5d5e67c SHA1 0d743cb7aeb8e7e6ccce44f5691faccca149d59c SHA256 f4ff8352bcebc08fe3068c157685f98a348724c2acb686bfcd5cdc0c7a3e93cf
-AUX mupen64-glN64-noasmfix.patch 434 RMD160 ad05e4ec5b2be7e6cd62d9ed6bbf6ff0f53a0b7f SHA1 fca5d07a155a77d65348e29d98d9383a1f8a5510 SHA256 5efc2720f222bdd1cb8980633719d653c31ad8ca892cd785906b316ceca49a40
-AUX mupen64-glN64-ucode.patch 3343 RMD160 1a9070c59b56e89579f0695d3da5503f80f5cd71 SHA1 426fd0abeef17790651cc982b31cf4663d509d3a SHA256 e54108cddf3e92f863e672e458b9bf776cbce672a34eee367032fcbd9ec5a9d5
-DIST mupen64_src-0.5.tar.bz2 1981046 RMD160 da916bc77f2f06ed92630332545dc3ee5ae1ff51 SHA1 fe1c9999fca780f2f8243d36ea7d8c42eca5659b SHA256 1b8e4188ab7a94d8125b77aed8725ee348c24818622b881adfe16be510487dfd
-EBUILD mupen64-0.5-r4.ebuild 2219 RMD160 392d7c9c8aac4b05b595131e21659b53aa8675bb SHA1 bd0650a013b534e426c82b003a35e4bbda6f0ebd SHA256 659f297ff1358d6ddc706751a93028cef5c56832a064bc8f8d6a5f092cd60f23
-MISC ChangeLog 5154 RMD160 1fe9b8c5446e3e6ef95450d8970a40fffddce668 SHA1 2185db276e211a8c52f7f537a2fbfcf6b8ae2b16 SHA256 e56a02a5acda2c68d2b958ae8354f529a9ee9b7b361122dafb9f01f9a9dc6532
-MISC metadata.xml 251 RMD160 34b81b2f432154df8884235405a1ee197c99341d SHA1 6fe636d53a3c5939cca378223f1eb653976e5663 SHA256 e2b320a1c73bb9401f423703e2320fb4d80aeca04cb6cb4bb13584b0b6740043
diff --git a/games-emulation/mupen64/files/mupen64-0.5-anisotropic.patch b/games-emulation/mupen64/files/mupen64-0.5-anisotropic.patch
deleted file mode 100644
index 93dba6f59c25..000000000000
--- a/games-emulation/mupen64/files/mupen64-0.5-anisotropic.patch
+++ /dev/null
@@ -1,108 +0,0 @@
-diff -u glN64/Config_linux.cpp b/glN64/Config_linux.cpp
---- a/glN64/Config_linux.cpp 2005-08-26 14:52:17.000000000 -0500
-+++ b/glN64/Config_linux.cpp 2006-12-24 21:56:05.000000000 -0600
-@@ -17,7 +17,7 @@
- static GtkWidget *configWindow = NULL;
- //static GtkWidget *bitdepthCombo[2], *resolutionCombo[2];
- static GtkWidget *resolutionCombo;
--static GtkWidget *enable2xSAICheck, *forceBilinearCheck, *enableFogCheck;
-+static GtkWidget *enable2xSAICheck, *enableAnisotropicFilteringCheck, *forceBilinearCheck, *enableFogCheck;
- static GtkWidget *enableHardwareFBCheck, *enablePolygonStippleCheck;
- static GtkWidget *textureDepthCombo;
- static GtkWidget *textureCacheEntry;
-@@ -109,6 +109,7 @@
-
- OGL.forceBilinear = gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(forceBilinearCheck) );
- OGL.enable2xSaI = gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(enable2xSAICheck) );
-+ OGL.enableAnisotropicFiltering = gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(enableAnisotropicFilteringCheck));
- OGL.fog = gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(enableFogCheck) );
- OGL.frameBufferTextures = gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(enableHardwareFBCheck) );
- OGL.usePolygonStipple = gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(enablePolygonStippleCheck) );
-@@ -143,6 +144,7 @@
- /* fprintf( f, "width=%d\n", OGL.width );
- fprintf( f, "height=%d\n", OGL.height );*/
- fprintf( f, "force bilinear=%d\n", OGL.forceBilinear );
-+ fprintf( f, "enable anisotropic=%d\n", OGL.enableAnisotropicFiltering );
- fprintf( f, "enable 2xSAI=%d\n", OGL.enable2xSaI );
- fprintf( f, "enable fog=%d\n", OGL.fog );
- fprintf( f, "enable HardwareFB=%d\n", OGL.frameBufferTextures );
-@@ -182,6 +184,7 @@
- gtk_entry_set_text( GTK_ENTRY(GTK_COMBO(resolutionCombo)->entry), text );
-
- gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON(enable2xSAICheck), (OGL.enable2xSaI) );
-+ gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON(enableAnisotropicFilteringCheck), (OGL.enableAnisotropicFiltering) );
- gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON(forceBilinearCheck), (OGL.forceBilinear) );
- gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON(enableFogCheck), (OGL.fog) );
- gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON(enablePolygonStippleCheck), (OGL.usePolygonStipple) );
-@@ -235,7 +238,7 @@
- gtk_container_set_border_width( GTK_CONTAINER(displayFrame), 7 );
- gtk_container_add( GTK_CONTAINER(GTK_DIALOG(configWindow)->vbox), displayFrame );
-
-- displayTable = gtk_table_new( 5, 3, FALSE );
-+ displayTable = gtk_table_new( 6, 3, FALSE );
- gtk_container_set_border_width( GTK_CONTAINER(displayTable), 7 );
- gtk_table_set_col_spacings( GTK_TABLE(displayTable), 3 );
- gtk_table_set_row_spacings( GTK_TABLE(displayTable), 3 );
-@@ -301,7 +304,8 @@
- resolutionCombo = gtk_combo_new();
- gtk_combo_set_value_in_list( GTK_COMBO(resolutionCombo), TRUE, FALSE );
- gtk_combo_set_popdown_strings( GTK_COMBO(resolutionCombo), resolutionList );
--
-+
-+ enableAnisotropicFilteringCheck = gtk_check_button_new_with_label( "Enable anisotropic filtering" );
- enable2xSAICheck = gtk_check_button_new_with_label( "Enable 2xSAI texture scaling" );
- forceBilinearCheck = gtk_check_button_new_with_label( "Force bilinear filtering" );
- enableFogCheck = gtk_check_button_new_with_label( "Enable fog" );
-@@ -335,6 +339,9 @@
- // row 4
- gtk_table_attach_defaults( GTK_TABLE(displayTable), enable2xSAICheck, 0, 1, 4, 5 );
- gtk_table_attach_defaults( GTK_TABLE(displayTable), enablePolygonStippleCheck, 1, 2, 4, 5 );
-+
-+ // row 5
-+ gtk_table_attach_defaults( GTK_TABLE(displayTable), enableAnisotropicFilteringCheck, 0, 1, 5, 6);
-
- // textures frame
- texturesFrame = gtk_frame_new( "Textures" );
-@@ -404,6 +411,7 @@
- // OGL.windowedBits = 0;
- OGL.forceBilinear = 0;
- OGL.enable2xSaI = 0;
-+ OGL.enableAnisotropicFiltering = 0;
- OGL.fog = 1;
- OGL.textureBitDepth = 1; // normal (16 & 32 bits)
- OGL.frameBufferTextures = 0;
-@@ -472,6 +480,10 @@
- {
- OGL.enable2xSaI = atoi( val );
- }
-+ else if (!strcasecmp( line, "enable anisotropic"))
-+ {
-+ OGL.enableAnisotropicFiltering = atoi( val );
-+ }
- else if (!strcasecmp( line, "enable fog" ))
- {
- OGL.fog = atoi( val );
-diff -u glN64/OpenGL.h b/glN64/OpenGL.h
---- a/glN64/OpenGL.h 2005-08-26 14:52:17.000000000 -0500
-+++ b/glN64/OpenGL.h 2006-12-24 21:43:46.000000000 -0600
-@@ -72,6 +72,7 @@
- int maxGeneralCombiners;
-
- BOOL enable2xSaI;
-+ BOOL enableAnisotropicFiltering;
- BOOL frameBufferTextures;
- int textureBitDepth;
- float originAdjust;
-diff -u glN64/Textures.cpp b/glN64/Textures.cpp
---- a/glN64/Textures.cpp 2005-08-26 14:52:17.000000000 -0500
-+++ b/glN64/Textures.cpp 2006-12-24 21:57:42.000000000 -0600
-@@ -748,6 +748,10 @@
- // Set clamping modes
- glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, texture->clampS ? GL_CLAMP_TO_EDGE : GL_REPEAT );
- glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, texture->clampT ? GL_CLAMP_TO_EDGE : GL_REPEAT );
-+
-+ // Anisotropic filtering
-+ if (OGL.enableAnisotropicFiltering)
-+ glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAX_ANISOTROPY_EXT, 4.0f);
-
- texture->lastDList = RSP.DList;
diff --git a/games-emulation/mupen64/files/mupen64-0.5-gcc42.patch b/games-emulation/mupen64/files/mupen64-0.5-gcc42.patch
deleted file mode 100644
index b2d2fdb2fcc1..000000000000
--- a/games-emulation/mupen64/files/mupen64-0.5-gcc42.patch
+++ /dev/null
@@ -1,22 +0,0 @@
---- glN64/glATI.h
-+++ glN64/glATI.h
-@@ -864,8 +864,8 @@
- typedef GLuint (APIENTRY *PFNGLGENFRAGMENTSHADERSATIPROC)(GLuint range);
- typedef GLvoid (APIENTRY *PFNGLBINDFRAGMENTSHADERATIPROC)(GLuint id);
- typedef GLvoid (APIENTRY *PFNGLDELETEFRAGMENTSHADERATIPROC)(GLuint id);
--typedef GLvoid (APIENTRY *PFNGLBEGINFRAGMENTSHADERATIPROC)(GLvoid);
--typedef GLvoid (APIENTRY *PFNGLENDFRAGMENTSHADERATIPROC)(GLvoid);
-+typedef GLvoid (APIENTRY *PFNGLBEGINFRAGMENTSHADERATIPROC)(void);
-+typedef GLvoid (APIENTRY *PFNGLENDFRAGMENTSHADERATIPROC)(void);
- typedef GLvoid (APIENTRY *PFNGLPASSTEXCOORDATIPROC)(GLuint dst, GLuint coord, GLenum swizzle);
- typedef GLvoid (APIENTRY *PFNGLSAMPLEMAPATIPROC)(GLuint dst, GLuint interp, GLenum swizzle);
- typedef GLvoid (APIENTRY *PFNGLCOLORFRAGMENTOP1ATIPROC)(GLenum op, GLuint dst, GLuint dstMask,
-@@ -2194,7 +2194,7 @@
- typedef GLvoid (APIENTRY * PFNGLDELETEOCCLUSIONQUERIESNVPROC) (GLsizei n, const GLuint *ids);
- typedef GLboolean (APIENTRY * PFNGLISOCCLUSIONQUERYNVPROC) (GLuint id);
- typedef GLvoid (APIENTRY * PFNGLBEGINOCCLUSIONQUERYNVPROC) (GLuint id);
--typedef GLvoid (APIENTRY * PFNGLENDOCCLUSIONQUERYNVPROC) (GLvoid);
-+typedef GLvoid (APIENTRY * PFNGLENDOCCLUSIONQUERYNVPROC) (void);
- typedef GLvoid (APIENTRY * PFNGLGETOCCLUSIONQUERYIVNVPROC) (GLuint id, GLenum pname, GLint *params);
- typedef GLvoid (APIENTRY * PFNGLGETOCCLUSIONQUERYUIVNVPROC) (GLuint id, GLenum pname, GLuint *params);
-
diff --git a/games-emulation/mupen64/files/mupen64-0.5-gcc43.patch b/games-emulation/mupen64/files/mupen64-0.5-gcc43.patch
deleted file mode 100644
index b6c2a1a7aa79..000000000000
--- a/games-emulation/mupen64/files/mupen64-0.5-gcc43.patch
+++ /dev/null
@@ -1,76 +0,0 @@
---- r4300/interupt.c.old 2009-09-08 09:16:14.000000000 +0200
-+++ r4300/interupt.c 2009-09-08 09:16:33.000000000 +0200
-@@ -428,7 +428,7 @@
- PIF_RAMb[0x3F] = 0x0;
- remove_interupt_event();
- MI_register.mi_intr_reg |= 0x02;
-- si_register.si_status |= 0x1000;
-+ si_register._si_status |= 0x1000;
- if (MI_register.mi_intr_reg & MI_register.mi_intr_mask_reg)
- Cause = (Cause | 0x400) & 0xFFFFFF83;
- else
---- memory/memory.c.old 2009-09-08 09:45:28.000000000 +0200
-+++ memory/memory.c 2009-09-08 09:45:47.000000000 +0200
-@@ -833,13 +833,13 @@
- si_register.si_dram_addr = 0;
- si_register.si_pif_addr_rd64b = 0;
- si_register.si_pif_addr_wr64b = 0;
-- si_register.si_status = 0;
-+ si_register._si_status = 0;
- readsi[0x0] = &si_register.si_dram_addr;
- readsi[0x4] = &si_register.si_pif_addr_rd64b;
- readsi[0x8] = &trash;
- readsi[0x10] = &si_register.si_pif_addr_wr64b;
- readsi[0x14] = &trash;
-- readsi[0x18] = &si_register.si_status;
-+ readsi[0x18] = &si_register._si_status;
-
- for (i=0x1c; i<0x10000; i++) readsi[i] = &trash;
- for (i=0x481; i<0x800; i++)
-@@ -3306,7 +3306,7 @@
- break;
- case 0x18:
- MI_register.mi_intr_reg &= 0xFFFFFFFD;
-- si_register.si_status &= ~0x1000;
-+ si_register._si_status &= ~0x1000;
- check_interupt();
- return;
- break;
-@@ -3348,7 +3348,7 @@
- case 0x1a:
- case 0x1b:
- MI_register.mi_intr_reg &= 0xFFFFFFFD;
-- si_register.si_status &= ~0x1000;
-+ si_register._si_status &= ~0x1000;
- check_interupt();
- return;
- break;
-@@ -3382,7 +3382,7 @@
- case 0x18:
- case 0x1a:
- MI_register.mi_intr_reg &= 0xFFFFFFFD;
-- si_register.si_status &= ~0x1000;
-+ si_register._si_status &= ~0x1000;
- check_interupt();
- return;
- break;
-@@ -3406,7 +3406,7 @@
- break;
- case 0x18:
- MI_register.mi_intr_reg &= 0xFFFFFFFD;
-- si_register.si_status &= ~0x1000;
-+ si_register._si_status &= ~0x1000;
- check_interupt();
- return;
- break;
---- memory/memory.h.old 2009-09-08 09:45:33.000000000 +0200
-+++ memory/memory.h 2009-09-08 09:46:14.000000000 +0200
-@@ -233,7 +233,7 @@
- unsigned long si_dram_addr;
- unsigned long si_pif_addr_rd64b;
- unsigned long si_pif_addr_wr64b;
-- unsigned long si_status;
-+ unsigned long _si_status;
- } SI_register;
-
- extern RDRAM_register rdram_register;
diff --git a/games-emulation/mupen64/files/mupen64-0.5-gentoo3.patch b/games-emulation/mupen64/files/mupen64-0.5-gentoo3.patch
deleted file mode 100644
index 75a17a04b209..000000000000
--- a/games-emulation/mupen64/files/mupen64-0.5-gentoo3.patch
+++ /dev/null
@@ -1,279 +0,0 @@
-diff -ruN mupen64_src-0.5.orig/Makefile mupen64_src-0.5/Makefile
---- mupen64_src-0.5.orig/Makefile 2005-08-26 21:52:13.000000000 +0200
-+++ mupen64_src-0.5/Makefile 2007-03-21 19:24:30.000000000 +0100
-@@ -1,16 +1,19 @@
- #Makefile MUPEN64 for Linux
-
--CC =gcc
--CXX =g++
-+CC ?=gcc
-+CXX ?=g++
-
- #CFLAGS =-DX86 -O3 -mpentium -Wall -DEMU64_DEBUG
--CFLAGS =-DX86 -O3 -fexpensive-optimizations -fomit-frame-pointer -funroll-loops -ffast-math -fno-strict-aliasing -mcpu=athlon -Wall -pipe
-+CFLAGS ?=-DX86 -O3 -fexpensive-optimizations -fomit-frame-pointer -funroll-loops -ffast-math -fno-strict-aliasing -mcpu=athlon -Wall -pipe
- #CFLAGS =-DX86 -O3 -mcpu=pentium -Wall -g -pg
- #CFLAGS =-DX86 -Wall -pipe -g3 -DEMU64_DEBUG
- #CFLAGS =-DX86 -Wall -pipe -g -DEMU64_DEBUG -DCOMPARE_CORE
- #CFLAGS =-DX86 -Wall -pipe -g
-
--CXXFLAGS =$(CFLAGS)
-+CFLAGS += -fPIC -fno-strict-aliasing
-+CXXFLAGS += -fPIC -fno-strict-aliasing
-+
-+CXXFLAGS ?=$(CFLAGS)
-
- GL_PATH =-I/usr/X11R6/include
-
-@@ -80,7 +83,6 @@
- OBJ_INPUT =mupen64_input/main.o
-
- OBJ_BLIGHT =blight_input/plugin.o \
-- blight_input/SDL_ttf.o \
- blight_input/arial.ttf.o \
- blight_input/configdialog_sdl.o \
- blight_input/pad.o
-@@ -166,7 +168,12 @@
- endif
-
- PREFIX =$(shell grep WITH_HOME config.h | cut -d '"' -f 2)
--SHARE ="$(PREFIX)share/mupen64/"
-+SHARE =$(shell grep "define SHARE" config.h | cut -d '"' -f 2)
-+
-+ifeq ("$(SHARE)","")
-+SHARE ="$(PREFIX)/share/mupen64/"
-+CFLAGS += -DSHARE=\"$(SHARE)\"
-+endif
-
- PLUGINS =plugins/mupen64_input.so plugins/blight_input.so plugins/mupen64_hle_rsp_azimer.so plugins/dummyaudio.so plugins/mupen64_audio.so plugins/jttl_audio.so plugins/mupen64_soft_gfx.so plugins/glN64.so
-
-@@ -223,9 +230,6 @@
- blight_input/plugin.o: blight_input/plugin.c
- $(CC) $(CFLAGS) "-DPACKAGE=\"$(shell grep PACKAGE blight_input/package | cut -d "=" -f 2)\"" "-DVERSION=\"$(shell grep VERSION blight_input/package | cut -d "=" -f 2)\"" `sdl-config --cflags` -DGUI_SDL -c -o $@ $<
-
--blight_input/SDL_ttf.o: blight_input/SDL_ttf.c
-- $(CC) $(CFLAGS) `freetype-config --cflags` `sdl-config --cflags` -c -o $@ $<
--
- blight_input/arial.ttf.o: blight_input/arial.ttf.c
-
- blight_input/arial.ttf.c: blight_input/ttftoh
-@@ -234,7 +238,6 @@
-
- blight_input/ttftoh: blight_input/ttftoh.o
- $(CC) $^ -o $@
-- strip --strip-all $@
-
- blight_input/configdialog_sdl.o: blight_input/configdialog_sdl.c
- $(CC) $(CFLAGS) "-DPACKAGE=\"$(shell grep PACKAGE blight_input/package | cut -d "=" -f 2)\"" "-DVERSION=\"$(shell grep VERSION blight_input/package | cut -d "=" -f 2)\"" -DGUI_SDL `sdl-config --cflags` -c -o $@ $<
-@@ -343,56 +346,44 @@
-
- mupen64_nogui: $(OBJ) $(OBJ_X86) main/main.o main/gui_gtk/config.o
- $(CC) $^ $(LIB) -Wl,-export-dynamic -L/usr/X11R6/lib `sdl-config --libs` -lGL -lpthread -ldl -o $@
-- strip --strip-all $@
-
- ifneq ("$(shell grep VCR config.h)","\#define VCR_SUPPORT 1")
-
- mupen64: $(OBJ) $(OBJ_X86) $(OBJ_GTK_GUI)
- $(CC) $^ $(CFLAGS) $(LIB) -Wl,-export-dynamic $(GTK_LIBS) -L/usr/X11R6/lib `sdl-config --libs` -lGL -lpthread -ldl -o $@
-- strip --strip-all $@
-
- else
-
- mupen64: $(OBJ) $(OBJ_X86) $(OBJ_GTK_GUI) $(OBJ_VCR)
- $(CXX) $^ $(CFLAGS) $(LIB) -Wl,-export-dynamic $(GTK_LIBS) `avifile-config --libs` `sdl-config --libs` -L/usr/X11R6/lib -lGL -lpthread -ldl -o $@
-- strip --strip-all $@
- endif
-
- mupen64_oldgui: $(OBJ) $(OBJ_X86) main/main_gtk.o
- $(CC) $^ $(LIB) -Wl,-export-dynamic $(GTK_LIBS) `sdl-config --libs` -L/usr/X11R6/lib -lGL -lpthread -ldl -o $@
-- strip --strip-all $@
-
- plugins/mupen64_input.so: $(OBJ_INPUT)
- $(CC) $^ -Wl,-Bsymbolic -shared $(GTK_LIBS) -o $@
-- strip --strip-all $@
-
- plugins/blight_input.so: $(OBJ_BLIGHT)
-- $(CC) $^ -Wl,-Bsymbolic -shared `sdl-config --libs` `freetype-config --libs` -o $@
-- strip --strip-all $@
-+ $(CC) $^ -Wl,-Bsymbolic -shared `sdl-config --libs` -lSDL_ttf -o $@
-
- plugins/mupen64_hle_rsp_azimer.so: $(OBJ_RSPHLE)
- $(CXX) $^ -Wl,-Bsymbolic -shared $(GTK_LIBS) -o $@
-- strip --strip-all $@
-
- plugins/dummyaudio.so: $(OBJ_DUMMY)
- $(CC) $^ -Wl,-Bsymbolic -shared -o $@
-- strip --strip-all $@
-
- plugins/mupen64_audio.so: $(OBJ_AUDIO)
- $(CC) $(GTK_LIBS) -lpthread $^ -Wl,-Bsymbolic -shared -o $@
-- strip --strip-all $@
-
- plugins/jttl_audio.so: $(OBJ_JTTL)
- $(CC) $^ -Wl,-Bsymbolic -shared `sdl-config --libs` $(GTK_LIBS) -o $@
-- strip --strip-all $@
-
- plugins/mupen64_soft_gfx.so: $(OBJ_SOFT_GFX)
- $(CXX) `sdl-config --libs` $^ -Wl,-Bsymbolic -shared -o $@
-- strip --strip-all $@
-
- plugins/glN64.so: $(OBJ_GLN64)
- $(CXX) $^ -Wl,-Bsymbolic -shared $(GTK_LIBS) $(GTHREAD_LIBS) `sdl-config --libs` -lGL -o $@
-- strip --strip-all $@
-
- install:
- cp mupen64 "$(PREFIX)bin"
-@@ -405,7 +396,7 @@
-
- clean:
- find . -name '*.o' -print0 | xargs -0r rm -f
-- rm mupen64 mupen64_nogui mupen64_dbg plugins/mupen64_input.so blight_input/arial.ttf.c blight_input/ttftoh plugins/blight_input.so plugins/mupen64_hle_rsp_azimer.so plugins/dummyaudio.so plugins/mupen64_audio.so plugins/jttl_audio.so plugins/mupen64_soft_gfx.so plugins/glN64.so
-+ rm -f mupen64 mupen64_nogui mupen64_dbg plugins/mupen64_input.so blight_input/arial.ttf.c blight_input/ttftoh plugins/blight_input.so plugins/mupen64_hle_rsp_azimer.so plugins/dummyaudio.so plugins/mupen64_audio.so plugins/jttl_audio.so plugins/mupen64_soft_gfx.so plugins/glN64.so
-
- clean_o:
- find . -name '*.o' -print0 | xargs -0r rm -f
-File mupen64_src-0.5.orig/compare_pipe is a fifo while file mupen64_src-0.5/compare_pipe is a fifo
-diff -ruN mupen64_src-0.5.orig/config.h mupen64_src-0.5/config.h
---- mupen64_src-0.5.orig/config.h 2005-08-26 21:52:14.000000000 +0200
-+++ mupen64_src-0.5/config.h 2007-03-21 19:22:58.000000000 +0100
-@@ -2,6 +2,7 @@
- #define CONFIG_H
-
- #undef WITH_HOME
-+#undef SHARE
- #undef VCR_SUPPORT
- #define GTK2_SUPPORT 1
-
-diff -ruN mupen64_src-0.5.orig/main/gui_gtk/main_gtk.c mupen64_src-0.5/main/gui_gtk/main_gtk.c
---- mupen64_src-0.5.orig/main/gui_gtk/main_gtk.c 2005-08-26 22:08:13.000000000 +0200
-+++ mupen64_src-0.5/main/gui_gtk/main_gtk.c 2007-03-21 19:22:58.000000000 +0100
-@@ -1880,8 +1880,8 @@
- {
- unsigned char byte;
- dest = fopen(temp, "wb");
-- strcpy(orig, WITH_HOME);
-- strcat(orig, "share/mupen64/mupen64.ini");
-+ strcpy(orig, SHARE);
-+ strcat(orig, "mupen64.ini");
- src = fopen(orig, "rb");
- while(fread(&byte, 1, 1, src))
- fwrite(&byte, 1, 1, dest);
-@@ -1892,28 +1892,28 @@
-
- strcpy(temp, g_WorkingDir);
- strcat(temp, "lang");
-- strcpy(orig, WITH_HOME);
-- strcat(orig, "share/mupen64/lang");
-+ strcpy(orig, SHARE);
-+ strcat(orig, "lang");
- symlink(orig, temp);
-
- /*strcpy(temp, g_WorkingDir);
- strcat(temp, "plugins");
-- strcpy(orig, WITH_HOME);
-- strcat(orig, "share/mupen64/plugins");
-+ strcpy(orig, SHARE);
-+ strcat(orig, "plugins");
- symlink(orig, temp);*/
-
- strcpy(temp, g_WorkingDir);
- strcat(temp, "plugins");
- mkdir(temp, 0700);
-- strcpy(orig, WITH_HOME);
-- strcat(orig, "share/mupen64/plugins");
-+ strcpy(orig, SHARE);
-+ strcat(orig, "plugins");
- dir = opendir(orig);
- while((entry = readdir(dir)) != NULL)
- {
- if(strcmp(entry->d_name + strlen(entry->d_name) - 3, ".so"))
- {
-- strcpy(orig, WITH_HOME);
-- strcat(orig, "share/mupen64/plugins/");
-+ strcpy(orig, SHARE);
-+ strcat(orig, "plugins/");
- strcat(orig, entry->d_name);
- src = fopen(orig, "rb");
- if(src == NULL) continue;
-@@ -1938,8 +1938,8 @@
- strcpy(temp, g_WorkingDir);
- strcat(temp, "plugins/");
- strcat(temp, entry->d_name);
-- strcpy(orig, WITH_HOME);
-- strcat(orig, "share/mupen64/plugins/");
-+ strcpy(orig, SHARE);
-+ strcat(orig, "plugins/");
- strcat(orig, entry->d_name);
- symlink(orig, temp);
- }
-diff -ruN mupen64_src-0.5.orig/main/main.c mupen64_src-0.5/main/main.c
---- mupen64_src-0.5.orig/main/main.c 2005-08-26 21:52:11.000000000 +0200
-+++ mupen64_src-0.5/main/main.c 2007-03-21 19:22:58.000000000 +0100
-@@ -37,6 +37,8 @@
-
- #include <stdlib.h>
- #include <unistd.h>
-+#include <dirent.h>
-+#include <sys/stat.h>
-
- #include "main.h"
- #include "guifuncs.h"
-@@ -262,8 +264,8 @@
- {
- unsigned char byte;
- dest = fopen(temp, "wb");
-- strcpy(orig, WITH_HOME);
-- strcat(orig, "share/mupen64/mupen64.ini");
-+ strcpy(orig, SHARE);
-+ strcat(orig, "mupen64.ini");
- src = fopen(orig, "rb");
- while(fread(&byte, 1, 1, src))
- fwrite(&byte, 1, 1, dest);
-@@ -274,28 +276,28 @@
-
- strcpy(temp, g_WorkingDir);
- strcat(temp, "lang");
-- strcpy(orig, WITH_HOME);
-- strcat(orig, "share/mupen64/lang");
-+ strcpy(orig, SHARE);
-+ strcat(orig, "lang");
- symlink(orig, temp);
-
- /*strcpy(temp, g_WorkingDir);
- strcat(temp, "plugins");
-- strcpy(orig, WITH_HOME);
-- strcat(orig, "share/mupen64/plugins");
-+ strcpy(orig, SHARE);
-+ strcat(orig, "plugins");
- symlink(orig, temp);*/
-
- strcpy(temp, g_WorkingDir);
- strcat(temp, "plugins");
- mkdir(temp, 0700);
-- strcpy(orig, WITH_HOME);
-- strcat(orig, "share/mupen64/plugins");
-+ strcpy(orig, SHARE);
-+ strcat(orig, "plugins");
- dir = opendir(orig);
- while((entry = readdir(dir)) != NULL)
- {
- if(strcmp(entry->d_name + strlen(entry->d_name) - 3, ".so"))
- {
-- strcpy(orig, WITH_HOME);
-- strcat(orig, "share/mupen64/plugins/");
-+ strcpy(orig, SHARE);
-+ strcat(orig, "plugins/");
- strcat(orig, entry->d_name);
- src = fopen(orig, "rb");
- if(src == NULL) continue;
-@@ -320,8 +322,8 @@
- strcpy(temp, g_WorkingDir);
- strcat(temp, "plugins/");
- strcat(temp, entry->d_name);
-- strcpy(orig, WITH_HOME);
-- strcat(orig, "share/mupen64/plugins/");
-+ strcpy(orig, SHARE);
-+ strcat(orig, "plugins/");
- strcat(orig, entry->d_name);
- symlink(orig, temp);
- }
diff --git a/games-emulation/mupen64/files/mupen64-glN64-noasmfix.patch b/games-emulation/mupen64/files/mupen64-glN64-noasmfix.patch
deleted file mode 100644
index 5aee4032eedd..000000000000
--- a/games-emulation/mupen64/files/mupen64-glN64-noasmfix.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- glN64/convert.h.old 2005-04-23 16:32:44.000000000 -0700
-+++ glN64/convert.h 2005-04-23 16:40:43.000000000 -0700
-@@ -442,7 +442,7 @@
- while (numDWords--)
- {
- u32 dword = *(u32 *)src;
-- __asm__ volatile( "bswapl %0\n\t" : "=q"(dword) : "0"(dword) );
-+ dword = ((dword<<24)|((dword<<8)&0x00FF0000)|((dword>>8)&0x0000FF00)|(dword>>24));
- *(u32 *)dest = dword;
- dest = (void *)((int)dest+4);
- src = (void *)((int)src +4);
diff --git a/games-emulation/mupen64/files/mupen64-glN64-ucode.patch b/games-emulation/mupen64/files/mupen64-glN64-ucode.patch
deleted file mode 100644
index 8dc9aab0a647..000000000000
--- a/games-emulation/mupen64/files/mupen64-glN64-ucode.patch
+++ /dev/null
@@ -1,121 +0,0 @@
-diff -g glN64-old/GBI.cpp glN64/GBI.cpp
-*** glN64-old/GBI.cpp 2003-10-15 16:01:07.000000000 -0700
---- glN64/GBI.cpp 2005-02-02 23:42:30.000000000 -0800
-***************
-*** 37,43 ****
- { F3DDKR, FALSE, 0x8d91244f, "Diddy Kong Racing" },
- { F3DDKR, FALSE, 0x6e6fc893, "Diddy Kong Racing" },
- { F3DDKR, FALSE, 0xbde9d1fb, "Jet Force Gemini" },
-! { F3DPD, FALSE, 0x1c4f7869, "Perfect Dark" }
- };
-
- u32 G_RDPHALF_1, G_RDPHALF_2, G_RDPHALF_CONT;
---- 37,44 ----
- { F3DDKR, FALSE, 0x8d91244f, "Diddy Kong Racing" },
- { F3DDKR, FALSE, 0x6e6fc893, "Diddy Kong Racing" },
- { F3DDKR, FALSE, 0xbde9d1fb, "Jet Force Gemini" },
-! { F3DPD, FALSE, 0x1c4f7869, "Perfect Dark" },
-! { F3DEX, FALSE, 0x0ace4c3f, "Mario Kart" }
- };
-
- u32 G_RDPHALF_1, G_RDPHALF_2, G_RDPHALF_CONT;
-***************
-*** 264,274 ****
-
- while (selectedMicrocode == -1)
- {
-! // if( gtk_main_iteration() )
-! // break;
- usleep( 10000 );
- }
- gdk_threads_leave();
- return selectedMicrocode;
- }
- #endif // __LINUX__
---- 265,276 ----
-
- while (selectedMicrocode == -1)
- {
-! if( gtk_main_iteration() )
-! break;
- usleep( 10000 );
- }
- gdk_threads_leave();
-+
- return selectedMicrocode;
- }
- #endif // __LINUX__
-***************
-*** 435,441 ****
- current->type = DialogBox( hInstance, MAKEINTRESOURCE( IDD_MICROCODEDLG ), hWnd, MicrocodeDlgProc );
- #else // !__LINUX__
- printf( "glN64: Warning - unknown ucode!!!\n" );
-! current->type = MicrocodeDialog();
- #endif // __LINUX__
- return current;
- }
---- 437,447 ----
- current->type = DialogBox( hInstance, MAKEINTRESOURCE( IDD_MICROCODEDLG ), hWnd, MicrocodeDlgProc );
- #else // !__LINUX__
- printf( "glN64: Warning - unknown ucode!!!\n" );
-! if(last_good_ucode != -1) {
-! current->type=last_good_ucode;
-! } else {
-! current->type = MicrocodeDialog();
-! }
- #endif // __LINUX__
- return current;
- }
-diff -g glN64-old/GBI.h glN64/GBI.h
-*** glN64-old/GBI.h 2003-10-15 16:01:07.000000000 -0700
---- glN64/GBI.h 2005-02-02 23:37:36.000000000 -0800
-***************
-*** 736,741 ****
---- 736,742 ----
-
- void GBI_MakeCurrent( MicrocodeInfo *current );
- MicrocodeInfo *GBI_DetectMicrocode( u32 uc_start, u32 uc_dstart, u16 uc_dsize );
-+ extern u32 last_good_ucode;
- void GBI_Init();
- void GBI_Destroy();
-
-diff -g glN64-old/glN64.cpp glN64/glN64.cpp
-*** glN64-old/glN64.cpp 2003-10-15 16:09:00.000000000 -0700
---- glN64/glN64.cpp 2005-02-02 23:36:47.000000000 -0800
-***************
-*** 29,35 ****
-
- char pluginName[] = "glN64 v0.4.1-rc2";
- char *screenDirectory;
-!
- void (*CheckInterrupts)( void );
-
- #ifndef __LINUX__
---- 29,35 ----
-
- char pluginName[] = "glN64 v0.4.1-rc2";
- char *screenDirectory;
-! u32 last_good_ucode = -1;
- void (*CheckInterrupts)( void );
-
- #ifndef __LINUX__
-diff -g glN64-old/gSP.cpp glN64/gSP.cpp
-*** glN64-old/gSP.cpp 2003-10-15 16:01:07.000000000 -0700
---- glN64/gSP.cpp 2005-02-02 23:41:58.000000000 -0800
-***************
-*** 60,66 ****
- }
-
- MicrocodeInfo *ucode = GBI_DetectMicrocode( uc_start, uc_dstart, uc_dsize );
-!
- if (ucode->type != NONE)
- GBI_MakeCurrent( ucode );
- else
---- 60,66 ----
- }
-
- MicrocodeInfo *ucode = GBI_DetectMicrocode( uc_start, uc_dstart, uc_dsize );
-! if (ucode->type != -1) last_good_ucode = ucode->type;
- if (ucode->type != NONE)
- GBI_MakeCurrent( ucode );
- else
diff --git a/games-emulation/mupen64/metadata.xml b/games-emulation/mupen64/metadata.xml
deleted file mode 100644
index 2a5c75c7fd81..000000000000
--- a/games-emulation/mupen64/metadata.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<maintainer>
-<email>joker@gentoo.org</email>
-<name>Christian Birchinger</name>
-</maintainer>
-<herd>games</herd>
-</pkgmetadata>
diff --git a/games-emulation/mupen64/mupen64-0.5-r4.ebuild b/games-emulation/mupen64/mupen64-0.5-r4.ebuild
deleted file mode 100644
index 8186bf569a97..000000000000
--- a/games-emulation/mupen64/mupen64-0.5-r4.ebuild
+++ /dev/null
@@ -1,91 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-emulation/mupen64/mupen64-0.5-r4.ebuild,v 1.5 2009/09/08 07:59:52 tupone Exp $
-
-inherit eutils multilib games
-
-MY_P=${PN}_src-${PV}
-DESCRIPTION="A Nintendo 64 (N64) emulator"
-HOMEPAGE="http://mupen64.emulation64.com/"
-SRC_URI="http://mupen64.emulation64.com/files/${PV}/${MY_P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="-* ~amd64 x86"
-IUSE=""
-
-RDEPEND="virtual/opengl
- >=x11-libs/gtk+-2
- media-libs/libsdl
- media-libs/sdl-ttf
- amd64? (
- app-emulation/emul-linux-x86-gtklibs
- >=app-emulation/emul-linux-x86-sdl-10.0
- )"
-DEPEND="${RDEPEND}
- dev-util/pkgconfig"
-
-S=${WORKDIR}/${MY_P}
-
-pkg_setup() {
- games_pkg_setup
- has_multilib_profile && multilib_toolchain_setup x86
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- rm -f plugins/empty blight_input/SDL_ttf*
-
- epatch \
- "${FILESDIR}"/${P}-anisotropic.patch \
- "${FILESDIR}"/${P}-gentoo3.patch \
- "${FILESDIR}"/${PN}-glN64-ucode.patch \
- "${FILESDIR}"/${PN}-glN64-noasmfix.patch \
- "${FILESDIR}"/${P}-gcc42.patch \
- "${FILESDIR}"/${P}-gcc43.patch
-
- sed -i \
- -e "s:#undef WITH_HOME:#define WITH_HOME \"$(games_get_libdir)/\":" \
- -e "s:#undef SHARE:#define SHARE \"$(games_get_libdir)/${PN}/\":" \
- config.h \
- || die "sed failed"
-}
-
-src_compile() {
- local t
- for t in \
- mupen64 \
- mupen64_nogui \
- plugins/mupen64_input.so \
- plugins/blight_input.so \
- plugins/mupen64_hle_rsp_azimer.so \
- plugins/dummyaudio.so \
- plugins/mupen64_audio.so \
- plugins/jttl_audio.so \
- plugins/mupen64_soft_gfx.so \
- plugins/glN64.so
- do
- emake ${t} || die "emake ${t} failed"
- done
-}
-
-src_install() {
- dogamesbin mupen64 mupen64_nogui || die "dogamesbin failed"
-
- insinto "$(games_get_libdir)/${PN}"
- doins -r mupen64.ini jttl_audio.conf lang roms plugins || die "doins failed"
-
- dodoc *.txt doc/readme.pdf
- prepgamesdirs
-}
-
-pkg_postinst() {
- games_pkg_postinst
- echo
- ewarn "If you are upgrading from a previous version of mupen64,"
- ewarn "backup your saved games then run rm -rf on your"
- ewarn ".mupen64 directory. After launching the new version, copy"
- ewarn "your saved games to their original place."
- echo
-}