wok-next annotate 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 |
rev | line source |
---|---|
al@19787 | 1 # SliTaz package receipt v2. |
pankso@23 | 2 |
pankso@23 | 3 PACKAGE="tiff" |
al@20659 | 4 VERSION="4.0.9" |
al@19787 | 5 CATEGORY="graphics" |
al@19787 | 6 SHORT_DESC="TIFF images" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
pascal@15600 | 8 LICENSE="MIT" |
al@19607 | 9 WEB_SITE="http://www.libtiff.org/" |
al@21017 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/libtiff.html" |
pascal@15600 | 11 |
al@19607 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19607 | 13 WGET_URL="http://download.osgeo.org/libtiff/$TARBALL" |
al@19607 | 14 |
al@20659 | 15 BUILD_DEPENDS="cmake ninja zlib-dev libjpeg-turbo-dev xz-dev \ |
al@20659 | 16 mesa-dev glu-dev freeglut-dev" |
al@21020 | 17 SPLIT="$PACKAGE-apps $PACKAGE-dev $PACKAGE-gl:gl $PACKAGE-gl-apps:gl \ |
al@21020 | 18 $PACKAGE-gl-dev:gl" |
pankso@23 | 19 |
al@20604 | 20 compile_rules() { |
al@20659 | 21 case $SET in |
al@20659 | 22 # no options for it |
al@20659 | 23 '') sed -i 's|HAVE_OPENGL TRUE|HAVE_OPENGL FALSE|' CMakeLists.txt;; |
al@20659 | 24 esac |
al@20659 | 25 |
al@20659 | 26 mkdir -p libtiff-build |
al@20659 | 27 cd libtiff-build |
al@20659 | 28 |
al@20659 | 29 cmake \ |
al@20659 | 30 -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/libtiff-$VERSION \ |
al@20659 | 31 -DCMAKE_INSTALL_PREFIX=/usr \ |
al@20659 | 32 -G Ninja \ |
al@20659 | 33 .. && |
al@20659 | 34 ninja && |
al@20659 | 35 ninja install |
pankso@23 | 36 } |
pankso@23 | 37 |
al@20604 | 38 genpkg_rules() { |
al@19787 | 39 case $PACKAGE in |
al@19787 | 40 tiff) |
al@19787 | 41 copy *.so* |
al@19787 | 42 CAT="graphics|libraries" |
al@20659 | 43 DEPENDS="libjpeg-turbo liblzma zlib" |
al@19787 | 44 ;; |
al@19787 | 45 tiff-apps) |
al@19787 | 46 copy bin/ |
al@19787 | 47 CAT="graphics|CLI applications" |
al@20659 | 48 DEPENDS="tiff" |
al@19787 | 49 ;; |
al@20659 | 50 tiff-dev) |
al@19787 | 51 copy @dev |
al@20659 | 52 DEPENDS="tiff tiff-apps" |
al@20659 | 53 ;; |
al@20659 | 54 |
al@20659 | 55 tiff-gl) |
al@20659 | 56 copy *.so* |
al@20659 | 57 CAT="graphics|libraries" |
al@20659 | 58 DEPENDS="libjpeg-turbo liblzma zlib" |
al@20659 | 59 PROVIDE="tiff:mesa" |
al@20659 | 60 ;; |
al@20659 | 61 tiff-gl-apps) |
al@20659 | 62 copy bin/ |
al@20659 | 63 CAT="graphics|CLI applications" |
al@20659 | 64 DEPENDS="freeglut mesa tiff" |
al@20659 | 65 PROVIDE="tiff-apps:mesa" |
al@20659 | 66 ;; |
al@20659 | 67 tiff-gl-dev) |
al@20659 | 68 copy @dev |
al@20659 | 69 DEPENDS="tiff-gl tiff-gl-apps" |
al@20659 | 70 PROVIDE="tiff-dev:mesa" |
al@19787 | 71 ;; |
al@19787 | 72 esac |
pankso@23 | 73 } |