mupdf: update to 1.3

This commit is contained in:
Juergen Daubert 2013-08-16 11:22:48 +02:00
parent 4b684ae67a
commit 9ca25e5df2
4 changed files with 44 additions and 9 deletions

View File

@ -1,7 +1,9 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/mudraw
-rwxr-xr-x root/root usr/bin/mupdf
lrwxrwxrwx root/root usr/bin/mupdf -> mupdf-x11-curl
-rwxr-xr-x root/root usr/bin/mupdf-x11
-rwxr-xr-x root/root usr/bin/mupdf-x11-curl
-rwxr-xr-x root/root usr/bin/mutool
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/

View File

@ -1 +1,2 @@
230e7d679f54c91edd1ebe54f6f8bc15 mupdf-1.2-source.zip
fe53c2a56ebd7759f5f965bc4ff66359 mupdf-1.3-source.tar.gz
9a173e6f0067130b77f4daa658087c31 mupdf-sys_curl.patch

View File

@ -1,18 +1,23 @@
# Description: Lightweight PDF and XPS viewer
# URL: http://www.mupdf.com/
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: freetype libjpeg xorg-libxext
# Depends on: curl freetype libjpeg xorg-libxext
name=mupdf
version=1.2
version=1.3
release=1
source=(http://mupdf.googlecode.com/files/$name-$version-source.zip)
source=(https://mupdf.googlecode.com/files/$name-$version-source.tar.gz
$name-sys_curl.patch)
build() {
cd $name-$version-source
rm -r thirdparty/{freetype*,jpeg*,zlib*}
sed -i 's/MUBUSY/MUTOOL/' Makefile
make build=release
patch -p1 -i $SRC/$name-sys_curl.patch
rm -r thirdparty/{freetype*,jpeg*,zlib,curl}
make build=release
make prefix=$PKG/usr mandir=$PKG/usr/man install
rm -r $PKG/usr/{include,lib}
ln -s mupdf-x11-curl $PKG/usr/bin/mupdf
rm -r $PKG/usr/{include,lib,share}
}

View File

@ -0,0 +1,27 @@
diff -Nru mupdf-1.3-source.orig/Makerules mupdf-1.3-source/Makerules
--- mupdf-1.3-source.orig/Makerules 2013-08-16 11:07:13.627597342 +0200
+++ mupdf-1.3-source/Makerules 2013-08-16 11:09:31.525988042 +0200
@@ -67,6 +67,8 @@
SYS_JBIG2DEC_LIBS = -ljbig2dec
SYS_JPEG_LIBS = -ljpeg
SYS_ZLIB_LIBS = -lz
+SYS_CURL_CFLAGS = $(shell pkg-config --cflags libcurl)
+SYS_CURL_LIBS = $(shell pkg-config --libs libcurl) -lpthread
endif
diff -Nru mupdf-1.3-source.orig/Makethird mupdf-1.3-source/Makethird
--- mupdf-1.3-source.orig/Makethird 2013-08-16 11:07:13.730926974 +0200
+++ mupdf-1.3-source/Makethird 2013-08-16 11:09:04.700283008 +0200
@@ -443,6 +443,10 @@
CURL_CFLAGS := -I$(CURL_DIR)/include
CURL_LIBS := $(SYS_CURL_DEPS)
+
else
-NOCURL := yes
+
+CURL_CFLAGS := $(SYS_CURL_CFLAGS)
+CURL_LIBS := $(SYS_CURL_LIBS)
+
endif