svn commit: r518713 - head/graphics/glew-wayland

Jan Beich jbeich at FreeBSD.org
Sat Nov 30 09:06:23 UTC 2019


Author: jbeich
Date: Sat Nov 30 09:06:22 2019
New Revision: 518713
URL: https://svnweb.freebsd.org/changeset/ports/518713

Log:
  graphics/glew-wayland: unbreak on GCC architectures
  
  In file included from src/glew.c:43:
  include/GL/eglew.h:115: error: redefinition of typedef 'EGLint'
  /usr/local/include/EGL/eglplatform.h:158: error: previous declaration of 'EGLint' was here
  
  $ gcc42 -xc -c -
  typedef int foo;
  typedef int foo;
  ^D
  <stdin>:2: error: redefinition of typedef 'foo'
  <stdin>:1: error: previous declaration of 'foo' was here
  
  PR:		242310
  Reported by:	pkubaj

Modified:
  head/graphics/glew-wayland/Makefile   (contents, props changed)

Modified: head/graphics/glew-wayland/Makefile
==============================================================================
--- head/graphics/glew-wayland/Makefile	Sat Nov 30 09:03:54 2019	(r518712)
+++ head/graphics/glew-wayland/Makefile	Sat Nov 30 09:06:22 2019	(r518713)
@@ -22,5 +22,7 @@ slave-post-patch:
 	@${REINPLACE_CMD} 's/Makefile.$$(SYSTEM)/&-egl/' ${WRKSRC}/Makefile
 	@${SED} 's/linux/${OPSYS:tl}/' ${WRKSRC}/config/Makefile.linux-egl \
 		>${WRKSRC}/config/Makefile.${OPSYS:tl}-egl
+# GCC 4.2 doesn't support redefining same typedef
+	@${REINPLACE_CMD} '/typedef.*EGLint;/d' ${WRKSRC}/include/GL/eglew.h
 
 .include "${MASTERDIR}/Makefile"


More information about the svn-ports-head mailing list