2010-03-04 15:44:47 +01:00
|
|
|
{stdenv, fetchurl, bzip2, freetype, graphviz, ghostscript
|
2012-02-23 22:14:19 +01:00
|
|
|
, libjpeg, libpng, libtiff, libxml2, zlib, libtool, xz
|
2010-03-04 15:44:47 +01:00
|
|
|
, libX11}:
|
|
|
|
|
2013-12-04 04:44:15 +01:00
|
|
|
let version = "1.3.18"; in
|
2010-03-04 15:44:47 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "graphicsmagick-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2012-02-23 22:14:19 +01:00
|
|
|
url = "mirror://sourceforge/graphicsmagick/GraphicsMagick-${version}.tar.xz";
|
2013-12-04 04:44:15 +01:00
|
|
|
sha256 = "1axh4j2jr3l92dan15b2nmx9da4l7i0rcz9b5bvfd4q742zfwj7x";
|
2010-03-04 15:44:47 +01:00
|
|
|
};
|
|
|
|
|
2010-03-04 15:44:51 +01:00
|
|
|
configureFlags = "--enable-shared";
|
|
|
|
|
2010-03-04 15:44:47 +01:00
|
|
|
buildInputs =
|
|
|
|
[ bzip2 freetype ghostscript graphviz libjpeg libpng libtiff libX11 libxml2
|
|
|
|
zlib libtool
|
|
|
|
];
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|