wok-next annotate tiff/receipt @ rev 20718
paulstretch: fix build
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun May 27 15:09:21 2018 +0300 (2018-05-27) |
parents | 10df65db91ad |
children | f48456621a9d |
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" |
pankso@23 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15600 | 8 LICENSE="MIT" |
al@19607 | 9 WEB_SITE="http://www.libtiff.org/" |
al@20659 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/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@20659 | 17 SPLIT="tiff tiff-apps tiff-dev tiff-gl:gl tiff-gl-apps:gl tiff-gl-dev:gl" |
pankso@23 | 18 |
al@20604 | 19 compile_rules() { |
al@20659 | 20 case $SET in |
al@20659 | 21 # no options for it |
al@20659 | 22 '') sed -i 's|HAVE_OPENGL TRUE|HAVE_OPENGL FALSE|' CMakeLists.txt;; |
al@20659 | 23 esac |
al@20659 | 24 |
al@20659 | 25 mkdir -p libtiff-build |
al@20659 | 26 cd libtiff-build |
al@20659 | 27 |
al@20659 | 28 cmake \ |
al@20659 | 29 -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/libtiff-$VERSION \ |
al@20659 | 30 -DCMAKE_INSTALL_PREFIX=/usr \ |
al@20659 | 31 -G Ninja \ |
al@20659 | 32 .. && |
al@20659 | 33 ninja && |
al@20659 | 34 ninja install |
pankso@23 | 35 } |
pankso@23 | 36 |
al@20604 | 37 genpkg_rules() { |
al@19787 | 38 case $PACKAGE in |
al@19787 | 39 tiff) |
al@19787 | 40 copy *.so* |
al@19787 | 41 CAT="graphics|libraries" |
al@20659 | 42 DEPENDS="libjpeg-turbo liblzma zlib" |
al@19787 | 43 ;; |
al@19787 | 44 tiff-apps) |
al@19787 | 45 copy bin/ |
al@19787 | 46 CAT="graphics|CLI applications" |
al@20659 | 47 DEPENDS="tiff" |
al@19787 | 48 ;; |
al@20659 | 49 tiff-dev) |
al@19787 | 50 copy @dev |
al@20659 | 51 DEPENDS="tiff tiff-apps" |
al@20659 | 52 ;; |
al@20659 | 53 |
al@20659 | 54 tiff-gl) |
al@20659 | 55 copy *.so* |
al@20659 | 56 CAT="graphics|libraries" |
al@20659 | 57 DEPENDS="libjpeg-turbo liblzma zlib" |
al@20659 | 58 PROVIDE="tiff:mesa" |
al@20659 | 59 ;; |
al@20659 | 60 tiff-gl-apps) |
al@20659 | 61 copy bin/ |
al@20659 | 62 CAT="graphics|CLI applications" |
al@20659 | 63 DEPENDS="freeglut mesa tiff" |
al@20659 | 64 PROVIDE="tiff-apps:mesa" |
al@20659 | 65 ;; |
al@20659 | 66 tiff-gl-dev) |
al@20659 | 67 copy @dev |
al@20659 | 68 DEPENDS="tiff-gl tiff-gl-apps" |
al@20659 | 69 PROVIDE="tiff-dev:mesa" |
al@19787 | 70 ;; |
al@19787 | 71 esac |
pankso@23 | 72 } |