2018-07-21 03:44:44 +03:00
|
|
|
{ stdenv, fetchurl, bzip2, freetype, graphviz, ghostscript
|
2016-10-14 00:53:43 +03:00
|
|
|
, libjpeg, libpng, libtiff, libxml2, zlib, libtool, xz, libX11
|
2017-02-28 23:14:24 +03:00
|
|
|
, libwebp, quantumdepth ? 8, fixDarwinDylibNames }:
|
2010-03-04 17:44:47 +03:00
|
|
|
|
2018-04-19 01:53:42 +03:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "graphicsmagick";
|
2019-07-05 23:10:40 +03:00
|
|
|
version = "1.3.32";
|
2010-03-04 17:44:47 +03:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-02-24 01:14:19 +04:00
|
|
|
url = "mirror://sourceforge/graphicsmagick/GraphicsMagick-${version}.tar.xz";
|
2019-07-05 23:10:40 +03:00
|
|
|
sha256 = "1qclp9i31idpcbbqswmnq2q11lmv0a7cvdb1y72xcky8sshaahmq";
|
2010-03-04 17:44:47 +03:00
|
|
|
};
|
|
|
|
|
2016-10-14 00:53:43 +03:00
|
|
|
patches = [
|
|
|
|
./disable-popen.patch
|
2019-07-05 23:10:40 +03:00
|
|
|
./1.3.32-darwin-png-strlcat-fix.patch
|
2016-10-14 00:53:43 +03:00
|
|
|
];
|
2016-05-30 11:26:31 +03:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-shared"
|
|
|
|
"--with-quantum-depth=${toString quantumdepth}"
|
|
|
|
"--with-gslib=yes"
|
|
|
|
];
|
2010-03-04 17:44:51 +03:00
|
|
|
|
2010-03-04 17:44:47 +03:00
|
|
|
buildInputs =
|
|
|
|
[ bzip2 freetype ghostscript graphviz libjpeg libpng libtiff libX11 libxml2
|
2016-05-30 11:26:31 +03:00
|
|
|
zlib libtool libwebp
|
2017-02-28 23:14:24 +03:00
|
|
|
]
|
|
|
|
++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
2010-03-04 17:44:47 +03:00
|
|
|
|
2012-12-28 22:20:09 +04:00
|
|
|
nativeBuildInputs = [ xz ];
|
2012-02-24 01:14:19 +04:00
|
|
|
|
2010-03-04 19:41:10 +03:00
|
|
|
postInstall = ''
|
|
|
|
sed -i 's/-ltiff.*'\'/\'/ $out/bin/*
|
|
|
|
'';
|
|
|
|
|
2010-03-04 17:44:47 +03:00
|
|
|
meta = {
|
|
|
|
homepage = http://www.graphicsmagick.org;
|
|
|
|
description = "Swiss army knife of image processing";
|
|
|
|
license = stdenv.lib.licenses.mit;
|
2012-02-04 01:02:00 +04:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2010-03-04 17:44:47 +03:00
|
|
|
};
|
|
|
|
}
|