summaryrefslogtreecommitdiff
path: root/office/mupdf
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2017-06-21 01:00:25 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-06-24 08:32:48 +0700
commitb2efd65c0f8ba701718b8827b881f8d2da158e52 (patch)
tree51cfa8d70954cec735006260ed0b1a8a9663d584 /office/mupdf
parent064014d18ee7dbb63a822f2758df32d08f21fd0a (diff)
downloadslackbuilds-b2efd65c0f8ba701718b8827b881f8d2da158e52.tar.gz
office/mupdf: Fix build for -current.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'office/mupdf')
-rw-r--r--office/mupdf/mupdf.SlackBuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/office/mupdf/mupdf.SlackBuild b/office/mupdf/mupdf.SlackBuild
index b4e6b2c89a..80d5b44684 100644
--- a/office/mupdf/mupdf.SlackBuild
+++ b/office/mupdf/mupdf.SlackBuild
@@ -5,6 +5,9 @@
# Originally written by Hubert Hesse (slackbuilds@hubertscorner.de).
# Heavily modified by B. Watson (yalhcru@gmail.com).
+# 20170621 bkw:
+# - fix build with -current's newer openjpeg, BUILD=2.
+
# 20170122 bkw:
# - version bump to 1.10a.
@@ -81,7 +84,7 @@
PRGNAM=mupdf
VERSION=${VERSION:-1.10a}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -152,6 +155,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# ref https://bugs.ghostscript.com/show_bug.cgi?id=697175
+sed -i '/#define *OPJ_STATIC/d' source/fitz/load-jpx.c
+
# Hard-code the version number so it'll stop trying to use git to retrieve
# it and spewing harmless but scary 'fatal: Not a git repository' errors.
sed -i "/^VERSION/s,=.*,= $VERSION," Makefile