wok-next view tiff/receipt @ rev 20659
Up libical (3.0.1), libidn2 (2.0.4), libunistring (0.9.8), logrotate (3.11.0), mc (4.8.20), mercurial (4.5), nasm (2.13.03), newt (0.52.20), node (9.5.0), opencv (3.4.1), slitaz-tools-boxes (1028), slitaz-tools (1028), spacefm (1.0.6), tiff (4.0.9); add npapi-sdk, obex-data-server.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed May 09 16:46:19 2018 +0300 (2018-05-09) |
parents | 10df65db91ad |
children | f48456621a9d |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="tiff"
4 VERSION="4.0.9"
5 CATEGORY="graphics"
6 SHORT_DESC="TIFF images"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="http://www.libtiff.org/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/libtiff.html"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="http://download.osgeo.org/libtiff/$TARBALL"
15 BUILD_DEPENDS="cmake ninja zlib-dev libjpeg-turbo-dev xz-dev \
16 mesa-dev glu-dev freeglut-dev"
17 SPLIT="tiff tiff-apps tiff-dev tiff-gl:gl tiff-gl-apps:gl tiff-gl-dev:gl"
19 compile_rules() {
20 case $SET in
21 # no options for it
22 '') sed -i 's|HAVE_OPENGL TRUE|HAVE_OPENGL FALSE|' CMakeLists.txt;;
23 esac
25 mkdir -p libtiff-build
26 cd libtiff-build
28 cmake \
29 -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/libtiff-$VERSION \
30 -DCMAKE_INSTALL_PREFIX=/usr \
31 -G Ninja \
32 .. &&
33 ninja &&
34 ninja install
35 }
37 genpkg_rules() {
38 case $PACKAGE in
39 tiff)
40 copy *.so*
41 CAT="graphics|libraries"
42 DEPENDS="libjpeg-turbo liblzma zlib"
43 ;;
44 tiff-apps)
45 copy bin/
46 CAT="graphics|CLI applications"
47 DEPENDS="tiff"
48 ;;
49 tiff-dev)
50 copy @dev
51 DEPENDS="tiff tiff-apps"
52 ;;
54 tiff-gl)
55 copy *.so*
56 CAT="graphics|libraries"
57 DEPENDS="libjpeg-turbo liblzma zlib"
58 PROVIDE="tiff:mesa"
59 ;;
60 tiff-gl-apps)
61 copy bin/
62 CAT="graphics|CLI applications"
63 DEPENDS="freeglut mesa tiff"
64 PROVIDE="tiff-apps:mesa"
65 ;;
66 tiff-gl-dev)
67 copy @dev
68 DEPENDS="tiff-gl tiff-gl-apps"
69 PROVIDE="tiff-dev:mesa"
70 ;;
71 esac
72 }