aboutsummaryrefslogtreecommitdiff
path: root/emulators/mupen64-glide/files
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/mupen64-glide/files')
-rw-r--r--emulators/mupen64-glide/files/extra-patch-main.cpp41
-rw-r--r--emulators/mupen64-glide/files/extra-patch-main.h13
-rw-r--r--emulators/mupen64-glide/files/patch-Makefile19
-rw-r--r--emulators/mupen64-glide/files/patch-glidesys.h11
4 files changed, 84 insertions, 0 deletions
diff --git a/emulators/mupen64-glide/files/extra-patch-main.cpp b/emulators/mupen64-glide/files/extra-patch-main.cpp
new file mode 100644
index 000000000000..6cb9dc93c9b5
--- /dev/null
+++ b/emulators/mupen64-glide/files/extra-patch-main.cpp
@@ -0,0 +1,41 @@
+--- wrapper/main.cpp.orig Fri Jul 2 21:57:48 2004
++++ wrapper/main.cpp Fri Aug 13 21:21:15 2004
+@@ -3,7 +3,7 @@
+ #include <stdarg.h>
+ #include <string.h>
+ #include <unistd.h>
+-#include <SDL/SDL.h>
++#include <SDL.h>
+ #endif // _WIN32
+ #include "glide.h"
+ #include <stdlib.h>
+@@ -20,9 +20,13 @@
+ #endif // _WIN32
+
+
++#ifndef __FreeBSD__
+ PFNGLACTIVETEXTUREARBPROC glActiveTextureARB;
++#endif
+ PFNGLBLENDFUNCSEPARATEEXTPROC glBlendFuncSeparateEXT;
++#ifndef __FreeBSD__
+ PFNGLMULTITEXCOORD2FARBPROC glMultiTexCoord2fARB;
++#endif
+ PFNGLFOGCOORDFPROC glFogCoordfEXT;
+ #ifdef _WIN32
+ PFNWGLGETEXTENSIONSSTRINGARBPROC wglGetExtensionsStringARB;
+@@ -501,6 +505,7 @@
+ if (isExtensionSupported("GL_ARB_texture_mirrored_repeat") == FALSE)
+ display_warning((unsigned char*)"Your video card doesn't support GL_ARB_texture_mirrored_repeat extension");
+
++#ifndef __FreeBSD__
+ #ifdef _WIN32
+ glActiveTextureARB = (PFNGLACTIVETEXTUREARBPROC)wglGetProcAddress("glActiveTextureARB");
+ glMultiTexCoord2fARB = (PFNGLMULTITEXCOORD2FARBPROC)wglGetProcAddress("glMultiTexCoord2fARB");
+@@ -508,6 +513,7 @@
+ glActiveTextureARB = (PFNGLACTIVETEXTUREARBPROC)SDL_GL_GetProcAddress("glActiveTextureARB");
+ glMultiTexCoord2fARB = (PFNGLMULTITEXCOORD2FARBPROC)SDL_GL_GetProcAddress("glMultiTexCoord2fARB");
+ #endif // _WIN32
++#endif
+ glGetIntegerv(GL_MAX_TEXTURE_UNITS_ARB, &nbTextureUnits);
+ if (nbTextureUnits == 1) display_warning((unsigned char*)"You need a video card that has at least 2 texture units");
+
diff --git a/emulators/mupen64-glide/files/extra-patch-main.h b/emulators/mupen64-glide/files/extra-patch-main.h
new file mode 100644
index 000000000000..aefbaa4f1fd0
--- /dev/null
+++ b/emulators/mupen64-glide/files/extra-patch-main.h
@@ -0,0 +1,13 @@
+--- wrapper/main.h.orig Sun Jun 20 21:08:48 2004
++++ wrapper/main.h Fri Aug 13 21:17:22 2004
+@@ -16,8 +16,10 @@
+ void updateCombinera(int i);
+
+ //#ifdef _WIN32
++#ifndef __FreeBSD__
+ extern PFNGLACTIVETEXTUREARBPROC glActiveTextureARB;
+ extern PFNGLMULTITEXCOORD2FARBPROC glMultiTexCoord2fARB;
++#endif
+ extern PFNGLBLENDFUNCSEPARATEEXTPROC glBlendFuncSeparateEXT;
+ extern PFNGLFOGCOORDFPROC glFogCoordfEXT;
+ //#endif // _WIN32
diff --git a/emulators/mupen64-glide/files/patch-Makefile b/emulators/mupen64-glide/files/patch-Makefile
new file mode 100644
index 000000000000..8e1dffb0fbec
--- /dev/null
+++ b/emulators/mupen64-glide/files/patch-Makefile
@@ -0,0 +1,19 @@
+--- Makefile.orig Sat Jul 3 23:07:06 2004
++++ Makefile Thu Aug 12 17:06:38 2004
+@@ -1,11 +1,11 @@
+-CC = gcc
++#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
+-CXX = g++
++#CFLAGS = -DUSE_GTK `sdl-config --cflags` `gtk-config --cflags` -Iwrapper/ -O3 -mcpu=athlon -ffast-math -funroll-loops -fomit-frame-pointer -msse -mmmx
++#CXX = g++
+ CPPFLAGS = $(CFLAGS)
+-LD = g++
+-LDFLAGS = -lGL -lGLU -L/usr/X11R6/lib -lSDL
++#LD = g++
++#LDFLAGS = -lGL -lGLU -L/usr/X11R6/lib -lSDL
+
+ OBJECTS = Main.o \
+ rdp.o \
diff --git a/emulators/mupen64-glide/files/patch-glidesys.h b/emulators/mupen64-glide/files/patch-glidesys.h
new file mode 100644
index 000000000000..27fe0cdb5d31
--- /dev/null
+++ b/emulators/mupen64-glide/files/patch-glidesys.h
@@ -0,0 +1,11 @@
+--- wrapper/glidesys.h.orig Sun Jun 13 23:58:12 2004
++++ wrapper/glidesys.h Thu Aug 12 17:14:11 2004
+@@ -96,7 +96,7 @@
+ #endif
+
+ /* Check for OS */
+-#if defined(__IRIX__) || defined(__sparc__) || defined(__linux__)
++#if defined(__IRIX__) || defined(__sparc__) || defined(__linux__) || defined(__FreeBSD__)
+ # define GLIDE_OS GLIDE_OS_UNIX
+ #elif defined(__DOS__)
+ # define GLIDE_OS GLIDE_OS_DOS32