wok-next 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 | 036843d192f2 |
children | 03278f2046f3 |
files | mupdf-dev/receipt mupdf/receipt |
line diff
1.1 --- a/mupdf-dev/receipt Thu May 01 11:14:11 2014 +0200 1.2 +++ b/mupdf-dev/receipt Thu May 01 12:12:31 2014 +0200 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="mupdf-dev" 1.7 -VERSION="1.2" 1.8 +VERSION="1.4" 1.9 CATEGORY="development" 1.10 SHORT_DESC="Development files for mupdf" 1.11 MAINTAINER="al.bobylev@gmail.com"
2.1 --- a/mupdf/receipt Thu May 01 11:14:11 2014 +0200 2.2 +++ b/mupdf/receipt Thu May 01 12:12:31 2014 +0200 2.3 @@ -1,27 +1,46 @@ 2.4 # SliTaz package receipt. 2.5 2.6 PACKAGE="mupdf" 2.7 -VERSION="1.2" 2.8 +VERSION="1.4" 2.9 CATEGORY="utilities" 2.10 SHORT_DESC="A lightweight PDF and XPS viewer" 2.11 MAINTAINER="jozee@slitaz.org" 2.12 LICENSE="GPL3" 2.13 WEB_SITE="http://mupdf.com/" 2.14 -TARBALL="$PACKAGE-$VERSION-source.zip" 2.15 -WGET_URL="http://mupdf.googlecode.com/files/$TARBALL" 2.16 +TARBALL="$PACKAGE-$VERSION-source.tar.gz" 2.17 +WGET_URL="http://mupdf.com/downloads/$TARBALL" 2.18 +#HOST_ARCH="i486 arm" 2.19 2.20 -#DEPENDS="freetype jpeg zlib jbig2dec openjpeg" 2.21 -#BUILD_DEPENDS="freetype-dev jpeg-dev openjpeg-dev jbig2dec-dev zlib-dev pkg-config xorg-libX11-dev xorg-libXext-dev xorg-xextproto ftjam" 2.22 -DEPENDS="bzlib freetype jbig2dec openjpeg xorg-libXext" 2.23 -BUILD_DEPENDS="freetype-dev jbig2dec-dev jpeg-dev openjpeg-dev zlib-dev" 2.24 +DEPENDS="bzlib freetype fontconfig jbig2dec openjpeg xorg-libXext" 2.25 +BUILD_DEPENDS="freetype-dev fontconfig-dev jbig2dec-dev jpeg-dev \ 2.26 +openjpeg-dev zlib-dev" 2.27 2.28 # Rules to configure and make the package. 2.29 compile_rules() 2.30 { 2.31 - # use system wide libraries instead of included ones 2.32 + # Use system wide libraries instead of included ones 2.33 rm -rf $src/thirdparty 2.34 - make build=release 2.35 - make build=release prefix=/usr install 2.36 + 2.37 + case "$ARCH" in 2.38 + arm*) 2.39 + ARCH_ARGS='OS="slitaz-arm"' 2.40 + unset CC CFLAGS 2.41 + make generate 2.42 + cat >> Makerules << EOT 2.43 +ifeq "\$(OS)" "slitaz-arm" 2.44 +SYS_FREETYPE_INC = -I/cross/$ARCH/sysroot/usr/include 2.45 +CC = ${HOST_SYSTEM}-gcc 2.46 +LD = ${HOST_SYSTEM}-ld 2.47 +AR = ${HOST_SYSTEM}-ar 2.48 +CFLAGS += -I/cross/$ARCH/sysroot/usr/include -O2 -march=armv6 -ftree-vectorize -ffast-math -fsingle-precision-constant 2.49 +CROSSCOMPILE=yes 2.50 +endif 2.51 +EOT 2.52 + ln -s /usr/include/freetype2/freetype/ /usr/include/freetype ;; 2.53 + esac 2.54 + make ${ARCH_ARGS} build=release && 2.55 + make ${ARCH_ARGS} build=release prefix=/usr install 2.56 + rm -rf /usr/include/freetype 2.57 } 2.58 2.59 # Rules to gen a SliTaz package suitable for Tazpkg.