initial commit of mupen64-rice plugin
authorDaniel Goller <morfic@gentoo.org>
Mon, 3 Jan 2005 15:43:55 +0000 (15:43 +0000)
committerDaniel Goller <morfic@gentoo.org>
Mon, 3 Jan 2005 15:43:55 +0000 (15:43 +0000)
games-emulation/mupen64-riceplugin/ChangeLog [new file with mode: 0644]
games-emulation/mupen64-riceplugin/Manifest [new file with mode: 0644]
games-emulation/mupen64-riceplugin/files/digest-mupen64-riceplugin-5.1.0 [new file with mode: 0644]
games-emulation/mupen64-riceplugin/files/mupen64-riceplugin-gcc3.patch [new file with mode: 0644]
games-emulation/mupen64-riceplugin/files/mupen64-riceplugin-makefile.patch [new file with mode: 0644]
games-emulation/mupen64-riceplugin/metadata.xml [new file with mode: 0644]
games-emulation/mupen64-riceplugin/mupen64-riceplugin-5.1.0.ebuild [new file with mode: 0644]

diff --git a/games-emulation/mupen64-riceplugin/ChangeLog b/games-emulation/mupen64-riceplugin/ChangeLog
new file mode 100644 (file)
index 0000000..85e7002
--- /dev/null
@@ -0,0 +1,10 @@
+# ChangeLog for games-emulation/mupen64-riceplugin
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/mupen64-riceplugin/ChangeLog,v 1.1 2005/01/03 15:43:55 morfic Exp $
+
+*mupen64-riceplugin-5.1.0 (03 Jan 2005)
+
+  03 Jan 2005; Daniel Goller <morfic@gentoo.org> +metadata.xml,
+  +mupen64-riceplugin-5.1.0.ebuild:
+  Initial commit of plugin
+
diff --git a/games-emulation/mupen64-riceplugin/Manifest b/games-emulation/mupen64-riceplugin/Manifest
new file mode 100644 (file)
index 0000000..1e9d406
--- /dev/null
@@ -0,0 +1,16 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 2f94341eb27aec4908a080579e1f5ba4 mupen64-riceplugin-5.1.0.ebuild 1222
+MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158
+MD5 8ac5359a5e4337473087d411e356f172 ChangeLog 410
+MD5 e2b006764c1bac03ac2667ad60a66101 files/mupen64-riceplugin-gcc3.patch 3662
+MD5 5b0d70ba016fdc0e4eaa098f99ee65f5 files/mupen64-riceplugin-makefile.patch 734
+MD5 b3400316b9d64a4bda1c9d80e9e87717 files/digest-mupen64-riceplugin-5.1.0 63
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.2.6 (GNU/Linux)
+
+iD8DBQFB2Wh5UpKYMelfdYERAltzAJ9esXtQuNI4EKu2qjqiEd+qQKHnhACfYIpQ
+Ww1/fPGlKmSrpvM9AdbroGI=
+=tkHe
+-----END PGP SIGNATURE-----
diff --git a/games-emulation/mupen64-riceplugin/files/digest-mupen64-riceplugin-5.1.0 b/games-emulation/mupen64-riceplugin/files/digest-mupen64-riceplugin-5.1.0
new file mode 100644 (file)
index 0000000..959bea1
--- /dev/null
@@ -0,0 +1 @@
+MD5 f6f42d31cee3fce0ea92176f42ef73ba riceplugin.tar.bz2 287672
diff --git a/games-emulation/mupen64-riceplugin/files/mupen64-riceplugin-gcc3.patch b/games-emulation/mupen64-riceplugin/files/mupen64-riceplugin-gcc3.patch
new file mode 100644 (file)
index 0000000..28a018e
--- /dev/null
@@ -0,0 +1,118 @@
+diff -ur riceplugin.orig/DaedalusGraphics.cpp riceplugin/DaedalusGraphics.cpp
+--- riceplugin.orig/DaedalusGraphics.cpp       2003-09-19 01:22:36.335328472 -0400
++++ riceplugin/DaedalusGraphics.cpp    2003-09-19 01:22:36.470307952 -0400
+@@ -18,6 +18,7 @@
+ */\r
+ #include "stdafx.h"\r
+ #include "_BldNum.h"\r
++#include <assert.h>
+ \r
+ #ifndef _WIN32\r
+ #include <unistd.h>\r
+diff -ur riceplugin.orig/DecodedMux.cpp riceplugin/DecodedMux.cpp
+--- riceplugin.orig/DecodedMux.cpp     2003-09-19 01:22:36.366323760 -0400
++++ riceplugin/DecodedMux.cpp  2003-09-19 01:22:48.379497480 -0400
+@@ -760,7 +760,7 @@
+ ShadeConstMergeMapType MergeShadeWithConstantsMaps[] =\r
+ {\r
+       0,      SHADE_DO_NOTHING,\r
+-      0x0007000600070006,     SHADE_MOD_ENV,          // SHADE * ENV\r
++      SHADE_DO_NOTHING,       SHADE_MOD_ENV,          // SHADE * ENV\r
+ };\r
+ \r
+ // 0x05070501, 0x00070006             //(1 - PRIM) * ENV + PRIM\r
+diff -ur riceplugin.orig/OGLCombinerTNT2.cpp riceplugin/OGLCombinerTNT2.cpp
+--- riceplugin.orig/OGLCombinerTNT2.cpp        2003-09-19 01:22:36.340327712 -0400
++++ riceplugin/OGLCombinerTNT2.cpp     2003-09-19 01:25:36.859884568 -0400
+@@ -120,22 +120,22 @@
+ \r
+ GLenum COGLColorCombinerTNT2::RGBArgsMap[] =\r
+ {\r
+-      {GL_ZERO,                                       },      //MUX_0\r
+-      {GL_ZERO,                                       },      //MUX_1\r
+-      {GL_PREVIOUS_EXT,                       },      //MUX_COMBINED,\r
+-      {GL_TEXTURE0_ARB,                       },      //MUX_TEXEL0,\r
+-      {GL_TEXTURE1_ARB,                       },      //MUX_TEXEL1,\r
+-      {GL_CONSTANT_EXT,                       },      //MUX_PRIM,\r
+-      {GL_PRIMARY_COLOR_EXT,          },      //MUX_SHADE,\r
+-      {GL_CONSTANT_EXT,                       },      //MUX_ENV,\r
+-      {GL_PREVIOUS_EXT,                       },      //MUX_COMBALPHA,\r
+-      {GL_TEXTURE0_ARB,                       },      //MUX_T0_ALPHA,\r
+-      {GL_TEXTURE1_ARB,                       },      //MUX_T1_ALPHA,\r
+-      {GL_CONSTANT_EXT,                       },      //MUX_PRIM_ALPHA,\r
+-      {GL_PRIMARY_COLOR_EXT,          },      //MUX_SHADE_ALPHA,\r
+-      {GL_CONSTANT_EXT,                       },      //MUX_ENV_ALPHA,\r
+-      {GL_CONSTANT_EXT,                       },      //MUX_LODFRAC,\r
+-      {GL_CONSTANT_EXT,                       },      //MUX_PRIMLODFRAC,\r
++      GL_ZERO,
++      GL_ZERO,
++      GL_PREVIOUS_EXT,
++      GL_TEXTURE0_ARB,
++      GL_TEXTURE1_ARB,
++      GL_CONSTANT_EXT,
++      GL_PRIMARY_COLOR_EXT,
++      GL_CONSTANT_EXT,
++      GL_PREVIOUS_EXT,
++      GL_TEXTURE0_ARB,
++      GL_TEXTURE1_ARB,
++      GL_CONSTANT_EXT,
++      GL_PRIMARY_COLOR_EXT,
++      GL_CONSTANT_EXT,
++      GL_CONSTANT_EXT,
++      GL_CONSTANT_EXT,
+ };\r
+ \r
+ \r
+diff -ur riceplugin.orig/OGLExtCombiner.cpp riceplugin/OGLExtCombiner.cpp
+--- riceplugin.orig/OGLExtCombiner.cpp 2003-09-19 01:22:36.371323000 -0400
++++ riceplugin/OGLExtCombiner.cpp      2003-09-19 01:24:56.994944960 -0400
+@@ -474,22 +474,22 @@
+ \r
+ GLenum COGLExtColorCombiner::RGBArgsMap[] =\r
+ {\r
+-      {GL_PRIMARY_COLOR_ARB,          },      //MUX_0\r
+-      {GL_PRIMARY_COLOR_ARB,          },      //MUX_1\r
+-      {GL_PREVIOUS_ARB,                       },      //MUX_COMBINED,\r
+-      {GL_TEXTURE0_ARB,                       },      //MUX_TEXEL0,\r
+-      {GL_TEXTURE1_ARB,                       },      //MUX_TEXEL1,\r
+-      {GL_CONSTANT_ARB,                       },      //MUX_PRIM,\r
+-      {GL_PRIMARY_COLOR_ARB,          },      //MUX_SHADE,\r
+-      {GL_CONSTANT_ARB,                       },      //MUX_ENV,\r
+-      {GL_PREVIOUS_ARB,                       },      //MUX_COMBALPHA,\r
+-      {GL_TEXTURE0_ARB,                       },      //MUX_T0_ALPHA,\r
+-      {GL_TEXTURE1_ARB,                       },      //MUX_T1_ALPHA,\r
+-      {GL_CONSTANT_ARB,                       },      //MUX_PRIM_ALPHA,\r
+-      {GL_PRIMARY_COLOR_ARB,          },      //MUX_SHADE_ALPHA,\r
+-      {GL_CONSTANT_ARB,                       },      //MUX_ENV_ALPHA,\r
+-      {GL_CONSTANT_ARB,                       },      //MUX_LODFRAC,\r
+-      {GL_CONSTANT_ARB,                       },      //MUX_PRIMLODFRAC,\r
++      GL_PRIMARY_COLOR_ARB,
++      GL_PRIMARY_COLOR_ARB,
++      GL_PREVIOUS_ARB,
++      GL_TEXTURE0_ARB,
++      GL_TEXTURE1_ARB,
++      GL_CONSTANT_ARB,
++      GL_PRIMARY_COLOR_ARB,
++      GL_CONSTANT_ARB,
++      GL_PREVIOUS_ARB,
++      GL_TEXTURE0_ARB,
++      GL_TEXTURE1_ARB,
++      GL_CONSTANT_ARB,
++      GL_PRIMARY_COLOR_ARB,
++      GL_CONSTANT_ARB,
++      GL_CONSTANT_ARB,
++      GL_CONSTANT_ARB,
+ };\r
+ \r
+ \r
+diff -ur riceplugin.orig/unique.h riceplugin/unique.h
+--- riceplugin.orig/unique.h   2003-09-19 01:22:36.336328320 -0400
++++ riceplugin/unique.h        2003-09-19 01:22:36.473307496 -0400
+@@ -39,6 +39,7 @@
+ //\r
+ //\r
+ \r
++#include <assert.h>
+ #ifdef _MSC_VER\r
+ #include <crtdbg.h>\r
+ #endif\r
diff --git a/games-emulation/mupen64-riceplugin/files/mupen64-riceplugin-makefile.patch b/games-emulation/mupen64-riceplugin/files/mupen64-riceplugin-makefile.patch
new file mode 100644 (file)
index 0000000..f75301f
--- /dev/null
@@ -0,0 +1,14 @@
+--- riceplugin/Makefile.orig   2004-07-15 21:38:45.195293640 +0000
++++ riceplugin/Makefile        2004-07-15 21:40:31.719099560 +0000
+@@ -1,8 +1,8 @@
+ CC = gcc
+-#CFLAGS = -DUSE_GTK `sdl-config --cflags` `gtk-config --cflags` -g -mmmx -msse
+-CFLAGS = -DUSE_GTK `sdl-config --cflags` `gtk-config --cflags` -O3 -mcpu=athlon -ffast-math -funroll-loops -fomit-frame-pointer -msse -mmmx
++CFLAGS = -DUSE_GTK `sdl-config --cflags` `gtk-config --cflags`
++#CFLAGS = -DUSE_GTK `sdl-config --cflags` `gtk-config --cflags` -O3 -mcpu=athlon -ffast-math -funroll-loops -fomit-frame-pointer -msse -mmmx
+ CXX = g++
+-CPPFLAGS = $(CFLAGS)
++CPPFLAGS = -DUSE_GTK `sdl-config --cflags` `gtk-config --cflags`
+ LD = g++
+ LDFLAGS = -lGL -lGLU -L/usr/X11R6/lib -lSDL
+ 
diff --git a/games-emulation/mupen64-riceplugin/metadata.xml b/games-emulation/mupen64-riceplugin/metadata.xml
new file mode 100644 (file)
index 0000000..d3c2cc9
--- /dev/null
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-emulation/mupen64-riceplugin/mupen64-riceplugin-5.1.0.ebuild b/games-emulation/mupen64-riceplugin/mupen64-riceplugin-5.1.0.ebuild
new file mode 100644 (file)
index 0000000..e340822
--- /dev/null
@@ -0,0 +1,60 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/mupen64-riceplugin/mupen64-riceplugin-5.1.0.ebuild,v 1.1 2005/01/03 15:43:55 morfic Exp $
+
+inherit games gcc eutils libtool
+
+IUSE=""
+
+DESCRIPTION="an graphics plugin for mupen64"
+SRC_URI="http://mupen64.emulation64.com/files/${PV}/riceplugin.tar.bz2"
+HOMEPAGE="http://mupen64.emulation64.com/"
+
+RESTRICT="nomirror"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+RDEPEND="sys-libs/zlib
+       !gtk2? ( =x11-libs/gtk+-1.2* )
+       gtk2? ( =x11-libs/gtk+-2* )
+       media-libs/libsdl
+       virtual/glu
+       virtual/opengl"
+DEPEND="${RDEPEND}
+       >=sys-apps/sed-4"
+
+S="${WORKDIR}/riceplugin"
+
+src_unpack() {
+       unpack ${A}
+
+       cd ${S}
+       epatch ${FILESDIR}/${PN}-makefile.patch
+       epatch ${FILESDIR}/${PN}-gcc3.patch
+
+       # the riceplugin requires sse support
+       #echo "#include <xmmintrin.h>" > ${T}/test.c
+       #$(gcc-getCC) ${CFLAGS} -o ${T}/test.s -S ${T}/test.c >&/dev/null || die
+       #"failed sse test"
+
+}
+
+src_compile() {
+
+       emake || die "emake failed"
+
+}
+
+src_install() {
+       local dir=${GAMES_LIBDIR}/mupen64
+       dodir ${dir}
+
+       exeinto ${dir}/plugins
+       doexe *.so
+       insinto ${dir}/plugins
+       doins *.ini
+
+       prepgamesdirs
+}