wok view mupdf/receipt @ rev 18351
Rebuild packages that depends on giflib & nettle (ldd fail)
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Sat Sep 12 15:52:07 2015 +0200 (2015-09-12) |
parents | bde28fa63512 |
children | 6e8b1bcb30e2 |
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 ;;
41 *) # apply debian 1.4-1 patch
42 patch -p1 < $stuff/use_openjpeg_1.5.patch
43 esac
44 make ${ARCH_ARGS} build=release &&
45 make ${ARCH_ARGS} build=release prefix=/usr install
46 rm -rf /usr/include/freetype
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr/bin
53 cp -a $install/usr/bin/mupdf* $fs/usr/bin
54 }