2016-10-20 05:06:50 +03:00
|
|
|
{ stdenv, fetchurl, fetchpatch, pkgconfig, zlib, libjpeg, xz }:
|
2012-05-16 01:13:46 +04:00
|
|
|
|
2013-12-23 21:06:09 +04:00
|
|
|
let
|
2017-06-07 15:20:37 +03:00
|
|
|
version = "4.0.8";
|
2013-12-23 21:06:09 +04:00
|
|
|
in
|
2012-05-16 01:13:46 +04:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libtiff-${version}";
|
2012-08-27 06:53:19 +04:00
|
|
|
|
2003-11-06 18:24:19 +03:00
|
|
|
src = fetchurl {
|
2016-09-15 02:31:32 +03:00
|
|
|
url = "http://download.osgeo.org/libtiff/tiff-${version}.tar.gz";
|
2017-06-07 15:20:37 +03:00
|
|
|
sha256 = "0419mh6kkhz5fkyl77gv0in8x4d2jpdpfs147y8mj86rrjlabmsr";
|
2003-11-06 18:24:19 +03:00
|
|
|
};
|
2012-08-27 06:53:19 +04:00
|
|
|
|
2017-01-18 17:50:58 +03:00
|
|
|
prePatch =let
|
|
|
|
debian = fetchurl {
|
2017-08-08 06:06:55 +03:00
|
|
|
url = http://snapshot.debian.org/archive/debian-debug/20170602T031313Z/pool/main/t/tiff/tiff_4.0.8-2.debian.tar.xz;
|
2017-06-07 15:20:37 +03:00
|
|
|
sha256 = "1ssjh6vn9rvl2jwm34i3p89g8lj0c7fj3cziva9rj4vasfps58ng";
|
2017-01-18 17:50:58 +03:00
|
|
|
};
|
|
|
|
in ''
|
|
|
|
tar xf '${debian}'
|
|
|
|
patches="$patches $(cat debian/patches/series | sed 's|^|debian/patches/|')"
|
|
|
|
'';
|
|
|
|
|
2016-08-29 03:30:01 +03:00
|
|
|
outputs = [ "bin" "dev" "out" "doc" ];
|
2014-08-27 03:14:09 +04:00
|
|
|
|
2013-12-23 21:06:09 +04:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ zlib libjpeg xz ]; #TODO: opengl support (bogus configure detection)
|
2009-10-29 17:19:58 +03:00
|
|
|
|
2012-05-16 01:13:46 +04:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2013-12-23 21:06:09 +04:00
|
|
|
doCheck = true;
|
|
|
|
|
2014-07-30 20:04:57 +04:00
|
|
|
meta = with stdenv.lib; {
|
2009-10-29 17:19:58 +03:00
|
|
|
description = "Library and utilities for working with the TIFF image file format";
|
2016-11-24 04:33:32 +03:00
|
|
|
homepage = http://download.osgeo.org/libtiff;
|
2014-07-30 20:04:57 +04:00
|
|
|
license = licenses.libtiff;
|
2014-08-12 21:07:05 +04:00
|
|
|
platforms = platforms.unix;
|
2009-10-29 17:19:58 +03:00
|
|
|
};
|
2003-11-06 18:24:19 +03:00
|
|
|
}
|