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
|
2010-10-28 10:46:13 +02:00
|
|
|
version = "6.6.5-4";
|
2010-04-30 12:49:33 +02:00
|
|
|
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-10-28 10:46:13 +02:00
|
|
|
sha256 = "1s3l98xc1gnxi2wdg3sy9723f6qf5yk81wln8ghn2z9kvi09w7gw";
|
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-10-28 10:46:13 +02:00
|
|
|
--with-frozenpaths
|
|
|
|
${if librsvg != null then "--with-rsvg" 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
|
|
|
}
|