2007-11-11 08:54:45 +01:00
|
|
|
args: with args;
|
2008-02-02 21:41:20 +01:00
|
|
|
stdenv.mkDerivation (rec {
|
|
|
|
name = "ImageMagick-6.3.8-2";
|
2007-07-02 00:31:24 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-02-02 21:41:20 +01:00
|
|
|
url = "ftp://ftp.imagemagick.org/pub/ImageMagick/${name}.tar.bz2";
|
|
|
|
sha256 = "05bp10dzpw691w8hdw0n2xr65194xgslpqhzf4xbxla7gz8clnmg";
|
2007-07-02 00:31:24 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = " --with-dots --with-gs-font-dir="+ ghostscript +
|
2007-11-11 08:54:45 +01:00
|
|
|
"/share/ghostscript/fonts --with-gslib " +(
|
|
|
|
if args ? tetex then " --with-frozenpaths " else ""
|
|
|
|
);
|
2007-07-02 00:31:24 +02:00
|
|
|
|
|
|
|
buildInputs = [bzip2 freetype ghostscript graphviz libjpeg libpng
|
2008-01-15 01:55:21 +01:00
|
|
|
libtiff libX11 libxml2 zlib libtool] ++ (if args ? tetex then [args.tetex] else [])
|
2008-01-31 11:41:45 +01:00
|
|
|
++ (if args ? librsvg then [args.librsvg] else []);
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.imagemagick.org;
|
|
|
|
};
|
2007-11-11 08:54:45 +01:00
|
|
|
} // (if args ? tetex then {
|
|
|
|
preConfigure = "
|
|
|
|
export DVIDecodeDelegate=${args.tetex}/bin/dvips
|
|
|
|
";
|
2008-02-02 21:41:20 +01:00
|
|
|
} else {}))
|