summaryrefslogtreecommitdiff
path: root/office/mupdf/mupdf.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2017-01-25 15:18:21 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-01-28 07:38:23 +0700
commita3a53d8764db58b6bde99094e510ae82f693452e (patch)
treee2de58500ce5bf1487a22a5b32d7c1d8e70c856a /office/mupdf/mupdf.SlackBuild
parente7beb61581de26343a4b644ac61ab89b2032b3bb (diff)
downloadslackbuilds-a3a53d8764db58b6bde99094e510ae82f693452e.tar.gz
office/mupdf: Updated for version 1.10a.
Diffstat (limited to 'office/mupdf/mupdf.SlackBuild')
-rw-r--r--office/mupdf/mupdf.SlackBuild19
1 files changed, 6 insertions, 13 deletions
diff --git a/office/mupdf/mupdf.SlackBuild b/office/mupdf/mupdf.SlackBuild
index 1dd4d1108b..b4e6b2c89a 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).
+# 20170122 bkw:
+# - version bump to 1.10a.
+
# 20160725 bkw:
# - version bump to 1.9a.
# - s/i486/i586/g (to match new 14.2 template).
@@ -77,7 +80,7 @@
# - Fix the man pages slightly.
PRGNAM=mupdf
-VERSION=${VERSION:-1.9a}
+VERSION=${VERSION:-1.10a}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -149,21 +152,11 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# opj_stream_set_user_data() now takes 3 args in openjpeg 2.1.
-# Patch applies to both 1.4 and 1.5 (and later).
-patch -p1 < $CWD/openjpeg-2.1-api-change.diff
-
-# Makerules incorrectly tries to build with openjpeg-1.x system lib, while
-# the bundled version is 2.0, and the code uses the 2.0 API.
-# Actually this was fixed in 1.5, but I leave this here in case someone
-# wants to use this script to build mupdf-1.4 for some reason.
-sed -i 's,libopenjpeg1,libopenjp2,g' Makerules
-
# 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
-make \
+make verbose=yes \
XCFLAGS="$SLKCFLAGS -DJBIG_NO_MEMENTO" \
HAVE_MUJS="$MUJS" \
build=release \
@@ -207,7 +200,7 @@ mkdir -p $PKG/usr/share/pixmaps
cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png
# .pc file taken from debian and parameterized.
-PCLIBS="-l$PRGNAM"
+PCLIBS="-l$PRGNAM -lfreetype -lharfbuzz -ljbig2dec -ljpeg -lcrypto -lopenjp2 -lz -lm"
[ "$MUJS" = "yes" ] && PCLIBS="$PCLIBS -lmupdfthird"
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/pkgconfig/