mirror of
https://github.com/Ponce/slackbuilds
synced 2024-10-03 07:54:34 +02:00
office/mupdf: Fix build for -current.
Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
parent
064014d18e
commit
b2efd65c0f
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue