From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id gKnMHS73RmaTdgEAqHPOHw:P1 (envelope-from ) for ; Fri, 17 May 2024 08:20:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id gKnMHS73RmaTdgEAqHPOHw (envelope-from ) for ; Fri, 17 May 2024 08:20:30 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=PCdDkSF+; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1715926830; h=from:from:sender:sender: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:dkim-signature; bh=XEs+a51u9+DcTVttbBnvjXLtqAWHkCb/hsw3OYXkC1o=; b=rfZf2qqvTVMT74QnqroihssfYpDIkXCW0J6rZq98gKvIDFvzrAclQQVF1ND+aOF9ZP6mTl pe+iGMxupx7sWnKAfU0AMQpxKj5pcH5+y2i8nUzh9f+DlHr2soPOq5SHotZd7w1Tkb1RiA 6eP51K+fHCJ7Z7MdI1988xXYWRGUZmPV/y5McXEpoFdviYFhALdnUheCqz2KAEeGvXPe/f WighmVcKbDTgbRtrzo0OHgs1EQ2t7GNjjh0COnEexEf0WnfHJscfIXOxoMSup5RHbh+jqZ 20GndkQqSvmyqjQnP4jmEKD5l5/T6wCG35U7gvhUgIlD2ppTV1o1AFygsl/82g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=PCdDkSF+; 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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1715926830; a=rsa-sha256; cv=none; b=KwU5AkYnPkpfCe6CR/0GT8osAJ42iKoOVvC8ak0ruV4eN96WbvddMOiL/GeYQUmSpMIZ4L nyNiDBwc7G0bhK/y0FP62fwCWdgo3zwE6P5hT+4Xt1g+BbVFKPHDPsz+e5rqvM1ToEG9M9 OPhaCDc4RF/docYSWvuoIEdusvIJMLtx3qD3F4eBWDCna91fzTVT3EZhmH1eeNYarVM8wn MWv32XaNrp1tJP+ZXAFGYRQkRe85maxO8DScDMTCVFJ31rrI6Vbaw+6E46YOdeagb6QM9w 36WrFd3p9jv63NVA4zi1nTJivNFRCq1FqtS15LSnrBLvRLLtTNCuSLRw+JkyRw== 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 F3BD439C03 for ; Fri, 17 May 2024 08:20:29 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s7qwn-0004CT-KG; Fri, 17 May 2024 02:20:05 -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 1s7qwj-00044r-He for guix-patches@gnu.org; Fri, 17 May 2024 02:20: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 1s7qwj-0004SN-2d for guix-patches@gnu.org; Fri, 17 May 2024 02:20:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s7qwl-0001x7-N8 for guix-patches@gnu.org; Fri, 17 May 2024 02:20:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50054] [PATCH v3 3/3] gnu: Add bgfx. Resent-From: Andy Tai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 17 May 2024 06:20:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50054 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50054@debbugs.gnu.org, ludo@gnu.org Cc: Andy Tai Received: via spool by 50054-submit@debbugs.gnu.org id=B50054.17159267517441 (code B ref 50054); Fri, 17 May 2024 06:20:03 +0000 Received: (at 50054) by debbugs.gnu.org; 17 May 2024 06:19:11 +0000 Received: from localhost ([127.0.0.1]:53324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s7qvu-0001vx-Ca for submit@debbugs.gnu.org; Fri, 17 May 2024 02:19:10 -0400 Received: from mail-pf1-f177.google.com ([209.85.210.177]:59728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s7qvl-0001ut-8D for 50054@debbugs.gnu.org; Fri, 17 May 2024 02:19:03 -0400 Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-6f449ea8e37so909019b3a.3 for <50054@debbugs.gnu.org>; Thu, 16 May 2024 23:18:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715926672; x=1716531472; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=XEs+a51u9+DcTVttbBnvjXLtqAWHkCb/hsw3OYXkC1o=; b=PCdDkSF+gOnk41BXg/kkqP6o/0vyWz/eL9b/BJP9C3zjaJTfOoHoYvsQaIZizZ309N n3niE3NK5S6q5abT2H89p2oFwfhd1xVEpeHQfCSfMZifmuKKcgPu8ktEj9V046+T6z2T MW7odv0f/jU7CDWI3BQ5AuMVnhuVk67OGA+fmNw3a1EzdxUFa0yOV/pr7wc2/xv7NELe Td/f7h8r+DY3rR7Y++QXUYazEK5soIroeBesGbBEXkB3rWm1zmnB0YbLZLTqewSYFUMb IACOu3xVEOvTkR84ZyV465azxqlQI0SGbf+EyUXOX0b/MCekb9E6d1wHkEiTDzOz1Hzq doGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715926673; x=1716531473; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=XEs+a51u9+DcTVttbBnvjXLtqAWHkCb/hsw3OYXkC1o=; b=ifjI48zLuDHYWtU8dVA6L2as6h1wjH6/RlH93/2/l9mfPx15civP8YWOsNcSujWcOI /MZj+mwMwK7D6mFfZyzTEgIwkou7m/HhAu5mmOgbFQxnNy0PdBOI429D8pbwvvdj4oP4 yhLzoSGEdRWxsFKTo0/ZG85mWxfRaZIc1OROQqO3FiFjyOx7y9NFWv72E7igdnSOuSNS NcIGGlKA/cnjuvPlirf7o4qEWN3RHJPsLWF3BQhPJcFKbos/NfVHPnWlUd6fzG3OqVIY pwqE0hd/qbKWhYsNQwGjkD9Yg820pPUd7UJhTyRQ1jElEV4jhoOrDUihaANLliYzSl5U n86w== X-Gm-Message-State: AOJu0Yx22K62DlvEcdjJrpfXsmbf4s/GzSw3WdZtjlqh5HUU3n3I7KXf iDxqsrqWSi8A26fB7ruF/Dycp+WDN3tgj5g2swiUYEEtOU3AViKxvwfP+Q== X-Google-Smtp-Source: AGHT+IGjIa6L7q08ta9jjWD08Ze+SEYISUe0y81+88WJ+XTAWk3oShQNUTUmv3Ey7UhwXqPFZk8zpA== X-Received: by 2002:a05:6a00:1807:b0:6ed:5f64:2ffa with SMTP id d2e1a72fcca58-6f4e01ba041mr35335659b3a.0.1715926672640; Thu, 16 May 2024 23:17:52 -0700 (PDT) Received: from DEskMiniX300.. (c-98-37-226-154.hsd1.ca.comcast.net. [98.37.226.154]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-6f677a20c6bsm4175069b3a.129.2024.05.16.23.17.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 23:17:51 -0700 (PDT) From: Andy Tai Date: Thu, 16 May 2024 23:17:45 -0700 Message-Id: <2d605000f042c48e38656256bf516ba5b0b47ea7.1715926307.git.atai@atai.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -0.87 X-Spam-Score: -0.87 X-Migadu-Queue-Id: F3BD439C03 X-Migadu-Scanner: mx13.migadu.com X-TUID: RBd5ZH+YHiaq * gnu/packages/graphics.scm (bgfx): New variable. Change-Id: I2737803c838229ed04fbfe30d0e67749444d871b --- gnu/packages/graphics.scm | 92 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm index 29e262d33e..3f35ce3c20 100644 --- a/gnu/packages/graphics.scm +++ b/gnu/packages/graphics.scm @@ -3090,6 +3090,98 @@ (define-public bimg Bgfx graphics library.") (license license:bsd-2)))) +(define-public bgfx + (let ((commit "932302d8f460e514b933deba8c0e575a00f0bcd6") + (revision "1")) + (package + (name "bgfx") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/bkaradzic/bgfx") + (commit commit))) + (file-name (git-file-name name version)) + (modules '((guix build utils))) + (sha256 + (base32 "0by2is3qzbhg0m3wv7np28l6k9hm0lr5ybc2z7fc5c8x3afqcxzr")))) + (build-system gnu-build-system) + (arguments + (list + #:tests? #f ;there are no tests + #:phases #~(modify-phases %standard-phases + (delete 'configure) + + (replace 'build + (lambda _ + (for-each (lambda (target) + (invoke "make" + "-j" + (number->string (parallel-job-count)) + target + + (string-append "BX_DIR=" + #$(package-source bx)) + (string-append "BIMG_DIR=" + #$(package-source bximg)) + (string-append "NINJA=" + #$(this-package-native-input + "ninja") + "/bin/ninja") + (string-append "GENIE=" + #$(this-package-native-input + "genie") + "/bin/genie"))) + (list "linux-release64" "tools")))) + ;; (replace 'check + ;; (lambda _ + ;; (invoke "make" "test"))) + (replace 'install + (lambda _ + (for-each (lambda (f) + (install-file f + (string-append #$output + "/bin"))) + (find-files "./tools/bin/linux")) + (for-each (lambda (f) + (install-file f + (string-append #$output + "/lib"))) + (find-files ".build/linux64_gcc" "\\.a$")) + (for-each (lambda (f) + (install-file f + (string-append #$output + "/lib"))) + (find-files ".build/linux64_gcc" "\\.so$")) + (copy-recursively "include/bgfx" + (string-append #$output + "/include/bgfx")))) + + ))) + (native-inputs (list genie ninja)) + (inputs (list mesa mesa-headers vulkan-headers)) + (home-page "https://bkaradzic.github.io/bgfx/overview.html") + (synopsis "Cross-platform, graphics API agnostic, +\"Bring Your Own Engine/Framework\" style rendering library") + (description + "bgfx is a Cross-platform, graphics API agnostic rendering library +providing the same graphics APIs over +@itemize +@item Direct3D 11 +@item Direct3D 12 +@item GNM (only for licensed PS4 developers, search DevNet forums for source) +@item Metal +@item OpenGL 2.1 +@item OpenGL 3.1+ +@item OpenGL ES 2 +@item OpenGL ES 3.1 +@item Vulkan +@item WebGL 1.0 +@item WebGL 2.0 +@end itemize") + (license license:bsd-2)))) + (define-public gpaint (package (name "gpaint") -- 2.34.1