2010-03-04 15:44:47 +01:00
|
|
|
{stdenv, fetchurl, bzip2, freetype, graphviz, ghostscript
|
|
|
|
, libjpeg, libpng, libtiff, libxml2, zlib, libtool
|
|
|
|
, libX11}:
|
|
|
|
|
|
|
|
let version = "1.3.11"; in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "graphicsmagick-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/graphicsmagick/GraphicsMagick-${version}.tar.bz2";
|
|
|
|
sha256 = "184grcvxa5w0ghiv8zf2vdva0kgp3njf20k3h6lbylspjgd3zhxg";
|
|
|
|
};
|
|
|
|
|
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
|
|
|
|
];
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|