summaryrefslogtreecommitdiff
path: root/Makethird
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-11-13 12:45:50 +0100
committerTor Andersson <tor.andersson@artifex.com>2017-11-13 17:05:16 +0100
commit65be3177c793bb132c36f3e6bb87c3a6947be4e0 (patch)
tree70bc8256fd4de46b912e432932d5dc807c5b4dc8 /Makethird
parentaf95ed2a3402ecf65ff744b45c3053bc811d4ada (diff)
downloadmupdf-65be3177c793bb132c36f3e6bb87c3a6947be4e0.tar.xz
gl: Fix GLUT build on MacOS X.
Diffstat (limited to 'Makethird')
-rw-r--r--Makethird7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makethird b/Makethird
index f83be6cc..38d6d7cf 100644
--- a/Makethird
+++ b/Makethird
@@ -663,6 +663,11 @@ endif
ifneq "$(wildcard $(GLUT_DIR)/README)" ""
+ifeq "$(OS)" "MACOS"
+GLUT_CFLAGS := $(SYS_GLUT_CFLAGS)
+GLUT_LIBS := $(SYS_GLUT_LIBS)
+else
+
HAVE_GLUT := yes
GLUT_LIB := $(OUT)/libfreeglut.a
@@ -727,6 +732,8 @@ $(GLUT_OUT)/%.o: $(GLUT_DIR)/src/x11/%.c | $(GLUT_OUT)
GLUT_CFLAGS := -I$(GLUT_DIR)/include
GLUT_LIBS := -lGL -lX11 -lXrandr
+
+endif
else
GLUT_CFLAGS := $(SYS_GLUT_CFLAGS)
GLUT_LIBS := $(SYS_GLUT_LIBS)