wok-next view mupdf/receipt @ rev 20475
Tiny edits: libsdl-mixer, scummvm, stella, syasokoban, sz81, tuxpaint, workerfm...
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Mar 11 13:37:02 2018 +0200 (2018-03-11) |
parents | fe76d2fe539b |
children | 9d604775ef23 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="mupdf"
4 VERSION="1.11"
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"
13 BUILD_DEPENDS="freetype-dev fontconfig-dev jbig2dec-dev jpeg-dev \
14 openjpeg-dev zlib-dev xorg-dev"
15 SPLIT="mupdf mudraw mupdf-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 # Use system wide libraries instead of included ones
21 rm -rf $src/thirdparty
23 case "$ARCH" in
24 arm*)
25 ARCH_ARGS='OS="slitaz-arm"'
26 unset CC CFLAGS
27 make generate
28 cat >> Makerules << EOT
29 ifeq "\$(OS)" "slitaz-arm"
30 SYS_FREETYPE_INC = -I/cross/$ARCH/sysroot/usr/include
31 CC = ${HOST_SYSTEM}-gcc
32 LD = ${HOST_SYSTEM}-ld
33 AR = ${HOST_SYSTEM}-ar
34 CFLAGS += -I/cross/$ARCH/sysroot/usr/include -O2 -march=armv6 -ftree-vectorize -ffast-math -fsingle-precision-constant
35 CROSSCOMPILE=yes
36 endif
37 EOT
38 ln -s /usr/include/freetype2/freetype/ /usr/include/freetype ;;
40 *) # apply debian 1.4-1 patch
41 patch -p1 < $stuff/use_openjpeg_1.5.patch
42 esac
43 make ${ARCH_ARGS} build=release &&
44 make ${ARCH_ARGS} build=release prefix=/usr install
45 rm -rf /usr/include/freetype
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 case $PACKAGE in
52 mupdf)
53 DEPENDS="bzlib freetype fontconfig jbig2dec openjpeg xorg-libXext"
54 mkdir -p $fs/usr/bin
55 cp -a $install/usr/bin/mupdf* $fs/usr/bin
56 ;;
57 mudraw)
58 CAT="development|A lightweight PDF and XPS viewer (mudraw)"
59 DEPENDS="bzlib freetype jbig2dec openjpeg"
60 mkdir -p $fs/usr/bin
61 cp -a $install/usr/bin/mudraw $fs/usr/bin
62 ;;
63 mupdf-dev)
64 CAT="development|Development files for mupdf"
65 DEPENDS="mupdf mudraw"
66 mkdir -p $fs/usr
67 cp -a $install/usr/include $fs/usr
68 cp -a $install/usr/lib $fs/usr
69 ;;
70 esac
71 }