mupdf: update to 1.8.

This commit is contained in:
Juan RP 2015-11-12 09:36:20 +01:00
parent 8868443efb
commit e03aea13d2

View file

@ -1,24 +1,28 @@
# Template file for 'mupdf' # Template file for 'mupdf'
pkgname=mupdf pkgname=mupdf
version=1.7a version=1.8
revision=3 revision=1
build_pie=yes
wrksrc="${pkgname}-${version}-source" wrksrc="${pkgname}-${version}-source"
hostmakedepends="pkg-config zlib-devel libcurl-devel freetype-devel libjpeg-turbo-devel jbig2dec-devel" hostmakedepends="pkg-config zlib-devel libcurl-devel freetype-devel
makedepends="zlib-devel libressl-devel libcurl-devel freetype-devel libjpeg-turbo-devel jbig2dec-devel libXext-devel" libjpeg-turbo-devel jbig2dec-devel libXext-devel libXcursor-devel
libXrandr-devel libXinerama-devel MesaLib-devel"
makedepends="${hostmakedepends}"
depends="desktop-file-utils" depends="desktop-file-utils"
short_desc="Lightweight PDF and XPS viewer" short_desc="Lightweight PDF and XPS viewer"
maintainer="Juan RP <xtraeme@voidlinux.eu>" maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-3" license="GPL-3"
homepage="http://mupdf.com" homepage="http://mupdf.com"
distfiles="http://mupdf.com/downloads/mupdf-${version}-source.tar.gz" distfiles="http://mupdf.com/downloads/mupdf-${version}-source.tar.gz"
checksum=8c035ffa011fc44f8a488f70da3e6e51889508bbf66fe6b90a63e0cfa6c17d1c checksum=a2a3c64d8b24920f87cf4ea9339a25abf7388496440f13b37482d1403c33c206
pre_configure() { pre_configure() {
rm -rf thirdparty/{curl,freetype,jpeg,zlib,jbig2dec} rm -rf thirdparty/{curl,freetype,jpeg,zlib,jbig2dec}
} }
do_configure() { do_configure() {
if [ "$CROSS_BUILD" ]; then if [ "$CROSS_BUILD" ]; then
unset CFLAGS export CFLAGS="-fPIC"
unset LDFLAGS
make CC=cc LD=ld AR=ar build=release generate make CC=cc LD=ld AR=ar build=release generate
fi fi
} }