From patchwork Sat Aug 24 00:25:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Steve Sprang X-Patchwork-Id: 15134 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id BC1C017304; Sat, 24 Aug 2019 01:26:08 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 6AF10172F4 for ; Sat, 24 Aug 2019 01:26:08 +0100 (BST) Received: from localhost ([::1]:35490 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1Jse-0004ge-0B for patchwork@mira.cbaines.net; Fri, 23 Aug 2019 20:26:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54639) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1JsZ-0004gX-8s for guix-patches@gnu.org; Fri, 23 Aug 2019 20:26:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i1JsY-00060L-2P for guix-patches@gnu.org; Fri, 23 Aug 2019 20:26:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60820) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i1JsX-000608-Vw for guix-patches@gnu.org; Fri, 23 Aug 2019 20:26:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i1JsX-0000Px-Q1 for guix-patches@gnu.org; Fri, 23 Aug 2019 20:26:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#37170] [PATCH] gnu: Add opencsg. Resent-From: Steve Sprang Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 24 Aug 2019 00:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37170 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 37170@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15666063471580 (code B ref -1); Sat, 24 Aug 2019 00:26:01 +0000 Received: (at submit) by debbugs.gnu.org; 24 Aug 2019 00:25:47 +0000 Received: from localhost ([127.0.0.1]:41408 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i1JsE-0000PK-Ts for submit@debbugs.gnu.org; Fri, 23 Aug 2019 20:25:47 -0400 Received: from lists.gnu.org ([209.51.188.17]:40527) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i1JsC-0000PC-NP for submit@debbugs.gnu.org; Fri, 23 Aug 2019 20:25:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54565) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1JsB-0004g6-4f for guix-patches@gnu.org; Fri, 23 Aug 2019 20:25:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i1Js9-0005qQ-Sl for guix-patches@gnu.org; Fri, 23 Aug 2019 20:25:39 -0400 Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]:45057) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i1Js9-0005q4-Ku for guix-patches@gnu.org; Fri, 23 Aug 2019 20:25:37 -0400 Received: by mail-lj1-x22f.google.com with SMTP id l1so10335466lji.12 for ; Fri, 23 Aug 2019 17:25:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=3xdjS5V8cNY6hlKGzTNmDxyP7CYj+/3ZbvxjIeyKdQQ=; b=OqYcozC2KViYEAjFyZl2yD10u+hR0p9yQnN8mMABJ94pDLgTMJlB8E0NO/8CqHaV7M uS8jRFH1W9yT3bJeSWI+uDbG5R4fY+NMTC3lbtryPwtk936z+V+19mdulbjqRqtnOnUx GKzd6TBMGZFDq4lmVNMEnU3NnSuVidG1Ml7pwAUBhjCAKkTw9xBVX75Y9vOkO0PirNBs GnyLrPfpjocmwaMK2GCqOxds26sD3ltW6IAPvJER/nl3FNwGnFZIX7ouYEmL3FshRpb+ KpHOtS5Vu6RdCdRLZQPRoexNcpCc564tX59e01qjdZnoMed9IXDHmYhfJZk+LLOaZrp6 iWWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=3xdjS5V8cNY6hlKGzTNmDxyP7CYj+/3ZbvxjIeyKdQQ=; b=DsM+YgZinWPwNmTjX//5pZDxqqrkaA/G4yPwwkXUvumjdWRePSpIKLBks7xR4YgV5Y SfujW8o/QwA0RHeuNoZRAj1VJZYfFbq4jLvQVszcgMZ4gtnRC7mtBtj40apEMcMca+Rr KC8aU9AS2n4j0/84nms6ZCyj09HxzUGGddNL+MigpF299wAcJKpVgiabN247rTXECdpd 6N5VX+R9WREw+14cuhBEXXONW23O/FzPUAEqOTWaVwqqyOjrBVVlZ9/NZeDeAu9akgeL s3IqJs2kxMVNF8rXWcJSrAoyr2AtU2R5L7jZEjz0SB7IXlDrDVRFxsKeI4+ruAfItUUi Up4A== X-Gm-Message-State: APjAAAV8RQjysgE9FCeYAg1Hn6GC6FwBiLqFJWJvRi4YVsnPJ5KVcWZq TPXyqnGSgCRgMyFg5jd2v6EJRnl0hg+rsSm23FBgZg== X-Google-Smtp-Source: APXvYqwJLWikTvyXa5NHnMHgh/Yw6geDv1jYB71awMoBvnoOAlRYtLP7n9DXW60KMc4USI5U9yqlZ0Tz3GHFAT8J3Tw= X-Received: by 2002:a2e:8116:: with SMTP id d22mr4576717ljg.178.1566606335928; Fri, 23 Aug 2019 17:25:35 -0700 (PDT) MIME-Version: 1.0 From: Steve Sprang Date: Fri, 23 Aug 2019 17:25:25 -0700 Message-ID: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches From 796d4013b78bb596690f254bdc08f89143805ace Mon Sep 17 00:00:00 2001 From: Steve Sprang Date: Fri, 23 Aug 2019 15:38:42 -0700 Subject: [PATCH] gnu: Add opencsg. * gnu/packages/graphics.scm (opencsg): New variable. --- gnu/packages/graphics.scm | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm index ee56dae54e..9071884a3c 100644 --- a/gnu/packages/graphics.scm +++ b/gnu/packages/graphics.scm @@ -13,6 +13,7 @@ ;;; Copyright © 2018 Kei Kebreau ;;; Copyright © 2019 Mark H Weaver ;;; Copyright © 2019 Carlo Zancanaro +;;; Copyright © 2019 Steve Sprang ;;; ;;; This file is part of GNU Guix. ;;; @@ -1018,3 +1019,41 @@ requirements.") performance subdivision surface (subdiv) evaluation on massively parallel CPU and GPU architectures.") (license license:asl2.0))) + +(define-public opencsg + (package + (name "opencsg") + (version "1.4.2") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/floriankirsch/OpenCSG/" + "archive/opencsg-" + (string-map + (lambda (c) + (if (char=? c #\.) #\- c)) version) + "-release.tar.gz")) + (sha256 + (base32 + "0b18gb7w9rpwkrjrkxx9apy17v5infgh2hnbzg9y3f54rxcjwx1c")))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'configure + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "src/Makefile" + (("/usr/local") (assoc-ref outputs "out"))) + #t)) + (add-before 'build 'skip-example + (lambda _ (chdir "src") #t))))) + (inputs + `(("glew" ,glew) + ("freeglut" ,freeglut))) + (synopsis "Library for rendering Constructive Solid Geometry (CSG)") + (description + "OpenCSG is a library for rendering Constructive Solid Geometry (CSG) using +OpenGL. CSG is an approach for modeling complex 3D-shapes using simpler ones. +For example, two shapes can be combined by uniting them, by intersecting them, +or by subtracting one shape from the other.") + (home-page "http://www.opencsg.org/") + (license license:gpl2))) -- 2.23.0