summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2006-01-18 17:20:18 +0000
committersem <sem@FreeBSD.org>2006-01-18 17:20:18 +0000
commitbbf526ae0673da2313e9c91c7b6aa91598b00a85 (patch)
tree1c596831a0daf0ef56ec7ee1ad28e37c8333bf17 /graphics
parent11c139c28cf0e6bd2687d46831d977bc72835016 (diff)
downloadFreeBSD-ports-bbf526ae0673da2313e9c91c7b6aa91598b00a85.zip
FreeBSD-ports-bbf526ae0673da2313e9c91c7b6aa91598b00a85.tar.gz
- 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
Diffstat (limited to 'graphics')
-rw-r--r--graphics/glew/Makefile1
-rw-r--r--graphics/glew/files/patch-include_GL_glew.h13
2 files changed, 14 insertions, 0 deletions
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
OpenPOWER on IntegriCloud