From patchwork Sat Aug 14 08:35:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Tai X-Patchwork-Id: 32113 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 46BDE27BC82; Sat, 14 Aug 2021 09:37:09 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0C68027BC78 for ; Sat, 14 Aug 2021 09:37:09 +0100 (BST) Received: from localhost ([::1]:33854 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mEpAB-0008UI-VR for patchwork@mira.cbaines.net; Sat, 14 Aug 2021 04:37:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55124) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEpA6-0008Ts-RF for guix-patches@gnu.org; Sat, 14 Aug 2021 04:37:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60206) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mEpA6-0004ID-Kw for guix-patches@gnu.org; Sat, 14 Aug 2021 04:37:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mEpA6-0005lN-Gt for guix-patches@gnu.org; Sat, 14 Aug 2021 04:37:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50054] [PATCH] gnu: Add bgfx Resent-From: Andy Tai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 14 Aug 2021 08:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50054 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50054@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162893018622105 (code B ref -1); Sat, 14 Aug 2021 08:37:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 Aug 2021 08:36:26 +0000 Received: from localhost ([127.0.0.1]:43519 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEp9W-0005kT-14 for submit@debbugs.gnu.org; Sat, 14 Aug 2021 04:36:26 -0400 Received: from lists.gnu.org ([209.51.188.17]:49264) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEp9K-0005kC-LW for submit@debbugs.gnu.org; Sat, 14 Aug 2021 04:36:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54510) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEp9K-0008Bg-9c for guix-patches@gnu.org; Sat, 14 Aug 2021 04:36:14 -0400 Received: from mail-io1-xd2d.google.com ([2607:f8b0:4864:20::d2d]:36784) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mEp9I-0003WU-Qx for guix-patches@gnu.org; Sat, 14 Aug 2021 04:36:14 -0400 Received: by mail-io1-xd2d.google.com with SMTP id f11so16358575ioj.3 for ; Sat, 14 Aug 2021 01:36:12 -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=oPdBLTMWcmTC8lIWK78eaCprhfBFGBDITOkHYN5O3fo=; b=MNXGrloWtqSc2Y565XSDiIEom40O1Q4LLoab1z4QThjPLXX5ZhIXntVZk71TpuKw/w 9K50A6oS/+8Z6sahg7/sGqyOBTDbVRTzPvWp377zFTmmVn0MmeUz7r90mHS20p/A/xyU Vw9+ozpRDzhUz1gbUT8kNUI2irAwyGh/swnE35Tp5KesvMvlU7YyC5RGiLwruE4lsh1j nGBzJKDoBY7ilslxtoOR3fh6Bf+lYxS6Gzg5zTS/Hrs8PJXLtRFe2ugKEyjxZnVrCiZ7 jWeqavXa+YkYrfWgE3GP0K84hSop70v1UMhWtp3Xssg0+BH9p2HLsMhj2JYqeBlNoB4I w3iQ== 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=oPdBLTMWcmTC8lIWK78eaCprhfBFGBDITOkHYN5O3fo=; b=ll3xG32AmEXHenHM13V2iyzAwjTBhPLKjNKARjRGq5tqjEQ1CYbj647HhrAGXHTLx6 S8d8oMWr9m3ga1+ONoLICB52Vg50URGeBeLQznJcHQQistClbKiF+vdrLSboHWunn+q2 UxibMIDryZpOpGO2Po5lY4S5XOaOyM/0c8L0FKjukZfwBTmvgYWtrrMlw7usZoAU61z4 1X/yr4sTsjfRrlI1O/sNRzzZLQyzzZ51p0N55A/qFhPFlmcIUDvjFYeH9ejkt9n2Wrmp zpwZZJxOMY9wdxMFrT7+uOEv+VMAH0oH5aJJBdo44rlMUdTyOnUccSYYSytrdavjr4/R A2QA== X-Gm-Message-State: AOAM5300A4xfQ7+2FjeGOxblh1annt6dggrLRl6f3MQoj6iNqVgeMBrT nl3lQlQUQNAV2qUvHDWIpX1YdA/RX4d/Xoy9w7Myn/0bBosFvc4O X-Google-Smtp-Source: ABdhPJyxOYNsLWQl9uy1MywLBNPc6ToTIt7h7NJzHVh+xcSBU0hliHwyitQljiHqIh5yod4Wc80vqaS2ICI+zZfrg4o= X-Received: by 2002:a6b:b502:: with SMTP id e2mr4921169iof.152.1628930170920; Sat, 14 Aug 2021 01:36:10 -0700 (PDT) MIME-Version: 1.0 From: Andy Tai Date: Sat, 14 Aug 2021 01:35:35 -0700 Message-ID: Received-SPF: pass client-ip=2607:f8b0:4864:20::d2d; envelope-from=lichengtai@gmail.com; helo=mail-io1-xd2d.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/graphics.scm (bgfx): New variable --- gnu/packages/graphics.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) + (license (list license:expat license:cc0))))) diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm index 38feb27c87..53ac12f731 100644 --- a/gnu/packages/graphics.scm +++ b/gnu/packages/graphics.scm @@ -2000,3 +2000,41 @@ Some feature highlights: such as VR and AR on mobile, PC/desktop, and any other device. Monado aims to be a complete and conforming implementation of the OpenXR API made by Khronos.") (license license:boost1.0))) + +(define-public bgfx + (let ((commit "65513d08541ab1ead814f2c97d0502c8d13eae68") + (revision "0")) + (package + (name "bgfx") + (version + (git-version "0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/bkaradzic/bgfx.cmake") + (commit commit) + ;; Fetch git submodules + (recursive? #t))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1k18230zw3v2l0vgz5xi0l23fa0686yx0jd6hkvvvwp3zlakqp7n")))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f)) ;; no tests + (inputs + `(("glslang" ,glslang) + ("libxcb" ,libxcb) + ("opengl" ,mesa) + ("vulkan-loader" ,vulkan-loader))) + (native-inputs + `(("pkg-config" ,pkg-config) + ("vulkan-headers" ,vulkan-headers))) + (home-page "https://github.com/bkaradzic/bgfx") + (synopsis "Cross-platform, graphics API agnostic. rendering library") + (description "bgfx is a cross-platform, graphics API agnostic, +'Bring Your Own Engine/Framework' style rendering library supporting Direct3D, +OpenGL, Metal, Vulkan and WebGL.")