mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-25 23:31:56 +00:00
GLEW Patch #66 - Fixups for pkg-config in MinGW build.
This commit is contained in:
parent
4e9fad1364
commit
f76628b5bd
15
Makefile
15
Makefile
@ -40,11 +40,16 @@ else
|
|||||||
$(error "Platform '$(SYSTEM)' not supported")
|
$(error "Platform '$(SYSTEM)' not supported")
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
GLEW_PREFIX ?= /usr
|
||||||
GLEW_DEST ?= /usr
|
GLEW_DEST ?= /usr
|
||||||
BINDIR ?= $(GLEW_DEST)/bin
|
BINDIR ?= $(GLEW_DEST)/bin
|
||||||
LIBDIR ?= $(GLEW_DEST)/lib
|
LIBDIR ?= $(GLEW_DEST)/lib
|
||||||
INCDIR ?= $(GLEW_DEST)/include/GL
|
INCDIR ?= $(GLEW_DEST)/include/GL
|
||||||
|
|
||||||
|
ifneq ($(GLEW_NO_GLU), -DGLEW_NO_GLU)
|
||||||
|
LIBGLU = glu
|
||||||
|
endif
|
||||||
|
|
||||||
DIST_NAME ?= glew-$(GLEW_VERSION)
|
DIST_NAME ?= glew-$(GLEW_VERSION)
|
||||||
DIST_SRC_ZIP ?= $(shell pwd)/$(DIST_NAME).zip
|
DIST_SRC_ZIP ?= $(shell pwd)/$(DIST_NAME).zip
|
||||||
DIST_SRC_TGZ ?= $(shell pwd)/$(DIST_NAME).tgz
|
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
|
glew.pc: glew.pc.in
|
||||||
sed \
|
sed \
|
||||||
-e "s|@prefix@|$(GLEW_DEST)|g" \
|
-e "s|@prefix@|$(GLEW_PREFIX)|g" \
|
||||||
-e "s|@libdir@|$(LIBDIR)|g" \
|
-e "s|@libdir@|$(LIBDIR)|g" \
|
||||||
-e "s|@exec_prefix@|$(BINDIR)|g" \
|
-e "s|@exec_prefix@|$(BINDIR)|g" \
|
||||||
-e "s|@includedir@|$(INCDIR)|g" \
|
-e "s|@includedir@|$(INCDIR)|g" \
|
||||||
-e "s|@version@|$(GLEW_VERSION)|g" \
|
-e "s|@version@|$(GLEW_VERSION)|g" \
|
||||||
-e "s|@cflags@||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
|
# 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
|
glewmx.pc: glew.pc.in
|
||||||
sed \
|
sed \
|
||||||
-e "s|@prefix@|$(GLEW_DEST)|g" \
|
-e "s|@prefix@|$(GLEW_PREFIX)|g" \
|
||||||
-e "s|@libdir@|$(LIBDIR)|g" \
|
-e "s|@libdir@|$(LIBDIR)|g" \
|
||||||
-e "s|@exec_prefix@|$(BINDIR)|g" \
|
-e "s|@exec_prefix@|$(BINDIR)|g" \
|
||||||
-e "s|@includedir@|$(INCDIR)|g" \
|
-e "s|@includedir@|$(INCDIR)|g" \
|
||||||
-e "s|@version@|$(GLEW_VERSION)|g" \
|
-e "s|@version@|$(GLEW_VERSION)|g" \
|
||||||
-e "s|@cflags@|-DGLEW_MX|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 utility programs
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
prefix=@prefix@
|
prefix=@prefix@
|
||||||
exec_prefix=@exec_prefix@
|
exec_prefix=${prefix}
|
||||||
libdir=@libdir@
|
libdir=${exec_prefix}/lib
|
||||||
includedir=@includedir@
|
includedir=${prefix}/include/GL
|
||||||
|
|
||||||
Name: glew
|
Name: glew
|
||||||
Description: The OpenGL Extension Wrangler library
|
Description: The OpenGL Extension Wrangler library
|
||||||
Version: @version@
|
Version: @version@
|
||||||
Cflags: -I${includedir} @cflags@
|
Cflags: -I${includedir} @cflags@
|
||||||
Libs: -L${libdir} -l@libname@
|
Libs: -L${libdir} -l@libname@
|
||||||
Requires: glu
|
Requires: @requireslib@
|
||||||
|
Loading…
Reference in New Issue
Block a user