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