wok view mupdf/receipt @ rev 24810
libmypaint: add current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Mar 22 15:59:26 2022 +0000 (2022-03-22) |
parents | 6e8b1bcb30e2 |
children | 94dd3813f40d |
line source
1 # SliTaz package receipt.
3 PACKAGE="mupdf"
4 VERSION="1.4"
5 CATEGORY="utilities"
6 SHORT_DESC="A lightweight PDF and XPS viewer"
7 MAINTAINER="jozee@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://mupdf.com/"
10 TARBALL="$PACKAGE-$VERSION-source.tar.gz"
11 WGET_URL="https://mupdf.com/downloads/$TARBALL"
12 #HOST_ARCH="i486 arm"
14 DEPENDS="bzlib freetype fontconfig jbig2dec openjpeg xorg-libXext"
15 BUILD_DEPENDS="freetype-dev fontconfig-dev jbig2dec-dev jpeg-dev \
16 openjpeg-dev zlib-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE/releases 2>/dev/null | \
22 sed "/source/!d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\)-source.tar.*\".*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 # Use system wide libraries instead of included ones
29 rm -rf $src/thirdparty
31 case "$ARCH" in
32 arm*)
33 ARCH_ARGS='OS="slitaz-arm"'
34 unset CC CFLAGS
35 make generate
36 cat >> Makerules << EOT
37 ifeq "\$(OS)" "slitaz-arm"
38 SYS_FREETYPE_INC = -I/cross/$ARCH/sysroot/usr/include
39 CC = ${HOST_SYSTEM}-gcc
40 LD = ${HOST_SYSTEM}-ld
41 AR = ${HOST_SYSTEM}-ar
42 CFLAGS += -I/cross/$ARCH/sysroot/usr/include -O2 -march=armv6 -ftree-vectorize -ffast-math -fsingle-precision-constant
43 CROSSCOMPILE=yes
44 endif
45 EOT
46 ln -s /usr/include/freetype2/freetype/ /usr/include/freetype ;;
48 *) # apply debian 1.4-1 patch
49 patch -p1 < $stuff/use_openjpeg_1.5.patch
50 esac
51 make ${ARCH_ARGS} build=release &&
52 make ${ARCH_ARGS} build=release prefix=/usr install
53 rm -rf /usr/include/freetype
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 mkdir -p $fs/usr/bin
60 cp -a $install/usr/bin/mupdf* $fs/usr/bin
61 }