initial commit of mupen64-glide64 plugin
authorDaniel Goller <morfic@gentoo.org>
Mon, 3 Jan 2005 15:36:18 +0000 (15:36 +0000)
committerDaniel Goller <morfic@gentoo.org>
Mon, 3 Jan 2005 15:36:18 +0000 (15:36 +0000)
games-emulation/mupen64-glide64/ChangeLog [new file with mode: 0644]
games-emulation/mupen64-glide64/Manifest [new file with mode: 0644]
games-emulation/mupen64-glide64/files/digest-mupen64-glide64-0.7 [new file with mode: 0644]
games-emulation/mupen64-glide64/files/mupen64-glide64-0.7-compile.patch [new file with mode: 0644]
games-emulation/mupen64-glide64/files/mupen64-glide64-0.7-gtk2.patch [new file with mode: 0644]
games-emulation/mupen64-glide64/metadata.xml [new file with mode: 0644]
games-emulation/mupen64-glide64/mupen64-glide64-0.7.ebuild [new file with mode: 0644]

diff --git a/games-emulation/mupen64-glide64/ChangeLog b/games-emulation/mupen64-glide64/ChangeLog
new file mode 100644 (file)
index 0000000..49a5478
--- /dev/null
@@ -0,0 +1,11 @@
+# ChangeLog for games-emulation/mupen64-glide64
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/mupen64-glide64/ChangeLog,v 1.1 2005/01/03 15:36:18 morfic Exp $
+
+*mupen64-glide64-0.7 (02 Jan 2005)
+
+  02 Jan 2005; Daniel Goller <morfic@gentoo.org>
+  +files/mupen64-glide64-0.7-compile.patch,
+  +files/mupen64-glide64-0.7-gtk2.patch, +mupen64-glide64-0.7.ebuild:
+  Initial commit of mupen64 plugin, needs work, we'll go from here
+
diff --git a/games-emulation/mupen64-glide64/Manifest b/games-emulation/mupen64-glide64/Manifest
new file mode 100644 (file)
index 0000000..3f41006
--- /dev/null
@@ -0,0 +1,16 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 48e2705e2f1ece236069e56cfd10e337 mupen64-glide64-0.7.ebuild 1004
+MD5 3e42e2228d50cdebd8ad750ac8bf54be ChangeLog 502
+MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158
+MD5 2f68b9e4d03102e87c1b845f4112b051 files/mupen64-glide64-0.7-compile.patch 4677
+MD5 42c247074d570fc3665a11d129a2e0d1 files/mupen64-glide64-0.7-gtk2.patch 1231
+MD5 ea5cfac2f37f3bea3a5a9ac9b6c06854 files/digest-mupen64-glide64-0.7 67
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.2.6 (GNU/Linux)
+
+iD8DBQFB2WceUpKYMelfdYERAnHKAJ9XtjDG9Ss15pevpa1I2UzDUOuV8ACfWVWp
+jxvGAfssZzyWvXnw1LISnEA=
+=T0Gh
+-----END PGP SIGNATURE-----
diff --git a/games-emulation/mupen64-glide64/files/digest-mupen64-glide64-0.7 b/games-emulation/mupen64-glide64/files/digest-mupen64-glide64-0.7
new file mode 100644 (file)
index 0000000..fc9d80b
--- /dev/null
@@ -0,0 +1 @@
+MD5 3078c5c3f960728f99af825ab0af69e0 glide64_0_7_ME.tar.bz2 231051
diff --git a/games-emulation/mupen64-glide64/files/mupen64-glide64-0.7-compile.patch b/games-emulation/mupen64-glide64/files/mupen64-glide64-0.7-compile.patch
new file mode 100644 (file)
index 0000000..ae67022
--- /dev/null
@@ -0,0 +1,107 @@
+diff -ru glide64_0_7_ME/Makefile glide64_0_7_ME.working/Makefile
+--- glide64_0_7_ME/Makefile    2004-07-03 14:07:06.000000000 -0700
++++ glide64_0_7_ME.working/Makefile    2005-01-01 20:50:24.886864494 -0800
+@@ -1,7 +1,7 @@
+ CC = gcc
+ #CFLAGS = -DUSE_GTK `sdl-config --cflags` `gtk-config --cflags` -Iwrapper/ -g -mmmx -msse
+ #CFLAGS = -DUSE_GTK `sdl-config --cflags` `gtk-config --cflags` -Iwrapper/ -O3 -mcpu=athlon -ffast-math -funroll-loops -fomit-frame-pointer -msse -mmmx
+-CFLAGS = -DUSE_GTK `sdl-config --cflags` `gtk-config --cflags` -Iwrapper/ -O3 -mcpu=athlon -ffast-math -funroll-loops -fomit-frame-pointer -msse -mmmx
++CFLAGS = -DUSE_GTK -DGL_GLEXT_PROTOTYPES `sdl-config --cflags` `gtk-config --cflags` -Iwrapper/
+ CXX = g++
+ CPPFLAGS = $(CFLAGS)
+ LD = g++
+diff -ru glide64_0_7_ME/wrapper/combiner.cpp glide64_0_7_ME.working/wrapper/combiner.cpp
+--- glide64_0_7_ME/wrapper/combiner.cpp        2004-06-19 16:11:54.000000000 -0700
++++ glide64_0_7_ME.working/wrapper/combiner.cpp        2005-01-01 20:47:08.752963059 -0800
+@@ -4,7 +4,7 @@
+ #include "../winlnxdefs.h"\r
+ #endif // _WIN32\r
+ #include <GL/gl.h>\r
+-#include "glext.h"\r
++#include <GL/glext.h>\r
+ #include "glide.h"\r
+ #include "main.h"\r
+ \r
+diff -ru glide64_0_7_ME/wrapper/geometry.cpp glide64_0_7_ME.working/wrapper/geometry.cpp
+--- glide64_0_7_ME/wrapper/geometry.cpp        2004-06-20 03:00:18.000000000 -0700
++++ glide64_0_7_ME.working/wrapper/geometry.cpp        2005-01-01 20:42:31.730992830 -0800
+@@ -4,8 +4,8 @@
+ #include "../winlnxdefs.h"\r
+ #endif // _WIN32\r
+ #include <GL/gl.h>\r
++#include <GL/glext.h>\r
+ #include "glide.h"\r
+-#include "glext.h"\r
+ #include "main.h"\r
+ \r
+ static int xy_off;\r
+diff -ru glide64_0_7_ME/wrapper/main.cpp glide64_0_7_ME.working/wrapper/main.cpp
+--- glide64_0_7_ME/wrapper/main.cpp    2004-07-02 12:57:48.000000000 -0700
++++ glide64_0_7_ME.working/wrapper/main.cpp    2005-01-01 20:51:32.459133270 -0800
+@@ -20,10 +20,6 @@
+ #endif // _WIN32\r
+ \r
+ \r
+-PFNGLACTIVETEXTUREARBPROC glActiveTextureARB;\r
+-PFNGLBLENDFUNCSEPARATEEXTPROC glBlendFuncSeparateEXT;\r
+-PFNGLMULTITEXCOORD2FARBPROC glMultiTexCoord2fARB;\r
+-PFNGLFOGCOORDFPROC glFogCoordfEXT;\r
+ #ifdef _WIN32\r
+ PFNWGLGETEXTENSIONSSTRINGARBPROC wglGetExtensionsStringARB;\r
+ \r
+@@ -505,8 +501,8 @@
+       glActiveTextureARB = (PFNGLACTIVETEXTUREARBPROC)wglGetProcAddress("glActiveTextureARB");\r
+       glMultiTexCoord2fARB = (PFNGLMULTITEXCOORD2FARBPROC)wglGetProcAddress("glMultiTexCoord2fARB");\r
+ #else // _WIN32\r
+-   glActiveTextureARB = (PFNGLACTIVETEXTUREARBPROC)SDL_GL_GetProcAddress("glActiveTextureARB");\r
+-   glMultiTexCoord2fARB = (PFNGLMULTITEXCOORD2FARBPROC)SDL_GL_GetProcAddress("glMultiTexCoord2fARB");\r
++//   glActiveTextureARB = (PFNGLACTIVETEXTUREARBPROC)SDL_GL_GetProcAddress("glActiveTextureARB");\r
++//   glMultiTexCoord2fARB = (PFNGLMULTITEXCOORD2FARBPROC)SDL_GL_GetProcAddress("glMultiTexCoord2fARB");\r
+ #endif // _WIN32\r
+       glGetIntegerv(GL_MAX_TEXTURE_UNITS_ARB, &nbTextureUnits);\r
+       if (nbTextureUnits == 1) display_warning((unsigned char*)"You need a video card that has at least 2 texture units");\r
+@@ -523,7 +519,7 @@
+ #ifdef _WIN32\r
+       glBlendFuncSeparateEXT = (PFNGLBLENDFUNCSEPARATEEXTPROC)wglGetProcAddress("glBlendFuncSeparateEXT");\r
+ #else // _WIN32\r
+-   glBlendFuncSeparateEXT = (PFNGLBLENDFUNCSEPARATEEXTPROC)SDL_GL_GetProcAddress("glBlendFuncSeparateEXT");\r
++   //glBlendFuncSeparateEXT = (PFNGLBLENDFUNCSEPARATEEXTPROC)SDL_GL_GetProcAddress("glBlendFuncSeparateEXT");\r
+ #endif // _WIN32\r
+ \r
+       if (isExtensionSupported("GL_EXT_fog_coord") == FALSE)\r
+@@ -561,7 +557,7 @@
+               viewport_offset = 0;\r
+       }\r
+ #else // _WIN32\r
+-   glFogCoordfEXT = (PFNGLFOGCOORDFPROC)SDL_GL_GetProcAddress("glFogCoordfEXT");\r
++   //glFogCoordfEXT = (PFNGLFOGCOORDFPROC)SDL_GL_GetProcAddress("glFogCoordfEXT");\r
+ #endif // _WIN32\r
+       widtho = width/2;\r
+       if (!fullscreen)\r
+diff -ru glide64_0_7_ME/wrapper/main.h glide64_0_7_ME.working/wrapper/main.h
+--- glide64_0_7_ME/wrapper/main.h      2004-06-20 12:08:48.000000000 -0700
++++ glide64_0_7_ME.working/wrapper/main.h      2005-01-01 20:42:07.669225539 -0800
+@@ -5,7 +5,7 @@
+ #include <windows.h>\r
+ #endif // _WIN32\r
+ #include <GL/gl.h>\r
+-#include "glext.h"\r
++#include <GL/glext.h>\r
+ #include "glide.h"\r
+ \r
+ void display_warning(unsigned char *text, ...);\r
+@@ -15,12 +15,12 @@
+ void updateCombiner(int i);\r
+ void updateCombinera(int i);\r
+ \r
+-//#ifdef _WIN32\r
++#ifdef _WIN32\r
+ extern PFNGLACTIVETEXTUREARBPROC glActiveTextureARB;\r
+ extern PFNGLMULTITEXCOORD2FARBPROC glMultiTexCoord2fARB;\r
+ extern PFNGLBLENDFUNCSEPARATEEXTPROC glBlendFuncSeparateEXT;\r
+ extern PFNGLFOGCOORDFPROC glFogCoordfEXT;\r
+-//#endif // _WIN32\r
++#endif // _WIN32\r
+ extern int w_buffer_mode;\r
+ extern int nbTextureUnits;\r
+ extern int width, height, widtho, heighto;\r
diff --git a/games-emulation/mupen64-glide64/files/mupen64-glide64-0.7-gtk2.patch b/games-emulation/mupen64-glide64/files/mupen64-glide64-0.7-gtk2.patch
new file mode 100644 (file)
index 0000000..1939ac4
--- /dev/null
@@ -0,0 +1,27 @@
+--- glide64_0_7_ME/Config.cpp.old      2005-01-02 13:21:06.399041458 -0800
++++ glide64_0_7_ME/Config.cpp  2005-01-02 13:21:09.975475355 -0800
+@@ -594,7 +594,7 @@
+ static void okButtonCallback(GtkWidget *widget, void *data)\r
+ {\r
+    ConfigDialog *configDialog = (ConfigDialog*)data;\r
+-   char *s;\r
++   const gchar *s;\r
+    int i,n=0;\r
+    \r
+    s = gtk_entry_get_text(GTK_ENTRY(GTK_COMBO(configDialog->windowResCombo)->entry));\r
+--- glide64_0_7_ME/Makefile.old        2005-01-02 13:17:39.755824013 -0800
++++ glide64_0_7_ME/Makefile    2005-01-02 13:19:39.914670229 -0800
+@@ -1,11 +1,11 @@
+ CC = gcc
+ #CFLAGS = -DUSE_GTK `sdl-config --cflags` `gtk-config --cflags` -Iwrapper/ -g -mmmx -msse
+ #CFLAGS = -DUSE_GTK `sdl-config --cflags` `gtk-config --cflags` -Iwrapper/ -O3 -mcpu=athlon -ffast-math -funroll-loops -fomit-frame-pointer -msse -mmmx
+-CFLAGS = -DUSE_GTK -DGL_GLEXT_PROTOTYPES `sdl-config --cflags` `gtk-config --cflags` -Iwrapper/
++CFLAGS = -DUSE_GTK -DGL_GLEXT_PROTOTYPES `sdl-config --cflags` `pkg-config --cflags gtk+-2.0` -D_GTK2 -Iwrapper/
+ CXX = g++
+ CPPFLAGS = $(CFLAGS)
+ LD = g++
+-LDFLAGS = -lGL -lGLU -L/usr/X11R6/lib -lSDL
++LDFLAGS = -lGL -lGLU -L/usr/X11R6/lib -lSDL `pkg-config --libs gtk+-2.0`
+ 
+ OBJECTS = Main.o \
+       rdp.o \
diff --git a/games-emulation/mupen64-glide64/metadata.xml b/games-emulation/mupen64-glide64/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-glide64/mupen64-glide64-0.7.ebuild b/games-emulation/mupen64-glide64/mupen64-glide64-0.7.ebuild
new file mode 100644 (file)
index 0000000..568c5f6
--- /dev/null
@@ -0,0 +1,36 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/mupen64-glide64/mupen64-glide64-0.7.ebuild,v 1.1 2005/01/03 15:36:18 morfic Exp $
+
+inherit games
+
+DESCRIPTION="An opengl graphics plugin for the mupen64 N64 emulator"
+HOMEPAGE="http://mupen64.emulation64.com/"
+SRC_URI="mirror://gentoo/glide64_0_7_ME.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND=""
+
+S="${WORKDIR}/glide64_0_7_ME"
+
+src_compile() {
+       epatch ${FILESDIR}/${P}-compile.patch || die "patch failed"
+       use gtk2 && epatch ${FILESDIR}/${P}-gtk2.patch || die "patch failed"
+
+       make clean || die "couldn't clean"
+       sed -i -e "s:CFLAGS.*=\(.*\):CFLAGS=\1 ${CFLAGS}:" Makefile ||  \
+               die "couldn't apply cflags"
+       make || die "couldn't compile"
+}
+
+src_install() {
+       exeinto "${GAMES_LIBDIR}/mupen64/plugins"
+       doexe Glide64.so || die "doexe failed"
+       insinto "${GAMES_LIBDIR}/mupen64/plugins"
+       doins Glide64.ini
+       prepgamesdirs
+}