Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Maik Froechtenicht
glew
Commits
f76628b5
Commit
f76628b5
authored
Jul 13, 2014
by
Nigel Stewart
Browse files
GLEW Patch #66 - Fixups for pkg-config in MinGW build.
parent
4e9fad13
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
f76628b5
...
...
@@ -40,11 +40,16 @@ else
$(error
"Platform '$(SYSTEM)' not supported"
)
endif
GLEW_PREFIX
?=
/usr
GLEW_DEST
?=
/usr
BINDIR
?=
$(GLEW_DEST)
/bin
LIBDIR
?=
$(GLEW_DEST)
/lib
INCDIR
?=
$(GLEW_DEST)
/include/GL
ifneq
($(GLEW_NO_GLU), -DGLEW_NO_GLU)
LIBGLU
=
glu
endif
DIST_NAME
?=
glew-
$(GLEW_VERSION)
DIST_SRC_ZIP
?=
$(
shell
pwd
)
/
$(DIST_NAME)
.zip
DIST_SRC_TGZ
?=
$(
shell
pwd
)
/
$(DIST_NAME)
.tgz
...
...
@@ -128,13 +133,14 @@ tmp/$(SYSTEM)/default/shared/glew.o: src/glew.c include/GL/glew.h include/GL/wgl
glew.pc
:
glew.pc.in
sed
\
-e
"s|@prefix@|
$(GLEW_
DEST
)
|g"
\
-e
"s|@prefix@|
$(GLEW_
PREFIX
)
|g"
\
-e
"s|@libdir@|
$(LIBDIR)
|g"
\
-e
"s|@exec_prefix@|
$(BINDIR)
|g"
\
-e
"s|@includedir@|
$(INCDIR)
|g"
\
-e
"s|@version@|
$(GLEW_VERSION)
|g"
\
-e
"s|@cflags@||g"
\
-e
"s|@libname@|GLEW|g"
\
-e
"s|@libname@|
$(NAME)
|g"
\
-e
"s|@requireslib@|
$(LIBGLU)
|g"
\
<
$<
>
$@
# GLEW MX static and shared libraries
...
...
@@ -168,13 +174,14 @@ tmp/$(SYSTEM)/mx/shared/glew.o: src/glew.c include/GL/glew.h include/GL/wglew.h
glewmx.pc
:
glew.pc.in
sed
\
-e
"s|@prefix@|
$(GLEW_
DEST
)
|g"
\
-e
"s|@prefix@|
$(GLEW_
PREFIX
)
|g"
\
-e
"s|@libdir@|
$(LIBDIR)
|g"
\
-e
"s|@exec_prefix@|
$(BINDIR)
|g"
\
-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@|
$(NAME)
mx|g"
\
-e
"s|@requireslib@|
$(LIBGLU)
|g"
\
<
$<
>
$@
# GLEW utility programs
...
...
glew.pc.in
View file @
f76628b5
prefix=@prefix@
exec_prefix=
@exec_
prefix
@
libdir=
@libdir@
includedir=
@
include
dir@
exec_prefix=
${
prefix
}
libdir=
${exec_prefix}/lib
includedir=
${prefix}/
include
/GL
Name: glew
Description: The OpenGL Extension Wrangler library
Version: @version@
Cflags: -I${includedir} @cflags@
Libs: -L${libdir} -l@libname@
Requires:
glu
Requires:
@requireslib@
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment