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