wok-6.x annotate mupdf/receipt @ rev 24538
updated fbcat (0.5.1 -> 0.5.2)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 23 15:14:49 2022 +0100 (2022-02-23) |
parents | 6e8b1bcb30e2 |
children | 94dd3813f40d |
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" |
pascal@20671 | 9 WEB_SITE="https://mupdf.com/" |
pankso@16565 | 10 TARBALL="$PACKAGE-$VERSION-source.tar.gz" |
pascal@20671 | 11 WGET_URL="https://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 |
pascal@24419 | 18 # What is the latest version available today? |
pascal@24419 | 19 current_version() |
pascal@24419 | 20 { |
pascal@24419 | 21 wget -O - $WEB_SITE/releases 2>/dev/null | \ |
pascal@24419 | 22 sed "/source/!d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\)-source.tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24419 | 23 } |
pascal@24419 | 24 |
jozee@6837 | 25 # Rules to configure and make the package. |
jozee@6837 | 26 compile_rules() |
jozee@6837 | 27 { |
pankso@16565 | 28 # Use system wide libraries instead of included ones |
al@14429 | 29 rm -rf $src/thirdparty |
pankso@16565 | 30 |
pankso@16565 | 31 case "$ARCH" in |
pankso@16565 | 32 arm*) |
pankso@16565 | 33 ARCH_ARGS='OS="slitaz-arm"' |
pankso@16565 | 34 unset CC CFLAGS |
pankso@16565 | 35 make generate |
pankso@16565 | 36 cat >> Makerules << EOT |
pankso@16565 | 37 ifeq "\$(OS)" "slitaz-arm" |
pankso@16565 | 38 SYS_FREETYPE_INC = -I/cross/$ARCH/sysroot/usr/include |
pankso@16565 | 39 CC = ${HOST_SYSTEM}-gcc |
pankso@16565 | 40 LD = ${HOST_SYSTEM}-ld |
pankso@16565 | 41 AR = ${HOST_SYSTEM}-ar |
pankso@16565 | 42 CFLAGS += -I/cross/$ARCH/sysroot/usr/include -O2 -march=armv6 -ftree-vectorize -ffast-math -fsingle-precision-constant |
pankso@16565 | 43 CROSSCOMPILE=yes |
pankso@16565 | 44 endif |
pankso@16565 | 45 EOT |
pascal@16621 | 46 ln -s /usr/include/freetype2/freetype/ /usr/include/freetype ;; |
pascal@16621 | 47 |
pascal@16621 | 48 *) # apply debian 1.4-1 patch |
pascal@16621 | 49 patch -p1 < $stuff/use_openjpeg_1.5.patch |
pankso@16565 | 50 esac |
pankso@16565 | 51 make ${ARCH_ARGS} build=release && |
pankso@16565 | 52 make ${ARCH_ARGS} build=release prefix=/usr install |
pankso@16565 | 53 rm -rf /usr/include/freetype |
jozee@6837 | 54 } |
jozee@6837 | 55 |
jozee@6837 | 56 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@6837 | 57 genpkg_rules() |
jozee@6837 | 58 { |
jozee@6837 | 59 mkdir -p $fs/usr/bin |
pascal@16621 | 60 cp -a $install/usr/bin/mupdf* $fs/usr/bin |
jozee@6837 | 61 } |