From bbf526ae0673da2313e9c91c7b6aa91598b00a85 Mon Sep 17 00:00:00 2001 From: sem Date: Wed, 18 Jan 2006 17:20:18 +0000 Subject: - Fix undefined symbol errors when including glut.h just after glew.h in applications which depends on both of them. - Bumped PORTREVISION. PR: ports/91944 Submitted by: maintainer --- graphics/glew/Makefile | 1 + graphics/glew/files/patch-include_GL_glew.h | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 graphics/glew/files/patch-include_GL_glew.h (limited to 'graphics') diff --git a/graphics/glew/Makefile b/graphics/glew/Makefile index 332e83e..fcb4afb 100644 --- a/graphics/glew/Makefile +++ b/graphics/glew/Makefile @@ -7,6 +7,7 @@ PORTNAME= glew PORTVERSION= 1.3.3 +PORTREVISION= 1 CATEGORIES= graphics MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/graphics/glew/files/patch-include_GL_glew.h b/graphics/glew/files/patch-include_GL_glew.h new file mode 100644 index 0000000..3782f61 --- /dev/null +++ b/graphics/glew/files/patch-include_GL_glew.h @@ -0,0 +1,13 @@ +--- include/GL/glew.h.orig ++++ include/GL/glew.h +@@ -9647,7 +9647,9 @@ + #ifdef GLEW_APIENTRY_DEFINED + #undef GLEW_APIENTRY_DEFINED + #undef APIENTRY +-#undef GLAPIENTRY ++/* Do not undef GLAPIENTRY here. This is a quick hack to avoid ++ undefined symbols when including glut.h just after glew.h */ ++/* #undef GLAPIENTRY */ + #endif + + #ifdef GLEW_CALLBACK_DEFINED -- cgit v1.1