1{ lib, stdenv, fetchurl, libtiff, libjpeg, zlib }:
2
3stdenv.mkDerivation rec {
4 pname = "lcms2";
5 version = "2.15";
6
7 src = fetchurl {
8 url = "mirror://sourceforge/lcms/${pname}-${version}.tar.gz";
9 sha256 = "sha256-sgy8vQ9QNDO+Kk6BRiEG+mEFCjUHTcJKTjVnktlxqzk=";
10 };
11
12 outputs = [ "bin" "dev" "out" ];
13
14 propagatedBuildInputs = [ libtiff libjpeg zlib ];
15
16 # See https://trac.macports.org/ticket/60656
17 LDFLAGS = if stdenv.hostPlatform.isDarwin then "-Wl,-w" else null;
18
19 meta = with lib; {
20 description = "Color management engine";
21 homepage = "http://www.littlecms.com/";
22 license = licenses.mit;
23 platforms = platforms.all;
24 };
25}