wok-next diff tiff/receipt @ rev 20737

libav: fix build; python-antlr: using pip; python-apsw: up (3.19.3-r1)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue May 29 20:37:22 2018 +0300 (2018-05-29)
parents 10df65db91ad
children f48456621a9d
line diff
     1.1 --- a/tiff/receipt	Thu Apr 19 13:15:41 2018 +0300
     1.2 +++ b/tiff/receipt	Tue May 29 20:37:22 2018 +0300
     1.3 @@ -1,26 +1,37 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6  PACKAGE="tiff"
     1.7 -VERSION="4.0.7"
     1.8 +VERSION="4.0.9"
     1.9  CATEGORY="graphics"
    1.10  SHORT_DESC="TIFF images"
    1.11  MAINTAINER="pankso@slitaz.org"
    1.12  LICENSE="MIT"
    1.13  WEB_SITE="http://www.libtiff.org/"
    1.14 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/libtiff.html"
    1.15  
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17  WGET_URL="http://download.osgeo.org/libtiff/$TARBALL"
    1.18  
    1.19 -BUILD_DEPENDS="libjpeg-turbo-dev zlib-dev"
    1.20 -SPLIT="tiff-apps tiff-dev"
    1.21 +BUILD_DEPENDS="cmake ninja zlib-dev libjpeg-turbo-dev xz-dev \
    1.22 +mesa-dev glu-dev freeglut-dev"
    1.23 +SPLIT="tiff tiff-apps tiff-dev tiff-gl:gl tiff-gl-apps:gl tiff-gl-dev:gl"
    1.24  
    1.25  compile_rules() {
    1.26 -	./configure \
    1.27 -		--disable-static \
    1.28 -		$CONFIGURE_ARGS &&
    1.29 -	fix libtool &&
    1.30 -	make &&
    1.31 -	make install
    1.32 +	case $SET in
    1.33 +		# no options for it
    1.34 +		'') sed -i 's|HAVE_OPENGL TRUE|HAVE_OPENGL FALSE|' CMakeLists.txt;;
    1.35 +	esac
    1.36 +
    1.37 +	mkdir -p libtiff-build
    1.38 +	cd       libtiff-build
    1.39 +
    1.40 +	cmake \
    1.41 +		-DCMAKE_INSTALL_DOCDIR=/usr/share/doc/libtiff-$VERSION \
    1.42 +		-DCMAKE_INSTALL_PREFIX=/usr \
    1.43 +		-G Ninja \
    1.44 +		.. &&
    1.45 +	ninja &&
    1.46 +	ninja install
    1.47  }
    1.48  
    1.49  genpkg_rules() {
    1.50 @@ -28,16 +39,34 @@
    1.51  		tiff)
    1.52  			copy *.so*
    1.53  			CAT="graphics|libraries"
    1.54 -			DEPENDS="jpeg-turbo zlib"
    1.55 +			DEPENDS="libjpeg-turbo liblzma zlib"
    1.56  			;;
    1.57  		tiff-apps)
    1.58  			copy bin/
    1.59  			CAT="graphics|CLI applications"
    1.60 -			DEPENDS="libjpeg-turbo zlib tiff"
    1.61 +			DEPENDS="tiff"
    1.62  			;;
    1.63 -		*-dev)
    1.64 +		tiff-dev)
    1.65  			copy @dev
    1.66 -			DEPENDS="tiff tiff-apps libjpeg-turbo-dev zlib-dev"
    1.67 +			DEPENDS="tiff tiff-apps"
    1.68 +			;;
    1.69 +
    1.70 +		tiff-gl)
    1.71 +			copy *.so*
    1.72 +			CAT="graphics|libraries"
    1.73 +			DEPENDS="libjpeg-turbo liblzma zlib"
    1.74 +			PROVIDE="tiff:mesa"
    1.75 +			;;
    1.76 +		tiff-gl-apps)
    1.77 +			copy bin/
    1.78 +			CAT="graphics|CLI applications"
    1.79 +			DEPENDS="freeglut mesa tiff"
    1.80 +			PROVIDE="tiff-apps:mesa"
    1.81 +			;;
    1.82 +		tiff-gl-dev)
    1.83 +			copy @dev
    1.84 +			DEPENDS="tiff-gl tiff-gl-apps"
    1.85 +			PROVIDE="tiff-dev:mesa"
    1.86  			;;
    1.87  	esac
    1.88  }