wok-next view mupdf/receipt @ rev 21053
Small updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Dec 01 10:24:50 2018 +0200 (2018-12-01) |
parents | 94fc545eb649 |
children | 5669e8b3be70 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="mupdf"
4 VERSION="1.13.0"
5 CATEGORY="x-window"
6 SHORT_DESC="MuPDF document viewer"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="AGPL3"
9 WEB_SITE="https://mupdf.com/"
11 TARBALL="$PACKAGE-$VERSION-source.tar.xz"
12 WGET_URL="https://mupdf.com/downloads/$TARBALL"
14 BUILD_DEPENDS="freetype-dev libjpeg-turbo-dev jbig2dec-dev openjpeg2-dev \
15 freeglut-dev mesa-dev glu-dev curl-dev"
16 SPLIT="$PACKAGE-gl $PACKAGE-tools $PACKAGE-dev"
18 compile_rules() {
19 # use system wide libraries instead of included ones; leave mujs
20 rm -rf thirdparty/curl thirdparty/freeglut thirdparty/freetype \
21 thirdparty/harfbuzz thirdparty/jbig2dec thirdparty/lcms2 \
22 thirdparty/libjpeg thirdparty/openjpeg thirdparty/zlib
24 # fix includes for jbig2dec
25 sed -i '/^JBIG2DEC_CFLAGS :=/s|$| -I./include/mupdf|' Makethird
27 make build=small libs apps extra &&
28 make build=small prefix=/usr install || return 1
30 # install tools
31 cd $src/build/small
32 cp mjsgen mujstest muraster mupdf-x11-curl $install/usr/bin/
34 # desktop integration
35 install -Dm644 $stuff/mupdf.desktop \
36 $install/usr/share/applications/mupdf.desktop
37 install -Dm644 $src/docs/logo/mupdf.png \
38 $install/usr/share/icons/hicolor/48x48/apps/mupdf.png
40 # fix permissions
41 find $install/usr/include $install/usr/share $install/usr/lib -type f \
42 -exec chmod 0644 '{}' \;
43 }
45 genpkg_rules() {
46 case $PACKAGE in
47 mupdf)
48 copy mupdf-x11-curl mupdf.desktop mupdf.png
49 ln -s mupdf-x11-curl $fs/usr/bin/mupdf
50 DEPENDS="freetype jbig2dec libcurl libharfbuzz libjpeg-turbo \
51 openjpeg2 openssl xorg-libX11 xorg-libXext zlib"
52 CAT="x-window|basic X11 version"
53 ;;
54 mupdf-gl)
55 copy mupdf-gl mupdf.desktop mupdf.png
56 ln -s mupdf-gl $fs/usr/bin/mupdf
57 DEPENDS="freeglut freetype jbig2dec libharfbuzz libjpeg-turbo mesa \
58 openjpeg2 zlib"
59 CAT="x-window|full featured OpenGL accelerated version"
60 PROVIDE="mupdf:mesa"
61 ;;
62 mupdf-tools)
63 copy mutool mjsgen mujstest muraster
64 DEPENDS="freetype jbig2dec libharfbuzz libjpeg-turbo openjpeg2 \
65 openssl zlib"
66 CAT="x-window|multipurpose PDF tools"
67 ;;
68 mupdf-dev)
69 copy @dev
70 ;;
71 esac
72 }