From patchwork Fri Aug 12 06:59:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "\\(" X-Patchwork-Id: 41572 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 30C6127BBEA; Fri, 12 Aug 2022 08:01:58 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id D811427BBE9 for ; Fri, 12 Aug 2022 08:01:57 +0100 (BST) Received: from localhost ([::1]:36640 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMOg9-0000Yd-1S for patchwork@mira.cbaines.net; Fri, 12 Aug 2022 03:01:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43492) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMOfG-0000Xk-Ha for guix-patches@gnu.org; Fri, 12 Aug 2022 03:01:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37536) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oMOfG-0008Sz-9L for guix-patches@gnu.org; Fri, 12 Aug 2022 03:01:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oMOfG-0000gw-2A for guix-patches@gnu.org; Fri, 12 Aug 2022 03:01:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56959] [PATCH v2] gnu: packages: Add glad2. References: <20220803194625.6770-1-paren@disroot.org> In-Reply-To: <20220803194625.6770-1-paren@disroot.org> Resent-From: "(" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 12 Aug 2022 07:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56959 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56959@debbugs.gnu.org Cc: "\(" Received: via spool by 56959-submit@debbugs.gnu.org id=B56959.16602876042478 (code B ref 56959); Fri, 12 Aug 2022 07:01:02 +0000 Received: (at 56959) by debbugs.gnu.org; 12 Aug 2022 07:00:04 +0000 Received: from localhost ([127.0.0.1]:55518 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMOeJ-0000dt-U9 for submit@debbugs.gnu.org; Fri, 12 Aug 2022 03:00:04 -0400 Received: from knopi.disroot.org ([178.21.23.139]:47664) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMOeI-0000dK-1n for 56959@debbugs.gnu.org; Fri, 12 Aug 2022 03:00:02 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 46A914385D; Fri, 12 Aug 2022 09:00:01 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RGYOqmHCDsdp; Fri, 12 Aug 2022 08:59:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1660287599; bh=ROLLPY0cMtouJ/+wyN2t4mFWbYxYl8msVmScEanLzQY=; h=From:To:Cc:Subject:Date; b=Q8UZk97cNPNWoZlnGHRvpHhiW5hhudVmZViAbOcZsSbmGQIILSTn6O8dPfDBO+bPg igQdg9e4pIYheoCqVj43beDSJqp/nYcbnSXyOwp5+L0V9vTzP54SkDXWwU8qQfnRGV k5fWWBXxd8i5JcbM+nGxkzYWQW3KGaHlszTbf3S8k5oggnShDSaWgFFtKhdhDjcP2Q DMgOycm8wfSWbS9DKdOFEwzqm4FHF5jfSkjGBKxIs9Tz+opKD7NX6TZFq06x4Fv6F4 +Rtk9J0WL9nSSfqCXJvxg5cDiSQzpoZYQMix96OSzJM/zaU1Bzgw9V+JeQPeVzZvAA Fmo0KW9iLkzew== Date: Fri, 12 Aug 2022 07:59:58 +0100 Message-Id: <20220812065958.2469-1-paren@disroot.org> Mime-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: "\(" X-ACL-Warn: , "\( via Guix-patches" X-Patchwork-Original-From: "\( via Guix-patches" via From: "\\(" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/gl.scm (glad2): New variable. --- gnu/packages/gl.scm | 46 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm index c740c087dd..50c7b91526 100644 --- a/gnu/packages/gl.scm +++ b/gnu/packages/gl.scm @@ -17,6 +17,7 @@ ;;; Copyright © 2021 Ivan Gankevich ;;; Copyright © 2021 John Kehayias ;;; Copyright © 2022 Petr Hodina +;;; Copyright © 2022 ( ;;; ;;; This file is part of GNU Guix. ;;; @@ -66,6 +67,7 @@ (define-module (gnu packages gl) #:use-module (guix build-system meson) #:use-module (guix build-system python) #:use-module (guix build-system waf) + #:use-module (guix gexp) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix utils) @@ -215,6 +217,50 @@ (define-public glad generate a GL/GLES/EGL/GLX/WGL loader tailored for specific requirements.") (license license:expat))) +(define-public glad2 + (let ((commit "b1051403cf81b984f9fc11cc5916adb5afd34766") + (revision "2")) + (package + (name "glad2") + (version (git-version "0.1.36" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Dav1dde/glad") + (commit commit))) + (sha256 + (base32 + "03q3gxg2z9lpx7hqac2fd3ld94avhkg4mdxjfjgrgh97kyx9knpm")))) + (build-system python-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-after 'install 'install-cmake-plugin + (lambda _ + (let ((cmake-dir (string-append #$output + "/share/cmake/glad"))) + (mkdir-p cmake-dir) + (copy-file "cmake/CMakeLists.txt" + (string-append cmake-dir + "/glad.cmake")))))))) + (inputs (list python-jinja2)) + (home-page "https://glad.sh") + (synopsis "Multi-language OpenGL/Vulkan loader generator") + (description + "GLAD 2 is a graphics library binding generator. It generates code +for calling into Vulkan and GL-related APIs from the official Khronos XML +specifications. Among the improvements are: +@enumerate +@item Better EGL, GLX, and WGL support +@item Support for generating Vulkan bindings +@item A Rust frontend +@item More generator options for enabling features such as the generation +of header-only C bindings +@item Improvements for CMake support +@item Better API +@end enumerate") + (license license:expat)))) + (define-public s2tc (package (name "s2tc")