From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- .../files/foobillard-3.0a-as-needed.patch | 10 ++++++++ .../foobillard/files/foobillard-3.0a-fbsd.patch | 29 ++++++++++++++++++++++ .../files/foobillard-3.0a-gl-clamp.patch | 14 +++++++++++ .../files/foobillard-3.0a-no_nvidia.patch | 18 ++++++++++++++ 4 files changed, 71 insertions(+) create mode 100644 games-sports/foobillard/files/foobillard-3.0a-as-needed.patch create mode 100644 games-sports/foobillard/files/foobillard-3.0a-fbsd.patch create mode 100644 games-sports/foobillard/files/foobillard-3.0a-gl-clamp.patch create mode 100644 games-sports/foobillard/files/foobillard-3.0a-no_nvidia.patch (limited to 'games-sports/foobillard/files') diff --git a/games-sports/foobillard/files/foobillard-3.0a-as-needed.patch b/games-sports/foobillard/files/foobillard-3.0a-as-needed.patch new file mode 100644 index 000000000000..1d9ddbd8b729 --- /dev/null +++ b/games-sports/foobillard/files/foobillard-3.0a-as-needed.patch @@ -0,0 +1,10 @@ +--- foobillard-3.0a.old/src/Makefile.am 2004-02-25 07:23:56.000000000 +0100 ++++ foobillard-3.0a/src/Makefile.am 2008-12-06 21:57:03.000000000 +0100 +@@ -83,6 +83,5 @@ AM_CFLAGS = -Wall `freetype-config --cfl + + #LIBS = -L$(LIBDIR) -lglut -lGLU -lGL -lXext -lXaw -lm -lXi -lpng -lz + #LIBS = -L$(LIBDIR) -lglut -lGLU -lGL -lXext -lXaw -lm -lXi -lpng -lz +-AM_LDFLAGS = ${all_libraries} `freetype-config --libs` ${SDL_LIBS} ${GLUT_LIBS} + #LDADD = ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS} -lGL -lGLU -lXaw -lm -lXi -lpng -lz -L/home/floh/nvsdk/OpenGL/lib/ -lnvparse +-LDADD = ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS} -lGL -lGLU -lXaw -lm -lXi -lpng -lz ++LIBS = ${all_libraries} `freetype-config --libs` ${SDL_LIBS} ${GLUT_LIBS} ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS} -lGL -lGLU -lXaw -lm -lXi -lpng -lz diff --git a/games-sports/foobillard/files/foobillard-3.0a-fbsd.patch b/games-sports/foobillard/files/foobillard-3.0a-fbsd.patch new file mode 100644 index 000000000000..301260cb8360 --- /dev/null +++ b/games-sports/foobillard/files/foobillard-3.0a-fbsd.patch @@ -0,0 +1,29 @@ +Index: foobillard-3.0a/configure.in +=================================================================== +--- foobillard-3.0a.orig/configure.in ++++ foobillard-3.0a/configure.in +@@ -13,7 +13,7 @@ dnl Checks for libraries. + + dnl Checks for header files. + AC_HEADER_STDC +-AC_CHECK_HEADERS(limits.h unistd.h math.h stdlib.h stdio.h ft2build.h) ++AC_CHECK_HEADERS(limits.h unistd.h math.h stdlib.h stdio.h ft2build.h endian.h sys/endian.h) + + dnl Checks for typedefs, structures, and compiler characteristics. + AC_C_CONST +Index: foobillard-3.0a/src/billard3d.c +=================================================================== +--- foobillard-3.0a.orig/src/billard3d.c ++++ foobillard-3.0a/src/billard3d.c +@@ -24,7 +24,11 @@ + #include + #include + #include ++#ifdef HAVE_ENDIAN_H + #include ++#elif defined(HAVE_SYS_ENDIAN_H) ++#include ++#endif + + #ifndef USE_SDL + #include diff --git a/games-sports/foobillard/files/foobillard-3.0a-gl-clamp.patch b/games-sports/foobillard/files/foobillard-3.0a-gl-clamp.patch new file mode 100644 index 000000000000..972d14cabb0a --- /dev/null +++ b/games-sports/foobillard/files/foobillard-3.0a-gl-clamp.patch @@ -0,0 +1,14 @@ +diff -ur foobillard-3.0a/src/table.c foobillard-3.0a-glclamp/src/table.c +--- foobillard-3.0a/src/table.c 2004-01-11 21:53:02.000000000 +0000 ++++ foobillard-3.0a-glclamp/src/table.c 2011-02-21 09:14:36.000000000 +0000 +@@ -1214,8 +1214,8 @@ + GL_UNSIGNED_BYTE, tabletexdata); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, options_tex_min_filter); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, options_tex_mag_filter); +- glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP); +- glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP); ++ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); ++ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); + free( tabletexdata ); + } else { + tabletexbind=0; diff --git a/games-sports/foobillard/files/foobillard-3.0a-no_nvidia.patch b/games-sports/foobillard/files/foobillard-3.0a-no_nvidia.patch new file mode 100644 index 000000000000..b43707bc403b --- /dev/null +++ b/games-sports/foobillard/files/foobillard-3.0a-no_nvidia.patch @@ -0,0 +1,18 @@ +--- src/ball.c.orig 2004-06-02 07:00:57.000000000 -0400 ++++ src/ball.c 2004-06-02 07:03:52.000000000 -0400 +@@ -1821,6 +1821,7 @@ + } else if( options_cuberef && cuberef_binds!=0 ){ + glBindTexture(GL_TEXTURE_CUBE_MAP_ARB, cuberef_binds[i]); + #ifdef GL_VERTEX_PROGRAM_NV ++#ifdef USE_BALL_FRESNEL + { + myvec cam_pos2; + // cam_pos2=vec_scale(vec_unit(vec_diff(cam_pos,balls.ball[i].r)),BALL_D/2.5); +@@ -1829,6 +1830,7 @@ + BALL_D/2.0,BALL_D/2.5,0,0 ); + } + #endif ++#endif + draw_ball(&balls.ball[i],cam_pos,cam_FOV,win_width,0); + }else{ + draw_ball(&balls.ball[i],cam_pos,cam_FOV,win_width,0); -- cgit v1.2.3