2008-02-28 18:53:39 +00:00
|
|
|
args: with args;
|
2008-05-16 12:05:37 +01:00
|
|
|
|
2008-02-28 18:53:39 +00:00
|
|
|
stdenv.mkDerivation (rec {
|
|
|
|
name = "ImageMagick-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2008-05-16 12:05:37 +01:00
|
|
|
urls = [
|
|
|
|
"ftp://ftp.imagemagick.org/pub/ImageMagick/${name}.tar.bz2"
|
|
|
|
"http://ftp.surfnet.nl/pub/ImageMagick/${name}.tar.bz2"
|
|
|
|
];
|
2008-02-28 18:53:39 +00:00
|
|
|
sha256 = "0ynn8gxixjb16xhg60hp2sbfymh03y5qxxgffwlchciiylw9dlvd";
|
|
|
|
};
|
|
|
|
|
2008-05-16 12:05:37 +01:00
|
|
|
configureFlags = ''
|
|
|
|
--with-dots
|
|
|
|
--with-gs-font-dir=${ghostscript}/share/ghostscript/fonts
|
|
|
|
--with-gslib
|
|
|
|
${if args ? tetex then "--with-frozenpaths" else ""}
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
[ bzip2 freetype ghostscript graphviz libjpeg libpng
|
|
|
|
libtiff libX11 libxml2 zlib libtool
|
|
|
|
]
|
|
|
|
++ stdenv.lib.optional (args ? tetex) args.tetex
|
|
|
|
++ stdenv.lib.optional (args ? librsvg) args.librsvg;
|
2008-02-28 18:53:39 +00:00
|
|
|
|
2008-05-16 12:05:37 +01:00
|
|
|
preConfigure = if args ? tetex then
|
|
|
|
''
|
|
|
|
export DVIDecodeDelegate=${args.tetex}/bin/dvips
|
|
|
|
'' else "";
|
2008-02-28 18:53:39 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.imagemagick.org;
|
|
|
|
};
|
2008-05-16 12:05:37 +01:00
|
|
|
})
|