summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVlad Glagolev2018-11-09 12:22:23 -0800
committerVlad Glagolev2018-11-09 12:22:23 -0800
commitb1b520ebc43abca8e54871770c55fcb5f371edcc (patch)
treeb8b4ce9f1287a13ccd0f7f4d5ebb1ad41fe6e58d
parent54eaa66386f829795557675a77f2f7d558109876 (diff)
mupdf: corrected build for mupdf-gl
-rwxr-xr-xdoc/mupdf/BUILD4
-rwxr-xr-xdoc/mupdf/DEPENDS9
-rw-r--r--doc/mupdf/HISTORY3
3 files changed, 14 insertions, 2 deletions
diff --git a/doc/mupdf/BUILD b/doc/mupdf/BUILD
index f29510fe12..ca5aeac712 100755
--- a/doc/mupdf/BUILD
+++ b/doc/mupdf/BUILD
@@ -1 +1,5 @@
+if is_depends_enabled ${SPELL} $(get_spell_provider ${SPELL} OPENGL); then
+ LDFLAGS="-lglfw -lGL ${LDFLAGS}"
+fi &&
+
CFLAGS= LIBS= make XCFLAGS="$CFLAGS" XLIBS="$LDFLAGS" ${OPTS} build=release verbose=yes
diff --git a/doc/mupdf/DEPENDS b/doc/mupdf/DEPENDS
index 1738e926b8..fb685a9af1 100755
--- a/doc/mupdf/DEPENDS
+++ b/doc/mupdf/DEPENDS
@@ -17,7 +17,12 @@ optional_depends curl \
"HAVE_CURL=no" \
"for progressive loading support" &&
-optional_depends glfw \
+optional_depends OPENGL \
"HAVE_GLFW=yes" \
"HAVE_GLFW=no" \
- "for OpenGL-based viewer"
+ "for OpenGL-based viewer" &&
+
+if is_depends_enabled ${SPELL} $(get_spell_provider ${SPELL} OPENGL); then
+ depends GLUT &&
+ depends glfw
+fi
diff --git a/doc/mupdf/HISTORY b/doc/mupdf/HISTORY
index 52a76ea6aa..28773d0396 100644
--- a/doc/mupdf/HISTORY
+++ b/doc/mupdf/HISTORY
@@ -1,3 +1,6 @@
+2018-11-09 Vlad Glagolev <stealth@sourcemage.org>
+ * BUILD, DEPENDS: corrected build for mupdf-gl
+
2016-10-01 Vlad Glagolev <stealth@sourcemage.org>
* UP_TRIGGERS: added, to rebuild spells depending on mupdf static libs