wok-next annotate mupdf/receipt @ rev 21508
updated autofs (5.1.5 -> 5.1.6)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jun 19 08:13:34 2020 +0100 (2020-06-19) |
parents | d5aab818505e |
children |
rev | line source |
---|---|
pascal@20179 | 1 # SliTaz package receipt v2. |
jozee@6837 | 2 |
jozee@6837 | 3 PACKAGE="mupdf" |
al@20668 | 4 VERSION="1.13.0" |
al@20668 | 5 CATEGORY="x-window" |
al@20668 | 6 SHORT_DESC="MuPDF document viewer" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
al@20668 | 8 LICENSE="AGPL3" |
al@20668 | 9 WEB_SITE="https://mupdf.com/" |
al@20476 | 10 |
al@20668 | 11 TARBALL="$PACKAGE-$VERSION-source.tar.xz" |
al@20668 | 12 WGET_URL="https://mupdf.com/downloads/$TARBALL" |
al@14429 | 13 |
al@20668 | 14 BUILD_DEPENDS="freetype-dev libjpeg-turbo-dev jbig2dec-dev openjpeg2-dev \ |
al@20668 | 15 freeglut-dev mesa-dev glu-dev curl-dev" |
al@21020 | 16 SPLIT="$PACKAGE-gl $PACKAGE-tools $PACKAGE-dev" |
jozee@6837 | 17 |
al@20476 | 18 compile_rules() { |
al@20668 | 19 # use system wide libraries instead of included ones; leave mujs |
al@20668 | 20 rm -rf thirdparty/curl thirdparty/freeglut thirdparty/freetype \ |
al@20668 | 21 thirdparty/harfbuzz thirdparty/jbig2dec thirdparty/lcms2 \ |
al@20668 | 22 thirdparty/libjpeg thirdparty/openjpeg thirdparty/zlib |
al@20668 | 23 |
al@20668 | 24 # fix includes for jbig2dec |
al@20668 | 25 sed -i '/^JBIG2DEC_CFLAGS :=/s|$| -I./include/mupdf|' Makethird |
al@20476 | 26 |
al@21020 | 27 make build=small libs apps extra && |
al@21020 | 28 make build=small prefix=/usr install || return 1 |
al@20668 | 29 |
al@20668 | 30 # install tools |
al@20668 | 31 cd $src/build/small |
al@20668 | 32 cp mjsgen mujstest muraster mupdf-x11-curl $install/usr/bin/ |
al@20668 | 33 |
al@20668 | 34 # desktop integration |
al@20668 | 35 install -Dm644 $stuff/mupdf.desktop \ |
al@20668 | 36 $install/usr/share/applications/mupdf.desktop |
al@20668 | 37 install -Dm644 $src/docs/logo/mupdf.png \ |
al@20668 | 38 $install/usr/share/icons/hicolor/48x48/apps/mupdf.png |
al@20668 | 39 |
al@20668 | 40 # fix permissions |
al@20668 | 41 find $install/usr/include $install/usr/share $install/usr/lib -type f \ |
al@20668 | 42 -exec chmod 0644 '{}' \; |
jozee@6837 | 43 } |
jozee@6837 | 44 |
al@20476 | 45 genpkg_rules() { |
pascal@20179 | 46 case $PACKAGE in |
al@20668 | 47 mupdf) |
al@20668 | 48 copy mupdf-x11-curl mupdf.desktop mupdf.png |
al@20668 | 49 ln -s mupdf-x11-curl $fs/usr/bin/mupdf |
al@20668 | 50 DEPENDS="freetype jbig2dec libcurl libharfbuzz libjpeg-turbo \ |
al@21078 | 51 openjpeg2 openssl libx11 libxext zlib" |
al@20668 | 52 CAT="x-window|basic X11 version" |
al@20476 | 53 ;; |
al@20668 | 54 mupdf-gl) |
al@20668 | 55 copy mupdf-gl mupdf.desktop mupdf.png |
al@20668 | 56 ln -s mupdf-gl $fs/usr/bin/mupdf |
al@20668 | 57 DEPENDS="freeglut freetype jbig2dec libharfbuzz libjpeg-turbo mesa \ |
al@20668 | 58 openjpeg2 zlib" |
al@20668 | 59 CAT="x-window|full featured OpenGL accelerated version" |
al@20668 | 60 PROVIDE="mupdf:mesa" |
al@20668 | 61 ;; |
al@20668 | 62 mupdf-tools) |
al@20668 | 63 copy mutool mjsgen mujstest muraster |
al@20668 | 64 DEPENDS="freetype jbig2dec libharfbuzz libjpeg-turbo openjpeg2 \ |
al@20668 | 65 openssl zlib" |
al@20668 | 66 CAT="x-window|multipurpose PDF tools" |
al@20476 | 67 ;; |
al@20476 | 68 mupdf-dev) |
al@20476 | 69 copy @dev |
al@20476 | 70 ;; |
pascal@20179 | 71 esac |
jozee@6837 | 72 } |