unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: [PATCH 2/3]: Add openjpeg
@ 2014-09-15  6:11 Dušan Xmetov
  2014-09-15  7:00 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Dušan Xmetov @ 2014-09-15  6:11 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 41 bytes --]

A fixed-up version, thanks to Alex Kost.

[-- Attachment #2: openjpeg.patch --]
[-- Type: application/octet-stream, Size: 1938 bytes --]

From 8a3c7f47623d07b034172a711062a70f6a21aacd Mon Sep 17 00:00:00 2001
From: Marek Benc <merkur32@gmail.com>
Date: Mon, 15 Sep 2014 07:56:22 +0200
Subject: [PATCH] gnu: Add openjpeg

* gnu/packages/image.scm (openjpeg): New variable.
---
 gnu/packages/image.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index d163d70..39a716e 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -185,3 +185,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)))
-- 
1.8.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread
* Re: [PATCH 2/3]: Add openjpeg
@ 2014-09-14  9:16 Dušan Xmetov
  0 siblings, 0 replies; 3+ messages in thread
From: Dušan Xmetov @ 2014-09-14  9:16 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 56 bytes --]

Oops, seems like I forgot the actual patch, here it is.

[-- Attachment #2: openjpeg.patch --]
[-- Type: application/octet-stream, Size: 2498 bytes --]

From 5083b8479a08b29e22c2277f1b144c7cd98d3d4b Mon Sep 17 00:00:00 2001
From: Marek Benc <merkur32@gmail.com>
Date: Sun, 14 Sep 2014 11:03:35 +0200
Subject: [PATCH] gnu: Add openjpeg

* gnu/packages/image.scm (openjpeg): New variable.
---
 gnu/packages/image.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index c45baa0..b4e437c 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -21,11 +21,13 @@
   #:use-module (gnu packages compression)
   #:use-module (gnu packages file)
   #:use-module (gnu packages fontutils)
+  #:use-module (gnu packages ghostscript)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages xml)
   #:use-module ((guix licenses) #:renamer (symbol-prefix-proc 'license:))
   #:use-module (guix packages)
   #:use-module (guix download)
+  #:use-module (guix build-system cmake)
   #:use-module (guix build-system gnu))
 
 (define-public libpng
@@ -184,3 +186,38 @@ meaning it doesn't completely work yet. However, it is 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)))
-- 
1.8.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-09-15  7:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-15  6:11 [PATCH 2/3]: Add openjpeg Dušan Xmetov
2014-09-15  7:00 ` Ludovic Courtès
  -- strict thread matches above, loose matches on Subject: below --
2014-09-14  9:16 Dušan Xmetov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).