Adding graphicsmagick 1.3.7 for octave imread() and alike to work.
svn path=/nixpkgs/trunk/; revision=20390
This commit is contained in:
parent
ba274e578c
commit
40d3c2f29a
31
pkgs/applications/graphics/graphicsmagick/1.3.7.nix
Normal file
31
pkgs/applications/graphics/graphicsmagick/1.3.7.nix
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
{stdenv, fetchurl, bzip2, freetype, graphviz, ghostscript
|
||||||
|
, libjpeg, libpng, libtiff, libxml2, zlib, libtool
|
||||||
|
, libX11}:
|
||||||
|
|
||||||
|
let version = "1.3.7"; in
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "graphicsmagick-${version}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "mirror://sourceforge/graphicsmagick/GraphicsMagick-${version}.tar.gz";
|
||||||
|
sha256 = "0bwyqqvajz0hi34gfbjvm9f78icxk3fb442mvn8q2rapmvfpfkgf";
|
||||||
|
};
|
||||||
|
|
||||||
|
configureFlags = "--enable-shared";
|
||||||
|
|
||||||
|
buildInputs =
|
||||||
|
[ bzip2 freetype ghostscript graphviz libjpeg libpng libtiff libX11 libxml2
|
||||||
|
zlib libtool
|
||||||
|
];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
sed -i 's/-ltiff.*'\'/\'/ $out/bin/*
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = http://www.graphicsmagick.org;
|
||||||
|
description = "Swiss army knife of image processing";
|
||||||
|
license = stdenv.lib.licenses.mit;
|
||||||
|
};
|
||||||
|
}
|
@ -2541,9 +2541,12 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
octave = import ../development/interpreters/octave {
|
octave = import ../development/interpreters/octave {
|
||||||
inherit stdenv fetchurl gfortran readline ncurses perl flex qhull texinfo
|
inherit stdenv fetchurl gfortran readline ncurses perl flex qhull texinfo;
|
||||||
graphicsmagick;
|
|
||||||
inherit (xlibs) libX11;
|
inherit (xlibs) libX11;
|
||||||
|
# Needed because later gm versions require an initialization the actual octave is not
|
||||||
|
# doing.
|
||||||
|
# http://www-old.cae.wisc.edu/pipermail/octave-maintainers/2010-February/015295.html
|
||||||
|
graphicsmagick = graphicsmagick137;
|
||||||
};
|
};
|
||||||
|
|
||||||
# mercurial (hg) bleeding edge version
|
# mercurial (hg) bleeding edge version
|
||||||
@ -7387,6 +7390,12 @@ let
|
|||||||
inherit (xlibs) libX11;
|
inherit (xlibs) libX11;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
graphicsmagick137 = import ../applications/graphics/graphicsmagick/1.3.7.nix {
|
||||||
|
inherit stdenv fetchurl bzip2 freetype graphviz ghostscript
|
||||||
|
libjpeg libpng libtiff libxml2 zlib libtool;
|
||||||
|
inherit (xlibs) libX11;
|
||||||
|
};
|
||||||
|
|
||||||
gtkpod = import ../applications/audio/gtkpod {
|
gtkpod = import ../applications/audio/gtkpod {
|
||||||
inherit stdenv fetchurl pkgconfig libgpod gettext perl perlXMLParser flex libid3tag libvorbis;
|
inherit stdenv fetchurl pkgconfig libgpod gettext perl perlXMLParser flex libid3tag libvorbis;
|
||||||
inherit (gtkLibs) gtk glib;
|
inherit (gtkLibs) gtk glib;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user