wok-next annotate mupdf/receipt @ rev 20476

Tiny edits: gens-gs, linapple, mupdf, openttd, opentyrian, pingus
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Mar 11 17:47:28 2018 +0200 (2018-03-11)
parents c4e53a39395a
children d6378d455338
rev   line source
pascal@20179 1 # SliTaz package receipt v2.
jozee@6837 2
jozee@6837 3 PACKAGE="mupdf"
psychomaniak@19885 4 VERSION="1.11"
jozee@6837 5 CATEGORY="utilities"
al@14429 6 SHORT_DESC="A lightweight PDF and XPS viewer"
jozee@6837 7 MAINTAINER="jozee@slitaz.org"
al@14429 8 LICENSE="GPL3"
slaxemulator@6854 9 WEB_SITE="http://mupdf.com/"
al@20476 10
pankso@16565 11 TARBALL="$PACKAGE-$VERSION-source.tar.gz"
pankso@16565 12 WGET_URL="http://mupdf.com/downloads/$TARBALL"
al@14429 13
al@20476 14 BUILD_DEPENDS="freetype-dev fontconfig-dev jbig2dec-dev libjpeg-turbo-dev \
psychomaniak@19885 15 openjpeg-dev zlib-dev xorg-dev"
al@20476 16 SPLIT="mudraw mupdf mupdf-dev"
jozee@6837 17
al@20476 18 compile_rules() {
pankso@16565 19 # Use system wide libraries instead of included ones
al@14429 20 rm -rf $src/thirdparty
al@20476 21
pankso@16565 22 case "$ARCH" in
pankso@16565 23 arm*)
pankso@16565 24 ARCH_ARGS='OS="slitaz-arm"'
pankso@16565 25 unset CC CFLAGS
pankso@16565 26 make generate
al@20476 27 cat >> Makerules <<EOT
pankso@16565 28 ifeq "\$(OS)" "slitaz-arm"
pankso@16565 29 SYS_FREETYPE_INC = -I/cross/$ARCH/sysroot/usr/include
pankso@16565 30 CC = ${HOST_SYSTEM}-gcc
pankso@16565 31 LD = ${HOST_SYSTEM}-ld
pankso@16565 32 AR = ${HOST_SYSTEM}-ar
pankso@16565 33 CFLAGS += -I/cross/$ARCH/sysroot/usr/include -O2 -march=armv6 -ftree-vectorize -ffast-math -fsingle-precision-constant
pankso@16565 34 CROSSCOMPILE=yes
pankso@16565 35 endif
pankso@16565 36 EOT
al@20476 37 ln -s /usr/include/freetype2/freetype/ /usr/include/freetype
al@20476 38 ;;
al@20476 39 *)
al@20476 40 # apply debian 1.4-1 patch
pascal@16621 41 patch -p1 < $stuff/use_openjpeg_1.5.patch
al@20476 42 ;;
pankso@16565 43 esac
pankso@16565 44 make ${ARCH_ARGS} build=release &&
pankso@16565 45 make ${ARCH_ARGS} build=release prefix=/usr install
pankso@16565 46 rm -rf /usr/include/freetype
jozee@6837 47 }
jozee@6837 48
al@20476 49 genpkg_rules() {
pascal@20179 50 case $PACKAGE in
al@20476 51 mudraw)
al@20476 52 copy mudraw
al@20476 53 CAT="development|mudraw"
al@20476 54 DEPENDS="bzlib freetype jbig2dec openjpeg"
al@20476 55 ;;
al@20476 56 mupdf)
al@20476 57 copy @std @rm
al@20476 58 DEPENDS="bzlib freetype fontconfig jbig2dec openjpeg xorg-libXext"
al@20476 59 ;;
al@20476 60 mupdf-dev)
al@20476 61 copy @dev
al@20476 62 ;;
pascal@20179 63 esac
jozee@6837 64 }