wok view 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 source
1 # SliTaz package receipt.
3 PACKAGE="mupdf"
4 VERSION="1.4"
5 CATEGORY="utilities"
6 SHORT_DESC="A lightweight PDF and XPS viewer"
7 MAINTAINER="jozee@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://mupdf.com/"
10 TARBALL="$PACKAGE-$VERSION-source.tar.gz"
11 WGET_URL="http://mupdf.com/downloads/$TARBALL"
12 #HOST_ARCH="i486 arm"
14 DEPENDS="bzlib freetype fontconfig jbig2dec openjpeg xorg-libXext"
15 BUILD_DEPENDS="freetype-dev fontconfig-dev jbig2dec-dev jpeg-dev \
16 openjpeg-dev zlib-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 # Use system wide libraries instead of included ones
22 rm -rf $src/thirdparty
24 case "$ARCH" in
25 arm*)
26 ARCH_ARGS='OS="slitaz-arm"'
27 unset CC CFLAGS
28 make generate
29 cat >> Makerules << EOT
30 ifeq "\$(OS)" "slitaz-arm"
31 SYS_FREETYPE_INC = -I/cross/$ARCH/sysroot/usr/include
32 CC = ${HOST_SYSTEM}-gcc
33 LD = ${HOST_SYSTEM}-ld
34 AR = ${HOST_SYSTEM}-ar
35 CFLAGS += -I/cross/$ARCH/sysroot/usr/include -O2 -march=armv6 -ftree-vectorize -ffast-math -fsingle-precision-constant
36 CROSSCOMPILE=yes
37 endif
38 EOT
39 ln -s /usr/include/freetype2/freetype/ /usr/include/freetype ;;
40 esac
41 make ${ARCH_ARGS} build=release &&
42 make ${ARCH_ARGS} build=release prefix=/usr install
43 rm -rf /usr/include/freetype
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr/bin
50 cp -a $install/usr/bin/mupdf $fs/usr/bin
51 }