unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#52813] [PATCH 0/2] Add libjxl.
@ 2021-12-27  0:26 Vinicius Monego
  2021-12-27  0:28 ` [bug#52813] [PATCH 1/2] gnu: Add google-highway Vinicius Monego
  2021-12-30  0:03 ` bug#52813: [PATCH 0/2] " Nicolas Goaziou
  0 siblings, 2 replies; 4+ messages in thread
From: Vinicius Monego @ 2021-12-27  0:26 UTC (permalink / raw)
  To: 52813; +Cc: Vinicius Monego

Vinicius Monego (2):
  gnu: Add google-highway.
  gnu: Add libjxl.

 gnu/packages/cpp.scm   | 28 ++++++++++++++++++++-
 gnu/packages/image.scm | 55 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 82 insertions(+), 1 deletion(-)


base-commit: 17d7343df82f9865fad5035285976be3000131d4
-- 
2.30.2





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

* [bug#52813] [PATCH 1/2] gnu: Add google-highway.
  2021-12-27  0:26 [bug#52813] [PATCH 0/2] Add libjxl Vinicius Monego
@ 2021-12-27  0:28 ` Vinicius Monego
  2021-12-27  0:28   ` [bug#52813] [PATCH 2/2] gnu: Add libjxl Vinicius Monego
  2021-12-30  0:03 ` bug#52813: [PATCH 0/2] " Nicolas Goaziou
  1 sibling, 1 reply; 4+ messages in thread
From: Vinicius Monego @ 2021-12-27  0:28 UTC (permalink / raw)
  To: 52813; +Cc: Vinicius Monego

* gnu/packages/cpp.scm (google-highway): New variable.
---
 gnu/packages/cpp.scm | 28 +++++++++++++++++++++++++++-
 1 file changed, 27 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index b6c56cf1a1..ec64024f62 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -10,7 +10,7 @@
 ;;; Copyright © 2020 Roel Janssen <roel@gnu.org>
 ;;; Copyright © 2020, 2021 Ricardo Wurmus <rekado@elephly.net>
 ;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
-;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
+;;; Copyright © 2020, 2021 Vinicius Monego <monego@posteo.net>
 ;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
 ;;; Copyright © 2020 Alexandros Theodotou <alex@zrythm.org>
@@ -300,6 +300,32 @@ It also provides accelerated implementation of common mathematical functions
 operating on batches.")
     (license license:bsd-3)))
 
+(define-public google-highway
+  (package
+    (name "google-highway")
+    (version "0.15.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/google/highway")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1yjwgnrpd9m99x2nqf6ld28zc6y9nlsxqg128bxxmja1gg4g4qdz"))))
+    (build-system cmake-build-system)
+    (arguments
+     (list
+      #:configure-flags
+      #~(list "-DHWY_SYSTEM_GTEST=on")))
+    (native-inputs
+     (list googletest))
+    (home-page "https://github.com/google/highway")
+    (synopsis "SIMD library with runtime dispatch")
+    (description "Highway is a performance-portable, length-agnostic C++
+library for SIMD (Single Instruction, Multiple Data) with runtime dispatch.")
+    (license license:asl2.0)))
+
 (define-public chaiscript
   (package
     (name "chaiscript")
-- 
2.30.2





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

* [bug#52813] [PATCH 2/2] gnu: Add libjxl.
  2021-12-27  0:28 ` [bug#52813] [PATCH 1/2] gnu: Add google-highway Vinicius Monego
@ 2021-12-27  0:28   ` Vinicius Monego
  0 siblings, 0 replies; 4+ messages in thread
From: Vinicius Monego @ 2021-12-27  0:28 UTC (permalink / raw)
  To: 52813; +Cc: Vinicius Monego

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

diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index 16811623e6..a38e0a0bcc 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -57,6 +57,7 @@
   #:use-module (gnu packages boost)
   #:use-module (gnu packages check)
   #:use-module (gnu packages cmake)
+  #:use-module (gnu packages cpp)
   #:use-module (gnu packages curl)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages documentation)
@@ -95,6 +96,7 @@
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (guix download)
+  #:use-module (guix gexp)
   #:use-module (guix git-download)
   #:use-module (guix utils)
   #:use-module (guix build-system gnu)
@@ -2227,6 +2229,59 @@ by AOM, including with alpha.")
 Format) file format decoder and encoder.")
     (license license:lgpl3+)))
 
+(define-public libjxl
+  (package
+    (name "libjxl")
+    (version "0.6.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/libjxl/libjxl")
+             (commit (string-append "v" version))
+             (recursive? #t)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "17pvc5zgm9az5hfg2p80325f42w3dqspyb03iakrwg9x4n3vjckx"))
+       (modules '((guix build utils)))
+       (snippet
+        ;; Delete the bundles that will not be used.  libjxl bundles LCMS
+        ;; which is in Guix but there is no option to use the system package.
+        ;; This option will be introduced after version 0.6.1 and then we
+        ;; probably won't need to download the submodules.
+        '(begin
+           (for-each (lambda (directory)
+                       (delete-file-recursively
+                        (string-append "third_party/" directory)))
+                     '("brotli" "googletest" "highway"))))))
+    (build-system cmake-build-system)
+    (arguments
+     (list
+      #:configure-flags
+      #~(list "-DJPEGXL_FORCE_SYSTEM_GTEST=true"
+              "-DJPEGXL_FORCE_SYSTEM_BROTLI=true"
+              ;; "-DJPEGXL_FORCE_SYSTEM_LCMS2=true" ; next version after 0.6.1
+              "-DJPEGXL_FORCE_SYSTEM_HWY=true")))
+    (native-inputs
+     (list asciidoc doxygen googletest pkg-config python))
+    (inputs
+     (list freeglut
+           giflib
+           google-brotli
+           google-highway
+           imath
+           ;; lcms ; next version after 0.6.1
+           libavif
+           libjpeg-turbo
+           libpng
+           libwebp
+           openexr))
+    (home-page "https://github.com/libjxl/libjxl")
+    (synopsis "JPEG XL image format reference implementation")
+    (description "This package contains a reference implementation of JPEG XL
+(encoder and decoder).")
+    (license license:bsd-3)))
+
 (define-public mtpaint
   (package
     (name "mtpaint")
-- 
2.30.2





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

* bug#52813: [PATCH 0/2] Add libjxl.
  2021-12-27  0:26 [bug#52813] [PATCH 0/2] Add libjxl Vinicius Monego
  2021-12-27  0:28 ` [bug#52813] [PATCH 1/2] gnu: Add google-highway Vinicius Monego
@ 2021-12-30  0:03 ` Nicolas Goaziou
  1 sibling, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2021-12-30  0:03 UTC (permalink / raw)
  To: Vinicius Monego; +Cc: 52813-done

Hello

Vinicius Monego <monego@posteo.net> writes:

> Vinicius Monego (2):
>   gnu: Add google-highway.
>   gnu: Add libjxl.

Applied. Thank you.

I removed the gexp parts since you weren't using ungexp.

Regards,
-- 
Nicolas Goaziou




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

end of thread, other threads:[~2021-12-30  0:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-27  0:26 [bug#52813] [PATCH 0/2] Add libjxl Vinicius Monego
2021-12-27  0:28 ` [bug#52813] [PATCH 1/2] gnu: Add google-highway Vinicius Monego
2021-12-27  0:28   ` [bug#52813] [PATCH 2/2] gnu: Add libjxl Vinicius Monego
2021-12-30  0:03 ` bug#52813: [PATCH 0/2] " Nicolas Goaziou

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).