wok annotate mupdf/receipt @ rev 19545

yad-gtk2: provide yad (unconditionally).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Dec 06 15:51:50 2016 +0200 (2016-12-06)
parents bde28fa63512
children 6e8b1bcb30e2
rev   line source
jozee@6837 1 # SliTaz package receipt.
jozee@6837 2
jozee@6837 3 PACKAGE="mupdf"
pankso@16565 4 VERSION="1.4"
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/"
pankso@16565 10 TARBALL="$PACKAGE-$VERSION-source.tar.gz"
pankso@16565 11 WGET_URL="http://mupdf.com/downloads/$TARBALL"
pankso@16565 12 #HOST_ARCH="i486 arm"
al@14429 13
pankso@16565 14 DEPENDS="bzlib freetype fontconfig jbig2dec openjpeg xorg-libXext"
pankso@16565 15 BUILD_DEPENDS="freetype-dev fontconfig-dev jbig2dec-dev jpeg-dev \
pankso@16565 16 openjpeg-dev zlib-dev"
jozee@6837 17
jozee@6837 18 # Rules to configure and make the package.
jozee@6837 19 compile_rules()
jozee@6837 20 {
pankso@16565 21 # Use system wide libraries instead of included ones
al@14429 22 rm -rf $src/thirdparty
pankso@16565 23
pankso@16565 24 case "$ARCH" in
pankso@16565 25 arm*)
pankso@16565 26 ARCH_ARGS='OS="slitaz-arm"'
pankso@16565 27 unset CC CFLAGS
pankso@16565 28 make generate
pankso@16565 29 cat >> Makerules << EOT
pankso@16565 30 ifeq "\$(OS)" "slitaz-arm"
pankso@16565 31 SYS_FREETYPE_INC = -I/cross/$ARCH/sysroot/usr/include
pankso@16565 32 CC = ${HOST_SYSTEM}-gcc
pankso@16565 33 LD = ${HOST_SYSTEM}-ld
pankso@16565 34 AR = ${HOST_SYSTEM}-ar
pankso@16565 35 CFLAGS += -I/cross/$ARCH/sysroot/usr/include -O2 -march=armv6 -ftree-vectorize -ffast-math -fsingle-precision-constant
pankso@16565 36 CROSSCOMPILE=yes
pankso@16565 37 endif
pankso@16565 38 EOT
pascal@16621 39 ln -s /usr/include/freetype2/freetype/ /usr/include/freetype ;;
pascal@16621 40
pascal@16621 41 *) # apply debian 1.4-1 patch
pascal@16621 42 patch -p1 < $stuff/use_openjpeg_1.5.patch
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
jozee@6837 49 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@6837 50 genpkg_rules()
jozee@6837 51 {
jozee@6837 52 mkdir -p $fs/usr/bin
pascal@16621 53 cp -a $install/usr/bin/mupdf* $fs/usr/bin
jozee@6837 54 }