Skip to content

Instantly share code, notes, and snippets.

@nddrylliog
Last active December 21, 2015 18:39
Show Gist options
  • Save nddrylliog/6349138 to your computer and use it in GitHub Desktop.
Save nddrylliog/6349138 to your computer and use it in GitHub Desktop.
glew diff for Win32
diff --git a/Makefile b/Makefile
index e6f08a7..a3fd901 100644
--- a/Makefile
+++ b/Makefile
@@ -134,7 +134,7 @@ glew.pc: glew.pc.in
-e "s|@includedir@|$(INCDIR)|g" \
-e "s|@version@|$(GLEW_VERSION)|g" \
-e "s|@cflags@||g" \
- -e "s|@libname@|GLEW|g" \
+ -e "s|@libname@|glew32|g" \
< $< > $@
# GLEW MX static and shared libraries
@@ -174,7 +174,7 @@ glewmx.pc: glew.pc.in
-e "s|@includedir@|$(INCDIR)|g" \
-e "s|@version@|$(GLEW_VERSION)|g" \
-e "s|@cflags@|-DGLEW_MX|g" \
- -e "s|@libname@|GLEWmx|g" \
+ -e "s|@libname@|glewmx32|g" \
< $< > $@
# GLEW utility programs
diff --git a/glew.pc.in b/glew.pc.in
index 4c934af..10e946f 100644
--- a/glew.pc.in
+++ b/glew.pc.in
@@ -8,4 +8,3 @@ Description: The OpenGL Extension Wrangler library
Version: @version@
Cflags: -I${includedir} @cflags@
Libs: -L${libdir} -l@libname@
-Requires: glu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment