summaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-09-26 23:45:31 +0200
committerTor Andersson <tor.andersson@artifex.com>2017-11-08 17:57:09 +0100
commit896830e23e8f94b17bdf386c191a885c972ea8a8 (patch)
tree061feda4707c8cc989df39e2440550a6ca1a2f7d /Makerules
parent94a5846502cd1f05ec4127872ef06dcd8606f34b (diff)
downloadmupdf-896830e23e8f94b17bdf386c191a885c972ea8a8.tar.xz
gl: Remove GLFW and reinstate FreeGLUT.
GLFW doesn't build on Visual Studio 2005 anymore, and I don't have time to keep up with the changes. So, we're switching back to FreeGLUT, which is more stable. I've added the two missing features that made us switch to GLFW in the first place: input methods and system clipboard support. If MuPDF is compiled with our version of FreeGLUT, we now use these functions: * glutKeyboardExtFunc * glutSetClipboard * glutGetClipboard
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makerules b/Makerules
index 56ba6ef4..41624178 100644
--- a/Makerules
+++ b/Makerules
@@ -114,6 +114,10 @@ HAVE_PTHREAD := yes
SYS_PTHREAD_CFLAGS :=
SYS_PTHREAD_LIBS := -lpthread
+HAVE_GLUT := yes
+SYS_GLUT_CFLAGS :=
+SYS_GLUT_LIBS := -lglut -lGL
+
ifeq "$(shell pkg-config --exists 'libcrypto <= 1.0.1t' && echo yes)" "yes"
HAVE_LIBCRYPTO := yes
SYS_LIBCRYPTO_CFLAGS := -DHAVE_LIBCRYPTO $(shell pkg-config --cflags libcrypto)
@@ -280,5 +284,5 @@ endif
# TODO: If crosscompiling, why not just call "make libs" instead of this exception?
ifeq "$(CROSSCOMPILE)" "yes"
HAVE_X11 ?= no
-HAVE_GLFW ?= no
+HAVE_GLUT ?= no
endif