From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id 2FHnNNK/Q2beYAAAe85BDQ:P1 (envelope-from ) for ; Tue, 14 May 2024 21:47:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 2FHnNNK/Q2beYAAAe85BDQ (envelope-from ) for ; Tue, 14 May 2024 21:47:30 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1715716050; a=rsa-sha256; cv=none; b=F+ZfmKz6tkhQELiN1qyW0cETfQV2qAJyNv9UVXi8rwxZ+vzD1Cb5DfZaaMPa9gW463bR3t CfIHHCeWuHDhBon9sWEAl9VTacBamLZd1DbNTaKug7jMU5Avd+Y+GoqUJOdkNCZOtpWFBi 89wigdeae/BRGOvnuIzndUxV6mszlBktE284mx+DbU9Rj2KZgXKqPQn5VoTM/CGWIokWkA TwsWIPLGAfLgqDeHgH0iRbGn0YnhptVMKIMHnmVPlZZ9saKuVGrXFGYfV0IAp2RPZ0mr57 TFxRDs7VqOqLKBlNjERo4F5dmYR1/RX3eOYgcmo4EtbIqNN2C7m02/J27ncneg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1715716050; h=from:from:sender:sender:reply-to: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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=2cGPw2rkLzD4vcSproID5qXb0oMkqoWkA3yvpZvezpw=; b=ZtJ95ZSYSMgEQ/PLIffOys8LOfO3R8LeItTleyqyeW6WrFdTK08/5zZQ7FEIuSGEh5ote7 Hd/XBD875w2W38h9uHwY/qKZscWIjC/kMK0UXRXJc1AbCYxvOQQ9cEBWgRlXCzIOVbsWT+ wlmieCmDZhbl3adUC1eWf9O5VRxvY7w8Ob2Y7rsTXzm6jKzf9+BCbqLjwFOuVONIZB1wNh AixB77nOlF15IxtoV6qHB8JtyjngUncZRXFUvx0sxdZQo5DSFE/ofdd1zP6SrqLtmayMWf RL5Vp+YXxY49aocZVMpPa5h3tP6IkegDil8voX9SS7FslH2Wf9XFQIoVCKPvQg== 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 35282269E7 for ; Tue, 14 May 2024 21:47:30 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s6y74-0005fp-RL; Tue, 14 May 2024 15:47:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s6y73-0005fQ-5r for guix-patches@gnu.org; Tue, 14 May 2024 15:47:01 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s6y72-0004jp-LF for guix-patches@gnu.org; Tue, 14 May 2024 15:47:00 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s6y73-0004HD-QP for guix-patches@gnu.org; Tue, 14 May 2024 15:47:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70319] [PATCH v2 1/2] gnu: Add tinygltf. References: In-Reply-To: Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 14 May 2024 19:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70319 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70319@debbugs.gnu.org Cc: Vinicius Monego , ngraves@ngraves.fr Received: via spool by 70319-submit@debbugs.gnu.org id=B70319.171571596416395 (code B ref 70319); Tue, 14 May 2024 19:47:01 +0000 Received: (at 70319) by debbugs.gnu.org; 14 May 2024 19:46:04 +0000 Received: from localhost ([127.0.0.1]:41102 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6y65-0004GA-Ul for submit@debbugs.gnu.org; Tue, 14 May 2024 15:46:03 -0400 Received: from 2.mo584.mail-out.ovh.net ([46.105.72.36]:34149) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6y61-0004Fm-Kk for 70319@debbugs.gnu.org; Tue, 14 May 2024 15:46:00 -0400 Received: from director9.ghost.mail-out.ovh.net (unknown [10.108.17.245]) by mo584.mail-out.ovh.net (Postfix) with ESMTP id 4Vf6KY6tLCz1K3l for <70319@debbugs.gnu.org>; Tue, 14 May 2024 19:45:53 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-4x2zg (unknown [10.110.178.240]) by director9.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 535951FE44; Tue, 14 May 2024 19:45:52 +0000 (UTC) Received: from ngraves.fr ([37.59.142.108]) by ghost-submission-6684bf9d7b-4x2zg with ESMTPSA id AYzLD3C/Q2bMVDAAmw/+SA (envelope-from ); Tue, 14 May 2024 19:45:52 +0000 X-OVh-ClientIp: 81.67.146.208 Date: Tue, 14 May 2024 21:45:27 +0200 Message-ID: <20240514194545.17491-1-ngraves@ngraves.fr> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 13794807134005158419 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrvdegiedgudegtdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepteeffefhfffhjeevleeuvdehgffgveekheeuhfekhfehuefgheffhedugfegleeinecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepuddvjedrtddrtddruddpkedurdeijedrudegiedrvddtkedpfeejrdehledrudegvddruddtkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepnhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrpdhnsggprhgtphhtthhopedupdhrtghpthhtohepjedtfeduleesuggvsggsuhhgshdrghhnuhdrohhrghdpoffvtefjohhsthepmhhoheekgedpmhhouggvpehsmhhtphhouhht 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: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches From: Nicolas Graves via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 35282269E7 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.37 X-Spam-Score: -6.37 X-TUID: eJATT7zoYOhY From: Vinicius Monego * gnu/packages/graphics.scm (tinygltf): New variable. Change-Id: I749ced85142b8dd2ebbe916533f27bf6d167bbff --- gnu/packages/graphics.scm | 67 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm index ca2d74224f1..fd0330c0b6f 100644 --- a/gnu/packages/graphics.scm +++ b/gnu/packages/graphics.scm @@ -2413,6 +2413,73 @@ (define-public openxr ;; Dual licensed. Either license applies. (license (list license:asl2.0 license:expat)))) +(define-public tinygltf + (package + (name "tinygltf") + (version "2.8.21") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/syoyo/tinygltf") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "14712lndwlk4y001jxf2rxhwrw0w5gbc2hyh9kpik1galdzg41ii")) + (modules '((guix build utils))) + (snippet #~(begin + (for-each delete-file-recursively + (list "examples" ".github")) + ;; tinygltf bundles json, stb-image and stb-image-write + ;; headers. Delete those, and use symlink ours instead. + (for-each delete-file + (list "json.hpp" + "stb_image.h" + "stb_image_write.h" + "tests/catch.hpp")))))) + (build-system cmake-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'use-our-packages + (lambda* (#:key inputs #:allow-other-keys) + (symlink (search-input-file inputs "include/nlohmann/json.hpp") + "json.hpp") + (symlink (search-input-file inputs "include/stb_image.h") + "stb_image.h") + (symlink (search-input-file inputs "include/stb_image_write.h") + "stb_image_write.h") + (symlink (search-input-file inputs "include/catch.hpp") + "catch.hpp"))) + (add-after 'install 'delete-static-lib + (lambda _ + (delete-file (string-append #$output + "/lib/libtinygltf.a")))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (if tests? + (with-directory-excursion "../source/tests" + (invoke "make") + (invoke "./tester") + (invoke "./tester_noexcept")) + (format #t "test suite not run~%"))))))) + (inputs (list nlohmann-json stb-image stb-image-write)) + (native-inputs (list catch-framework clang)) + (home-page "https://github.com/syoyo/tinygltf") + (synopsis "Header only GL Transmission Format library") + (description "This package provides a header only C++11 +@url{https://github.com/KhronosGroup/glTF, glTF} (GL Transmission Format) 2.0 +library. + +GL Transmission Format (glTF) is a royalty-free specification for the +efficient transmission and loading of 3D scenes and models by applications. +glTF minimizes both the size of 3D assets, and the runtime processing needed +to unpack and use those assets. glTF defines an extensible, common publishing +format for 3D content tools and services that streamlines authoring workflows +and enables interoperable use of content across the industry.") + (license license:expat))) + (define-public monado (package (name "monado") -- 2.41.0