2015-05-13 06:31:26 -07:00
|
|
|
{ stdenv, fetchurl, pkgconfig, zlib, libjpeg, xz }:
|
2012-05-15 14:13:46 -07:00
|
|
|
|
2013-12-23 09:06:09 -08:00
|
|
|
let
|
2015-09-14 18:31:53 -07:00
|
|
|
version = "4.0.6";
|
2013-12-23 09:06:09 -08:00
|
|
|
in
|
2012-05-15 14:13:46 -07:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libtiff-${version}";
|
2012-08-26 19:53:19 -07:00
|
|
|
|
2003-11-06 07:24:19 -08:00
|
|
|
src = fetchurl {
|
2016-09-14 16:31:32 -07:00
|
|
|
url = "http://download.osgeo.org/libtiff/tiff-${version}.tar.gz";
|
2015-09-14 18:31:53 -07:00
|
|
|
sha256 = "136nf1rj9dp5jgv1p7z4dk0xy3wki1w0vfjbk82f645m0w4samsd";
|
2003-11-06 07:24:19 -08:00
|
|
|
};
|
2012-08-26 19:53:19 -07:00
|
|
|
|
2016-08-28 17:30:01 -07:00
|
|
|
outputs = [ "bin" "dev" "out" "doc" ];
|
2014-08-26 16:14:09 -07:00
|
|
|
|
2013-12-23 09:06:09 -08:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ zlib libjpeg xz ]; #TODO: opengl support (bogus configure detection)
|
2009-10-29 07:19:58 -07:00
|
|
|
|
2012-05-15 14:13:46 -07:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2013-12-23 09:06:09 -08:00
|
|
|
doCheck = true;
|
|
|
|
|
2014-07-30 09:04:57 -07:00
|
|
|
meta = with stdenv.lib; {
|
2009-10-29 07:19:58 -07:00
|
|
|
description = "Library and utilities for working with the TIFF image file format";
|
2013-01-29 04:32:55 -08:00
|
|
|
homepage = http://www.remotesensing.org/libtiff/;
|
2014-07-30 09:04:57 -07:00
|
|
|
license = licenses.libtiff;
|
2014-08-12 10:07:05 -07:00
|
|
|
platforms = platforms.unix;
|
2009-10-29 07:19:58 -07:00
|
|
|
};
|
2003-11-06 07:24:19 -08:00
|
|
|
}
|