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