* [bug#52848] [PATCH] gnu: Add openshadinglanguage.
@ 2021-12-28 13:26 Vinicius Monego
2022-01-15 21:48 ` bug#52848: " Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Vinicius Monego @ 2021-12-28 13:26 UTC (permalink / raw)
To: 52848; +Cc: Vinicius Monego
* gnu/packages/graphics.scm (openshadinglanguage): New variable.
---
gnu/packages/graphics.scm | 55 +++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index 3be37d7841..f857aa04db 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -79,6 +79,7 @@
#:use-module (gnu packages kde-frameworks)
#:use-module (gnu packages libusb)
#:use-module (gnu packages linux)
+ #:use-module (gnu packages llvm)
#:use-module (gnu packages lua)
#:use-module (gnu packages maths)
#:use-module (gnu packages mp3)
@@ -666,6 +667,60 @@ vertices, sorting by primitive type, merging of redundant materials and many
more.")
(license license:bsd-3)))
+(define-public openshadinglanguage
+ (package
+ (name "openshadinglanguage")
+ (version "1.11.16.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/AcademySoftwareFoundation/OpenShadingLanguage")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0x0lc163vl2b57l75bf5zxlr6vm2y1f1izlxdnrw3vsapv3r9k9g"))))
+ (build-system cmake-build-system)
+ (arguments
+ `(#:configure-flags (list "-DUSE_PARTIO=OFF") ; TODO: not packaged
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'set-paths 'add-ilmbase-include-path
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; OpenEXR 2 propagates ilmbase, but its include files do not
+ ;; appear in the C_INCLUDE_PATH.
+ (let ((headers (string-append
+ (assoc-ref inputs "ilmbase")
+ "/include/OpenEXR")))
+ (setenv "C_INCLUDE_PATH"
+ (string-append headers ":"
+ (or (getenv "C_INCLUDE_PATH") "")))
+ (setenv "CPLUS_INCLUDE_PATH"
+ (string-append headers ":"
+ (or (getenv "CPLUS_INCLUDE_PATH") ""))))))
+ (replace 'check
+ (lambda _
+ (invoke "ctest" "--exclude-regex"
+ (string-join
+ (list
+ "osl-imageio" ; OIIO not compiled with freetype
+ "osl-imageio.opt" ; OIIO not compiled with freetype
+ "texture-udim" ; file does not exist
+ "texture-udim.opt" ; file does not exist
+ "example-deformer" ; could not find OSLConfig
+ "python-oslquery") ; no module oslquery
+ "|")))))))
+ (native-inputs
+ (list bison clang flex llvm pybind11 python-wrapper))
+ (inputs
+ (list boost imath openexr-2 openimageio pugixml qtbase-5 zlib))
+ (home-page "https://github.com/AcademySoftwareFoundation/OpenShadingLanguage")
+ (synopsis "Shading language for production GI renderers")
+ (description "Open Shading Language (OSL) is a language for programmable
+shading in advanced renderers and other applications, ideal for describing
+materials, lights, displacement, and pattern generation.")
+ (license license:bsd-3)))
+
(define-public cgal
(package
(name "cgal")
base-commit: 28b477cb2e5d9185da16f305caff15809dfa06f3
--
2.30.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#52848: [PATCH] gnu: Add openshadinglanguage.
2021-12-28 13:26 [bug#52848] [PATCH] gnu: Add openshadinglanguage Vinicius Monego
@ 2022-01-15 21:48 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2022-01-15 21:48 UTC (permalink / raw)
To: Vinicius Monego; +Cc: 52848-done
[-- Attachment #1: Type: text/plain, Size: 189 bytes --]
Hi Vinicius,
Vinicius Monego <monego@posteo.net> skribis:
> * gnu/packages/graphics.scm (openshadinglanguage): New variable.
Applied with the tweaks below.
Thanks,
Ludo’.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 2292 bytes --]
diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index bc59652d33..b69ab52aec 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -604,21 +604,33 @@ (define-public openshadinglanguage
(string-append headers ":"
(or (getenv "CPLUS_INCLUDE_PATH") ""))))))
(replace 'check
- (lambda _
- (invoke "ctest" "--exclude-regex"
- (string-join
- (list
- "osl-imageio" ; OIIO not compiled with freetype
- "osl-imageio.opt" ; OIIO not compiled with freetype
- "texture-udim" ; file does not exist
- "texture-udim.opt" ; file does not exist
- "example-deformer" ; could not find OSLConfig
- "python-oslquery") ; no module oslquery
- "|")))))))
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "ctest" "--exclude-regex"
+ (string-join
+ (list
+ "osl-imageio" ; OIIO not compiled with freetype
+ "osl-imageio.opt" ; OIIO not compiled with freetype
+ "texture-udim" ; file does not exist
+ "texture-udim.opt" ; file does not exist
+ "example-deformer" ; could not find OSLConfig
+ "python-oslquery") ; no module oslquery
+ "|"))))))))
(native-inputs
- (list bison clang flex llvm pybind11 python-wrapper))
+ (list bison
+ clang
+ flex
+ llvm
+ pybind11
+ python-wrapper))
(inputs
- (list boost imath openexr-2 openimageio pugixml qtbase-5 zlib))
+ (list boost
+ imath
+ openexr-2
+ openimageio
+ pugixml
+ qtbase-5
+ zlib))
(home-page "https://github.com/AcademySoftwareFoundation/OpenShadingLanguage")
(synopsis "Shading language for production GI renderers")
(description "Open Shading Language (OSL) is a language for programmable
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-15 21:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-28 13:26 [bug#52848] [PATCH] gnu: Add openshadinglanguage Vinicius Monego
2022-01-15 21:48 ` bug#52848: " Ludovic Courtès
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).