2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, libtiff, libjpeg, zlib }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "lcms2";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "2.13.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-07-21 07:28:18 +00:00
|
|
|
url = "mirror://sourceforge/lcms/${pname}-${version}.tar.gz";
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-1HPnlueyfFrwG9bRVS1CtFtDRX5xgs6ZA/OLt0ggO4g=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "bin" "dev" "out" ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ libtiff libjpeg zlib ];
|
|
|
|
|
2020-10-19 23:25:03 +00:00
|
|
|
# See https://trac.macports.org/ticket/60656
|
|
|
|
LDFLAGS = if stdenv.hostPlatform.isDarwin then "-Wl,-w" else null;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Color management engine";
|
|
|
|
homepage = "http://www.littlecms.com/";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|