Adding 'mupdf', a lightweight PDF 1.7 viewer

As a side effect, I add openjpeg and jbig2dec.

svn path=/nixpkgs/trunk/; revision=23069
This commit is contained in:
Lluís Batlle i Rossell
2010-08-09 20:59:38 +00:00
parent 093980344d
commit 1b59ae0b83
4 changed files with 71 additions and 0 deletions
@@ -0,0 +1,24 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation {
name = "openjpeg-1.2";
src = fetchurl {
url = http://www.openjpeg.org/openjpeg_v1_2.tar.gz;
sha256 = "1i72i0hhssgg6vfkaw3gpwf5ld65g9s77ay8pxd4any1xy54qa90";
};
patchPhase = ''
sed -i -e 's/-o root -g [^ ]\+//' Makefile Makefile.osx
'';
preInstall = ''
export installFlags="PREFIX=$out"
'';
meta = {
homepage = http://www.openjpeg.org/;
description = "Open-source JPEG 2000 codec written in C language";
license = "BSD";
};
}