diff options
author | Marek Benc <merkur32@gmail.com> | 2014-09-15 07:56:22 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-09-15 09:00:12 +0200 |
commit | 38c55e5c8eef44e07aabeb9345a14ab84295e67e (patch) | |
tree | 1b3304c8de7a011ae4881e21de8bba7a9d475aaf /gnu/packages | |
parent | 8d9872b539b8491d050ac3bba32028f255f29ed4 (diff) | |
download | guix-38c55e5c8eef44e07aabeb9345a14ab84295e67e.tar.gz guix-38c55e5c8eef44e07aabeb9345a14ab84295e67e.zip |
gnu: Add openjpeg.
* gnu/packages/image.scm (openjpeg): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/image.scm | 40 |
1 files changed, 39 insertions, 1 deletions
diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm index 112b9573d7..1ab79ad954 100644 --- a/gnu/packages/image.scm +++ b/gnu/packages/image.scm @@ -23,10 +23,12 @@ #:use-module (gnu packages fontutils) #:use-module (gnu packages pkg-config) #:use-module (gnu packages xml) + #:use-module (gnu packages ghostscript) ;lcms #:use-module ((guix licenses) #:renamer (symbol-prefix-proc 'license:)) #:use-module (guix packages) #:use-module (guix download) - #:use-module (guix build-system gnu)) + #:use-module (guix build-system gnu) + #:use-module (guix build-system cmake)) (define-public libpng (package @@ -185,3 +187,39 @@ maintaining parity with available encoders, so it is useful for real work.") (home-page "http://jbig2dec.sourceforge.net/") (license license:gpl2+))) + +(define-public openjpeg + (package + (name "openjpeg") + (version "2.0.0") + (source + (origin + (method url-fetch) + (uri + (string-append "http://openjpeg.googlecode.com/files/" name "-" + version ".tar.gz")) + (sha256 + (base32 "1n05yrmscpgksrh2kfh12h18l0lw9j03mgmvwcg3hm8m0lwgak9k")))) + + (build-system cmake-build-system) + (arguments + ;; Trying to run `$ make check' results in a no rule fault. + '(#:tests? #f)) + (inputs + `(("lcms" ,lcms) + ("libpng" ,libpng) + ("libtiff" ,libtiff) + ("zlib" ,zlib))) + (synopsis "JPEG 2000 codec") + (description + "The OpenJPEG library is a JPEG 2000 codec written in C. It has +been developed in order to promote the use of JPEG 2000, the new +still-image compression standard from the Joint Photographic Experts +Group (JPEG). + +In addition to the basic codec, various other features are under +development, among them the JP2 and MJ2 (Motion JPEG 2000) file formats, +an indexing tool useful for the JPIP protocol, JPWL-tools for +error-resilience, a Java-viewer for j2k-images, ...") + (home-page "http://jbig2dec.sourceforge.net/") + (license license:bsd-2))) |