aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/glew
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2006-01-19 01:20:18 +0800
committersem <sem@FreeBSD.org>2006-01-19 01:20:18 +0800
commitbbf526ae0673da2313e9c91c7b6aa91598b00a85 (patch)
tree1c596831a0daf0ef56ec7ee1ad28e37c8333bf17 /graphics/glew
parent11c139c28cf0e6bd2687d46831d977bc72835016 (diff)
downloadfreebsd-ports-gnome-bbf526ae0673da2313e9c91c7b6aa91598b00a85.tar.gz
freebsd-ports-gnome-bbf526ae0673da2313e9c91c7b6aa91598b00a85.tar.zst
freebsd-ports-gnome-bbf526ae0673da2313e9c91c7b6aa91598b00a85.zip
- 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/glew')
-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 332e83e4fd05..fcb4afb5de89 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 000000000000..3782f61049e8
--- /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