pkgs/applications/graphics/ImageMagick: added build input jasper for jpeg-2000 support

While I was at it, I also rewrote the expression to get along without
using the deprecated "args: with args;" style.

svn path=/nixpkgs/trunk/; revision=21454
This commit is contained in:
Peter Simons 2010-04-30 10:49:33 +00:00
parent 376895d34c
commit 5139e564fa
2 changed files with 31 additions and 15 deletions

View File

@ -1,8 +1,25 @@
args: with args; { stdenv
, fetchurl
, bzip2
, freetype
, graphviz
, ghostscript
, libjpeg
, libpng
, libtiff
, libxml2
, zlib
, libtool
, jasper
, libX11
, tetex ? null
, librsvg ? null
}:
let version = "6.5.9-1"; in let
version = "6.5.9-1";
stdenv.mkDerivation (rec { in
stdenv.mkDerivation rec {
name = "ImageMagick-${version}"; name = "ImageMagick-${version}";
src = fetchurl { src = fetchurl {
@ -13,22 +30,20 @@ stdenv.mkDerivation (rec {
configureFlags = '' configureFlags = ''
--with-gs-font-dir=${ghostscript}/share/ghostscript/fonts --with-gs-font-dir=${ghostscript}/share/ghostscript/fonts
--with-gslib --with-gslib
${if args ? tetex then "--with-frozenpaths" else ""} ${if tetex != null then "--with-frozenpaths" else ""}
''; '';
buildInputs = buildInputs =
[ bzip2 freetype ghostscript graphviz libjpeg libpng [ bzip2 freetype graphviz ghostscript libjpeg libpng
libtiff libX11 libxml2 zlib libtool libtiff libxml2 zlib tetex librsvg libtool jasper libX11
] ];
++ stdenv.lib.optional (args ? tetex) args.tetex
++ stdenv.lib.optional (args ? librsvg) args.librsvg;
preConfigure = if args ? tetex then preConfigure = if tetex != null then
'' ''
export DVIDecodeDelegate=${args.tetex}/bin/dvips export DVIDecodeDelegate=${tetex}/bin/dvips
'' else ""; '' else "";
meta = { meta = {
homepage = http://www.imagemagick.org; homepage = http://www.imagemagick.org;
}; };
}) }

View File

@ -7678,13 +7678,14 @@ let
imagemagick = import ../applications/graphics/ImageMagick { imagemagick = import ../applications/graphics/ImageMagick {
inherit stdenv fetchurl bzip2 freetype graphviz ghostscript inherit stdenv fetchurl bzip2 freetype graphviz ghostscript
libjpeg libpng libtiff libxml2 zlib libtool; libjpeg libpng libtiff libxml2 zlib libtool jasper;
inherit (xlibs) libX11; inherit (xlibs) libX11;
}; };
imagemagickBig = import ../applications/graphics/ImageMagick { imagemagickBig = import ../applications/graphics/ImageMagick {
inherit stdenv fetchurl bzip2 freetype graphviz ghostscript inherit stdenv fetchurl bzip2 freetype graphviz ghostscript
libjpeg libpng libtiff libxml2 zlib tetex librsvg libtool; libjpeg libpng libtiff libxml2 zlib tetex librsvg libtool
jasper;
inherit (xlibs) libX11; inherit (xlibs) libX11;
}; };