wok diff mupdf/receipt @ rev 16565
An attempt to have a PDF reader for ARM (mupdf)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu May 01 12:12:31 2014 +0200 (2014-05-01) |
parents | 159a8b382826 |
children | ee113b0de7d8 |
line diff
1.1 --- a/mupdf/receipt Wed Apr 24 14:06:49 2013 +0000 1.2 +++ b/mupdf/receipt Thu May 01 12:12:31 2014 +0200 1.3 @@ -1,27 +1,46 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="mupdf" 1.7 -VERSION="1.2" 1.8 +VERSION="1.4" 1.9 CATEGORY="utilities" 1.10 SHORT_DESC="A lightweight PDF and XPS viewer" 1.11 MAINTAINER="jozee@slitaz.org" 1.12 LICENSE="GPL3" 1.13 WEB_SITE="http://mupdf.com/" 1.14 -TARBALL="$PACKAGE-$VERSION-source.zip" 1.15 -WGET_URL="http://mupdf.googlecode.com/files/$TARBALL" 1.16 +TARBALL="$PACKAGE-$VERSION-source.tar.gz" 1.17 +WGET_URL="http://mupdf.com/downloads/$TARBALL" 1.18 +#HOST_ARCH="i486 arm" 1.19 1.20 -#DEPENDS="freetype jpeg zlib jbig2dec openjpeg" 1.21 -#BUILD_DEPENDS="freetype-dev jpeg-dev openjpeg-dev jbig2dec-dev zlib-dev pkg-config xorg-libX11-dev xorg-libXext-dev xorg-xextproto ftjam" 1.22 -DEPENDS="bzlib freetype jbig2dec openjpeg xorg-libXext" 1.23 -BUILD_DEPENDS="freetype-dev jbig2dec-dev jpeg-dev openjpeg-dev zlib-dev" 1.24 +DEPENDS="bzlib freetype fontconfig jbig2dec openjpeg xorg-libXext" 1.25 +BUILD_DEPENDS="freetype-dev fontconfig-dev jbig2dec-dev jpeg-dev \ 1.26 +openjpeg-dev zlib-dev" 1.27 1.28 # Rules to configure and make the package. 1.29 compile_rules() 1.30 { 1.31 - # use system wide libraries instead of included ones 1.32 + # Use system wide libraries instead of included ones 1.33 rm -rf $src/thirdparty 1.34 - make build=release 1.35 - make build=release prefix=/usr install 1.36 + 1.37 + case "$ARCH" in 1.38 + arm*) 1.39 + ARCH_ARGS='OS="slitaz-arm"' 1.40 + unset CC CFLAGS 1.41 + make generate 1.42 + cat >> Makerules << EOT 1.43 +ifeq "\$(OS)" "slitaz-arm" 1.44 +SYS_FREETYPE_INC = -I/cross/$ARCH/sysroot/usr/include 1.45 +CC = ${HOST_SYSTEM}-gcc 1.46 +LD = ${HOST_SYSTEM}-ld 1.47 +AR = ${HOST_SYSTEM}-ar 1.48 +CFLAGS += -I/cross/$ARCH/sysroot/usr/include -O2 -march=armv6 -ftree-vectorize -ffast-math -fsingle-precision-constant 1.49 +CROSSCOMPILE=yes 1.50 +endif 1.51 +EOT 1.52 + ln -s /usr/include/freetype2/freetype/ /usr/include/freetype ;; 1.53 + esac 1.54 + make ${ARCH_ARGS} build=release && 1.55 + make ${ARCH_ARGS} build=release prefix=/usr install 1.56 + rm -rf /usr/include/freetype 1.57 } 1.58 1.59 # Rules to gen a SliTaz package suitable for Tazpkg.