From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlo Zancanaro Subject: bug#36977: Add OpenSubdiv library, and add as Blender dependency Date: Sun, 11 Aug 2019 21:32:13 +1000 Message-ID: <87o90wkkea.fsf@zancanaro.id.au> References: <87mugj1xt6.fsf@dustycloud.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:54819) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hwm5w-00084e-E6 for bug-guix@gnu.org; Sun, 11 Aug 2019 07:33:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hwm5u-0003SP-SH for bug-guix@gnu.org; Sun, 11 Aug 2019 07:33:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35974) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hwm5u-0003SG-P6 for bug-guix@gnu.org; Sun, 11 Aug 2019 07:33:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hwm5u-0001KU-Lf for bug-guix@gnu.org; Sun, 11 Aug 2019 07:33:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <87mugj1xt6.fsf@dustycloud.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 36977@debbugs.gnu.org --=-=-= Content-Type: text/plain; format=flowed On Fri, Aug 09 2019, Christopher Lemmer Webber wrote: > I was surprised to open Blender 2.80 and find that subdivision > surfaces (necessary for organic modeling) were doing nothing. I > couldn't figure out why this was, until I found out that Blender > now uses OpenSubdiv for subdivision surfaces. I gave this a go, but it didn't go as smoothly as I had hoped. I packaged opensubdiv, which I have attached, but adding it to the Blender inputs didn't cause the subdivision modifier to work. I'm not really able to take this any further, but this is at least something to start with! --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-opensubdiv.patch Content-Transfer-Encoding: quoted-printable >From 959496bd6461474a30ce0e28ee0f6765a7523671 Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Sun, 11 Aug 2019 21:25:14 +1000 Subject: [PATCH] gnu: Add opensubdiv. * gnu/packages/graphics.scm (opensubdiv): New variable. --- gnu/packages/graphics.scm | 43 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm index bc3a418e99..11ea550039 100644 --- a/gnu/packages/graphics.scm +++ b/gnu/packages/graphics.scm @@ -12,6 +12,7 @@ ;;; Copyright =C2=A9 2018 Alex Kost ;;; Copyright =C2=A9 2018 Kei Kebreau ;;; Copyright =C2=A9 2019 Mark H Weaver +;;; Copyright =C2=A9 2019 Carlo Zancanaro ;;; ;;; This file is part of GNU Guix. ;;; @@ -77,6 +78,48 @@ #:use-module (guix packages) #:use-module (guix utils)) =20 +(define-public opensubdiv + (package + (name "opensubdiv") + (version "3.4.0") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/PixarAnimationStudio= s/OpenSubdiv/archive/v3_4_0.tar.gz")) + (sha256 + (base32 + "1r3ki5lql9i71c775n6d8gxix4svg9f17ck0i58wfw9kz29b4cnr")))) + (build-system cmake-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (add-before 'configure 'set-glew-location + (lambda* (#:key inputs #:allow-other-keys) + (setenv "GLEW_LOCATION" (assoc-ref inputs "glew")) + #t)) + (add-before 'check 'start-xorg-server + (lambda* (#:key inputs #:allow-other-keys) + ;; The test suite requires a running X server. + (system (string-append (assoc-ref inputs "xorg-serve= r") + "/bin/Xvfb :1 &")) + (setenv "DISPLAY" ":1") + #t))))) + (native-inputs + `(("xorg-server" ,xorg-server))) + (inputs + `(("glew" ,glew) + ("libxrandr" ,libxrandr) + ("libxcursor" ,libxcursor) + ("libxinerama" ,libxinerama) + ("libxi" ,libxi) + ("zlib" ,zlib) + ("glfw" ,glfw))) + (home-page "http://graphics.pixar.com/opensubdiv/") + (synopsis "High performance subdivision surface evaluation") + (description + "OpenSubdiv is a set of libraries that implement high performance +subdivision surface (subdiv) evaluation on massively parallel CPU and GPU +architectures.") + (license license:asl2.0))) + (define-public blender (package (name "blender") --=20 2.22.0 --=-=-=--