2010-04-30 12:49:33 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, bzip2
|
|
|
|
, freetype
|
|
|
|
, graphviz
|
|
|
|
, ghostscript
|
|
|
|
, libjpeg
|
|
|
|
, libpng
|
|
|
|
, libtiff
|
|
|
|
, libxml2
|
|
|
|
, zlib
|
|
|
|
, libtool
|
|
|
|
, jasper
|
|
|
|
, libX11
|
|
|
|
, tetex ? null
|
|
|
|
, librsvg ? null
|
|
|
|
}:
|
2008-05-16 13:05:37 +02:00
|
|
|
|
2010-04-30 12:49:33 +02:00
|
|
|
let
|
|
|
|
version = "6.5.9-1";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2008-02-28 19:53:39 +01:00
|
|
|
name = "ImageMagick-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2008-05-19 11:32:24 +02:00
|
|
|
url = "mirror://imagemagick/${name}.tar.bz2";
|
2010-02-05 23:00:51 +01:00
|
|
|
sha256 = "0a4yhhfqagz28yccydngi31050101jfmq5ljln61g69yy6m47ifg";
|
2008-02-28 19:53:39 +01:00
|
|
|
};
|
|
|
|
|
2008-05-16 13:05:37 +02:00
|
|
|
configureFlags = ''
|
|
|
|
--with-gs-font-dir=${ghostscript}/share/ghostscript/fonts
|
|
|
|
--with-gslib
|
2010-04-30 12:49:33 +02:00
|
|
|
${if tetex != null then "--with-frozenpaths" else ""}
|
2008-05-16 13:05:37 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs =
|
2010-04-30 12:49:33 +02:00
|
|
|
[ bzip2 freetype graphviz ghostscript libjpeg libpng
|
|
|
|
libtiff libxml2 zlib tetex librsvg libtool jasper libX11
|
|
|
|
];
|
2008-02-28 19:53:39 +01:00
|
|
|
|
2010-04-30 12:49:33 +02:00
|
|
|
preConfigure = if tetex != null then
|
2008-05-16 13:05:37 +02:00
|
|
|
''
|
2010-04-30 12:49:33 +02:00
|
|
|
export DVIDecodeDelegate=${tetex}/bin/dvips
|
2008-05-16 13:05:37 +02:00
|
|
|
'' else "";
|
2008-02-28 19:53:39 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.imagemagick.org;
|
|
|
|
};
|
2010-04-30 12:49:33 +02:00
|
|
|
}
|