diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-fps/tenebrae/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-fps/tenebrae/files')
-rw-r--r-- | games-fps/tenebrae/files/1.04-glhax.patch | 32 | ||||
-rw-r--r-- | games-fps/tenebrae/files/tenebrae-1.04-exec-stack.patch | 36 | ||||
-rw-r--r-- | games-fps/tenebrae/files/tenebrae-1.04-redef.patch | 19 |
3 files changed, 87 insertions, 0 deletions
diff --git a/games-fps/tenebrae/files/1.04-glhax.patch b/games-fps/tenebrae/files/1.04-glhax.patch new file mode 100644 index 000000000000..a185d8e10c7d --- /dev/null +++ b/games-fps/tenebrae/files/1.04-glhax.patch @@ -0,0 +1,32 @@ +--- tenebrae_0/glquake.h 2004-12-25 00:28:28.707288592 -0500 ++++ tenebrae_0/glquake.h 2004-12-25 00:27:35.000000000 -0500 +@@ -34,6 +34,7 @@ + #else + #include <GL/gl.h> + #include <GL/glu.h> ++#include <GL/glext.h> + #endif /* __APPLE__ ||ÊMACOSX */ + + /* use the correct dynamic function address binder */ +@@ -420,8 +421,10 @@ + void GL_Bind (int texnum); + + #ifndef _WIN32 ++#ifndef APIENTRY + #define APIENTRY /* */ + #endif ++#endif + + #if !defined (__APPLE__) && !defined (MACOSX) + +@@ -1134,8 +1137,10 @@ + // <AWE> There are some diffs with the function parameters. wgl stuff not present with MacOS X. -DC- and SDL + #if defined (__APPLE__) || defined (MACOSX) || defined(SDL) || defined (__glx__) + ++#ifndef GL_APPLE_vertex_array_range + typedef void (APIENTRY * PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, const GLvoid *pointer); + typedef void (APIENTRY * PFNGLVERTEXARRAYRANGEAPPLEPROC) (GLsizei size, const GLvoid *pointer); ++#endif + + extern PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC qglFlushVertexArrayRangeAPPLE; + extern PFNGLVERTEXARRAYRANGEAPPLEPROC qglVertexArrayRangeAPPLE; diff --git a/games-fps/tenebrae/files/tenebrae-1.04-exec-stack.patch b/games-fps/tenebrae/files/tenebrae-1.04-exec-stack.patch new file mode 100644 index 000000000000..abc8bd4a2b87 --- /dev/null +++ b/games-fps/tenebrae/files/tenebrae-1.04-exec-stack.patch @@ -0,0 +1,36 @@ +--- a/math.s ++++ b/math.s +@@ -416,3 +416,6 @@ + call C(BOPS_Error) + + #endif // id386 ++#if defined(__linux__) && defined(__ELF__) ++.section .note.GNU-stack,"",%progbits ++#endif +--- a/snd_mixa.s ++++ b/snd_mixa.s +@@ -216,3 +216,6 @@ + + #endif // id386 + ++#if defined(__linux__) && defined(__ELF__) ++.section .note.GNU-stack,"",%progbits ++#endif +--- a/sys_dosa.s ++++ b/sys_dosa.s +@@ -93,3 +93,6 @@ + + ret + ++#if defined(__linux__) && defined(__ELF__) ++.section .note.GNU-stack,"",%progbits ++#endif +--- a/worlda.s ++++ b/worlda.s +@@ -142,3 +142,6 @@ + + #endif // id386 + ++#if defined(__linux__) && defined(__ELF__) ++.section .note.GNU-stack,"",%progbits ++#endif diff --git a/games-fps/tenebrae/files/tenebrae-1.04-redef.patch b/games-fps/tenebrae/files/tenebrae-1.04-redef.patch new file mode 100644 index 000000000000..8bd89aa18e6f --- /dev/null +++ b/games-fps/tenebrae/files/tenebrae-1.04-redef.patch @@ -0,0 +1,19 @@ +--- a/sys_dosa.s 2017-09-06 16:41:31.875358788 -0500 ++++ b/sys_dosa.s 2017-09-06 16:41:35.947376646 -0500 +@@ -44,6 +44,8 @@ + + .text + ++// Falls back to an empty stub on non-i386, in sys_linux.c ++#if id386 + .globl C(Sys_LowFPPrecision) + C(Sys_LowFPPrecision): + fldcw single_cw +@@ -55,6 +57,7 @@ + fldcw full_cw + + ret ++#endif + + .globl C(Sys_PushFPCW_SetHigh) + C(Sys_PushFPCW_SetHigh): |