Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Nov 2020 22:18:56 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r555436 - in head/games/cave9: . files
Message-ID:  <202011152218.0AFMIu4S086947@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Sun Nov 15 22:18:56 2020
New Revision: 555436
URL: https://svnweb.freebsd.org/changeset/ports/555436

Log:
  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

Modified:
  head/games/cave9/Makefile
  head/games/cave9/files/patch-src_GNUmakefile

Modified: head/games/cave9/Makefile
==============================================================================
--- head/games/cave9/Makefile	Sun Nov 15 21:49:36 2020	(r555435)
+++ head/games/cave9/Makefile	Sun Nov 15 22:18:56 2020	(r555436)
@@ -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
 

Modified: head/games/cave9/files/patch-src_GNUmakefile
==============================================================================
--- head/games/cave9/files/patch-src_GNUmakefile	Sun Nov 15 21:49:36 2020	(r555435)
+++ head/games/cave9/files/patch-src_GNUmakefile	Sun Nov 15 22:18:56 2020	(r555436)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202011152218.0AFMIu4S086947>