From patchwork Wed Aug 3 19:46:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "\\(" X-Patchwork-Id: 41209 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 2758827BBEA; Wed, 3 Aug 2022 20:47:14 +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 45FCF27BBE9 for ; Wed, 3 Aug 2022 20:47:13 +0100 (BST) Received: from localhost ([::1]:33118 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJKKm-0004NS-Dx for patchwork@mira.cbaines.net; Wed, 03 Aug 2022 15:47:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55640) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJKKd-0004NK-09 for guix-patches@gnu.org; Wed, 03 Aug 2022 15:47:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60241) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJKKc-0001lA-Nf for guix-patches@gnu.org; Wed, 03 Aug 2022 15:47:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJKKc-0003kT-JI for guix-patches@gnu.org; Wed, 03 Aug 2022 15:47:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56959] [PATCH] gnu: packages: Add glad2. Resent-From: "(" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 03 Aug 2022 19:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56959 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56959@debbugs.gnu.org Cc: "\(" X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165955600314382 (code B ref -1); Wed, 03 Aug 2022 19:47:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Aug 2022 19:46:43 +0000 Received: from localhost ([127.0.0.1]:49990 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJKKJ-0003jt-92 for submit@debbugs.gnu.org; Wed, 03 Aug 2022 15:46:43 -0400 Received: from lists.gnu.org ([209.51.188.17]:48660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJKKF-0003ji-G2 for submit@debbugs.gnu.org; Wed, 03 Aug 2022 15:46:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55562) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJKKF-0004Mv-AF for guix-patches@gnu.org; Wed, 03 Aug 2022 15:46:39 -0400 Received: from knopi.disroot.org ([178.21.23.139]:55196) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJKKC-0001iS-OO for guix-patches@gnu.org; Wed, 03 Aug 2022 15:46:38 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id BBC8B40DCD; Wed, 3 Aug 2022 21:46:33 +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 UTF8SMTP id q_2KlZ43wuQF; Wed, 3 Aug 2022 21:46:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1659555991; bh=o0+KwwpCydGS+Ns8NOLST7GqkmPkKgNw7f0LmoqXFPk=; h=From:To:Cc:Subject:Date; b=HzqRMMACw3DFsqYhL6DP5tcbTEph2OQbX1legJnj+KRfTtGXkyX2DS5Qpz+m7sWSz NfVEn05ON/Yhzi2qSUJlChwjBRTjHCGPHSjCl29oMAiiAETgEzDTOYGXTf8eOEhmMa Dp1tj18a6ra5bxWvdw2faYOZdaHHWA4XUKkZznLs0kxRrGB342aXfYs4jdRJ+eZhPV f2WWPcILmCIx6cPalR19Cwx7wYnS7d8LmaC6kca5DT3M0zfTl/UB2+kqegKeZcceQG JlziqPTBbuhGta9rPcx+lP6ZcMtU+gnRuJXrFpRbdFRlIYb2slozRVjO6Pph9k+aca bfXIpwWqFHsZg== Date: Wed, 3 Aug 2022 20:46:25 +0100 Message-Id: <20220803194625.6770-1-paren@disroot.org> Mime-Version: 1.0 Received-SPF: pass client-ip=178.21.23.139; envelope-from=paren@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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+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..3539b66a2a 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* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (cmake-dir (string-append + out "/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 an improved iteration of the GLAD graphics API loader +generator. It generates bindings to Vulkan and GL-related APIs from the +official Khronos 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 (such as an option to make GLAD header-only) +@item Improvements to CMake support +@item Better API +@end enumerate") + (license license:expat)))) + (define-public s2tc (package (name "s2tc")