wok-next view tiff/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | f48456621a9d |
children | 75632eca5b07 |
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="devel@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="http://www.libtiff.org/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/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="$PACKAGE-apps $PACKAGE-dev $PACKAGE-gl:gl $PACKAGE-gl-apps:gl \
18 $PACKAGE-gl-dev:gl"
20 compile_rules() {
21 case $SET in
22 # no options for it
23 '') sed -i 's|HAVE_OPENGL TRUE|HAVE_OPENGL FALSE|' CMakeLists.txt;;
24 esac
26 mkdir -p libtiff-build
27 cd libtiff-build
29 cmake \
30 -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/libtiff-$VERSION \
31 -DCMAKE_INSTALL_PREFIX=/usr \
32 -G Ninja \
33 .. &&
34 ninja &&
35 ninja install
36 }
38 genpkg_rules() {
39 case $PACKAGE in
40 tiff)
41 copy *.so*
42 CAT="graphics|libraries"
43 DEPENDS="libjpeg-turbo liblzma zlib"
44 ;;
45 tiff-apps)
46 copy bin/
47 CAT="graphics|CLI applications"
48 DEPENDS="tiff"
49 ;;
50 tiff-dev)
51 copy @dev
52 DEPENDS="tiff tiff-apps"
53 ;;
55 tiff-gl)
56 copy *.so*
57 CAT="graphics|libraries"
58 DEPENDS="libjpeg-turbo liblzma zlib"
59 PROVIDE="tiff:mesa"
60 ;;
61 tiff-gl-apps)
62 copy bin/
63 CAT="graphics|CLI applications"
64 DEPENDS="freeglut mesa tiff"
65 PROVIDE="tiff-apps:mesa"
66 ;;
67 tiff-gl-dev)
68 copy @dev
69 DEPENDS="tiff-gl tiff-gl-apps"
70 PROVIDE="tiff-dev:mesa"
71 ;;
72 esac
73 }