From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:f42::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UFweK68Qy2GPnwAAgWs5BA (envelope-from ) for ; Tue, 28 Dec 2021 14:27:11 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id EIH7J68Qy2GUYgEAauVa8A (envelope-from ) for ; Tue, 28 Dec 2021 14:27:11 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 26D2F2D19B for ; Tue, 28 Dec 2021 14:27:11 +0100 (CET) Received: from localhost ([::1]:38064 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2CVS-0005PT-8b for larch@yhetil.org; Tue, 28 Dec 2021 08:27:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35988) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2CVK-0005OZ-GM for guix-patches@gnu.org; Tue, 28 Dec 2021 08:27:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:33801) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2CVK-0001Rh-4i for guix-patches@gnu.org; Tue, 28 Dec 2021 08:27:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n2CVK-0005dJ-24 for guix-patches@gnu.org; Tue, 28 Dec 2021 08:27:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52848] [PATCH] gnu: Add openshadinglanguage. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 28 Dec 2021 13:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52848 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52848@debbugs.gnu.org Cc: Vinicius Monego X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164069801621634 (code B ref -1); Tue, 28 Dec 2021 13:27:01 +0000 Received: (at submit) by debbugs.gnu.org; 28 Dec 2021 13:26:56 +0000 Received: from localhost ([127.0.0.1]:45347 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2CVE-0005cr-4n for submit@debbugs.gnu.org; Tue, 28 Dec 2021 08:26:56 -0500 Received: from lists.gnu.org ([209.51.188.17]:39722) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2CVD-0005cl-Gb for submit@debbugs.gnu.org; Tue, 28 Dec 2021 08:26:55 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35970) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2CVD-0005OR-CJ for guix-patches@gnu.org; Tue, 28 Dec 2021 08:26:55 -0500 Received: from mout02.posteo.de ([185.67.36.66]:48687) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2CVB-0001Q1-5H for guix-patches@gnu.org; Tue, 28 Dec 2021 08:26:55 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id B5F44240101 for ; Tue, 28 Dec 2021 14:26:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1640698009; bh=bxaD30/bWXOPsn+dGMmA8o1c1V8Lr3aK4YMDHEOq0yI=; h=From:To:Cc:Subject:Date:From; b=DxYbLfHJ33ZPzvtwlsT3rxT46ctF/doerfmVgTxDvLMx9ORnGIkk/jGapgiTztAEB XzkH+GJICPFcCJ2lRFJHVG1iyxvE2nzRErKUtcEwOBV6+Qw37BNZUTAm+7A4yLSKZI E84zPI7CClXGbdb3HC1A8xnEK0PNaXlCfx0o2DRkIvnWEGy56EHUy5jtUcJ+G6KrH6 dxpu3FhS8sImvQ8KL6O2PRajmmyeULsl+30UJ6SRYBrMCxptE6REtCKIZrAbOASTmC 2Yu/NjQvygi2cmy+RXgQuVuD43aBUYWGlpjbgvdsQWmZf5/E0p5Q3dVhLQTMedNQfN MqKm8HdVIDrJg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JNb0m54Fyz9rxR; Tue, 28 Dec 2021 14:26:48 +0100 (CET) From: Vinicius Monego Date: Tue, 28 Dec 2021 13:26:03 +0000 Message-Id: <20211228132603.59064-1-monego@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.66; envelope-from=monego@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640698031; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=FZOOwwUxy31oLgDiCjQz3Nm+kzFi26HDj9HC+CqXErk=; b=nmYjRfH0vtFOcJZs9z2S3VVN57le1gSBrQTefy+7qkwkBcu0urvYLfL34t001uFabEhEP/ QiLU54WybFFbjwHo/G+krqn3g8CMKp30n6wG1CZ7VH28NlOfCFsNu1kBUbzCZnOFpEQ8xl 0SAU3DRdwn5C4yGFVIOuF7MGwk7yA0gt2/b3eD9zfd2Eh+pJylISCw+D5jGB+8DPTq4jp+ NRA1d19MTKOfSLOc7lXiZgBoQ1znrJ8heuFWnxGZzLbyIErvsNZ0WQeFUdoP7JwAGJgs8M p4Ra78rgC61209nmzEC/AhJXHuZXbMpKU4lNSwpN1Uj+tuAakR2jE7+blTynYA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640698031; a=rsa-sha256; cv=none; b=Th96r7Y/BT0DbZb2nMEkne78Pd0lkAMnClXsKKZTSmyD5wknlRcNnXjxFddXeASEbIjH69 fmvJoOwVg5qNXrBuJ8aVgC4puYjg9vxT8C+3TMtnAw2D+oDswa4WzaRK6AksysQuppMmgO /sdhm0kFcriq0bWHySvr2k/eKrAHKnKDtURMCX3zEzqacPPJCEdgWRsEX6rcta5/oYvo/V ErVt8i/eAa8FjvTH/+om55VWKl2PyzpqXlo2bvBGJpnUOr+7ciMTmPAIKpDsjCx6GAF/KU pOtdnc07DF7EvMHwkqjsZOeGxyNmAbL4hyyslecLTHt1DGyHvuDJxlsTkpjgtg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=DxYbLfHJ; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -0.87 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=DxYbLfHJ; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 26D2F2D19B X-Spam-Score: -0.87 X-Migadu-Scanner: scn1.migadu.com X-TUID: 9SZf4WuBmSdM * 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