2019-01-06 19:29:52 +00:00
|
|
|
{ stdenv, fetchurl, sconsPackages, qt3, lcms1, libtiff, vigra }:
|
2013-03-29 01:06:34 +00:00
|
|
|
|
|
|
|
/* how to calibrate your monitor:
|
|
|
|
Eg see https://wiki.archlinux.org/index.php/ICC_Profiles#Loading_ICC_Profiles
|
|
|
|
*/
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "lprof-1.11.4.1";
|
2019-01-06 19:29:52 +00:00
|
|
|
nativeBuildInputs = [ sconsPackages.scons_3_0_1 ];
|
2018-11-12 02:52:07 +00:00
|
|
|
buildInputs = [ qt3 lcms1 libtiff vigra ];
|
2013-03-29 01:06:34 +00:00
|
|
|
|
2016-08-04 09:12:20 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2013-03-29 01:06:34 +00:00
|
|
|
preConfigure = ''
|
|
|
|
export QTDIR=${qt3}
|
|
|
|
export qt_directory=${qt3}
|
|
|
|
'';
|
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "mirror://sourceforge/lprof/lprof/lprof-1.11.4/lprof-1.11.4.1.tar.gz";
|
2013-03-29 01:06:34 +00:00
|
|
|
sha256 = "0q8x24fm5yyvm151xrl3l03p7hvvciqnkbviprfnvlr0lyg9wsrn";
|
|
|
|
};
|
|
|
|
|
2018-11-12 02:52:07 +00:00
|
|
|
sconsFlags = "SYSLIBS=1";
|
|
|
|
preBuild = ''
|
2013-03-29 01:06:34 +00:00
|
|
|
export CXX=g++
|
|
|
|
'';
|
2018-11-12 02:52:07 +00:00
|
|
|
prefixKey = "PREFIX=";
|
2013-03-29 01:06:34 +00:00
|
|
|
|
2017-08-29 11:57:56 +00:00
|
|
|
patches = [ ./lcms-1.17.patch ./keep-environment.patch ];
|
2013-03-29 01:06:34 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Little CMS ICC profile construction set";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://sourceforge.net/projects/lprof";
|
2013-03-29 01:06:34 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2013-03-29 01:06:34 +00:00
|
|
|
};
|
|
|
|
}
|