games/cave9: fix build on GCC architectures

In file included from display.c:19:
/usr/local/include/SDL/SDL_opengl.h:116:1: error: "GL_GLEXT_VERSION" redefined
In file included from /usr/local/include/GL/gl.h:2050,
                 from /usr/local/include/SDL/SDL_opengl.h:46,
                 from display.c:19:
/usr/local/include/GL/glext.h:54:1: error: this is the location of the previous definition
This commit is contained in:
Piotr Kubaj 2020-11-15 22:18:56 +00:00
parent 8d19be409b
commit da4d61d214
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=555436
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ USE_GITHUB= yes
GH_ACCOUNT= bart9h
GH_TAGNAME= e6896eb
USES= gl gmake sdl
USES= compiler:c++11-lang gl gmake sdl
USE_SDL= sdl ttf image
USE_GL= gl glu

View File

@ -6,7 +6,7 @@
-CFLAGS += -std=c99 -Wall -Werror -ggdb `sdl-config --cflags`
-LDFLAGS += -lSDL_ttf -lSDL_image `sdl-config --libs` -L/usr/X11/lib -lGL -lGLU -lm
+CFLAGS += -std=c99 -Wall -Werror -isystem ${LOCALBASE}/include `sdl-config --cflags`
+CFLAGS += -std=c99 -Wall -isystem ${LOCALBASE}/include `sdl-config --cflags`
+LDFLAGS += -lSDL_ttf -lSDL_image -L${LOCALBASE}/lib `sdl-config --libs` -lGL -lGLU -lm
ifdef GLOBAL_SCORE