From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id +JamC99JSGb6LQAAe85BDQ:P1 (envelope-from ) for ; Sat, 18 May 2024 08:25:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id +JamC99JSGb6LQAAe85BDQ (envelope-from ) for ; Sat, 18 May 2024 08:25:35 +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=WVICQ0UB; 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=1716013535; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: 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=kC3YUL3e2vE6b3u+3T06gxqMh5F8mgrT5xHDDDjkzWY=; b=Lmzz0LSAwhR/ooM3bJSMeh1pa0IURUNuy7ECmeb7hs1gtmSe4OUvIS4M2JqJaQbz1HfMpS ltBdOKthMpELwT2zDBUfg35BQyx2iqAT/g2Itis0RtDlKyWjyiQ4vOwT0XPe1IuxjE5e+0 cCY9YztTMRJ4qDY9F8Ik5orGuP7naGZRsBHhPfuEZLH6pVius6pY4dbwh2Snj3P2YGaxBo yq5q8/iQx53/7+Khvn6MFJ+FY2nDWsqPBILN1ig6aZZE/y37MfSGpeftIzJaniQx4bx8EB 2/N5xFBR9h8rqT86sy46MXgFUjJy1nJTlya9GR1qK3OvpXFyiKCS17+j8zEGrA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=WVICQ0UB; 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=1716013535; a=rsa-sha256; cv=none; b=Up4yN3PkFep68PdqsWsgqHW6cCUWhteFZo+bFl156RooY9GQekDGi7Qrev+rb20pWzINc7 /mElOtyi0lr488veIo0iVtQgDJZ5xjyhtgsBVtLib653NRJJe4v2DiUaUUbTVwmDfW1UlN Jp1o/r94wgUDNyMdjEhn5GY55gxLtXQWsu2ykUMCNXpgoVkeoQwZ+5QhW4Gx13LK5nZggL j/sO6TLG3coA+IAJCDB/kp6Ua4oprilVy64hayEBaRSbGKHFuUeyW922v5Qob/r9rafG5z HeOzhd/JyA5RQ0W3v99LblHq2mHnzlNJaKbMfB7DblF1dCYG96mgt+myXqJsfQ== 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 40EBB6ABFB for ; Sat, 18 May 2024 08:25:34 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s8DVQ-0004b6-Df; Sat, 18 May 2024 02:25:20 -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 1s8DV5-0004Zn-SM for guix-patches@gnu.org; Sat, 18 May 2024 02:25:05 -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 1s8DV5-0003JN-ET for guix-patches@gnu.org; Sat, 18 May 2024 02:24:59 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s8DV8-0003Cu-Ln for guix-patches@gnu.org; Sat, 18 May 2024 02:25:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50054] [PATCH v3 1/3] gnu: Add bx Resent-From: Andy Tai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 18 May 2024 06:25:02 +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.171601345612279 (code B ref 50054); Sat, 18 May 2024 06:25:02 +0000 Received: (at 50054) by debbugs.gnu.org; 18 May 2024 06:24:16 +0000 Received: from localhost ([127.0.0.1]:59528 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8DUO-0003By-0Z for submit@debbugs.gnu.org; Sat, 18 May 2024 02:24:16 -0400 Received: from mail-pl1-f175.google.com ([209.85.214.175]:43073) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8DUJ-0003BU-6V for 50054@debbugs.gnu.org; Sat, 18 May 2024 02:24:12 -0400 Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-1ecd9a81966so8985175ad.0 for <50054@debbugs.gnu.org>; Fri, 17 May 2024 23:24:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716013382; x=1716618182; 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=kC3YUL3e2vE6b3u+3T06gxqMh5F8mgrT5xHDDDjkzWY=; b=WVICQ0UBRze845d1IO9ujr4tQn6URBv8QZB5WuVV0ciMUCLDNaMYfca5O5t/5PWFnh +wLLLAZTjYr5kv8BQWmSzrZFtFj7xbtHCF+3/w4dKi+BYHxDLESCHabAwLkByoh6japz ST/PVBgIO0NwgrWw8u2p7/47V1LLMw6AycOJiPsQFC+Lwtg7VdatACXN1zLuFN6L2cyh yG0WI0bTq5G0oObhhsTaMmEx7CbUMcHAgeuTsj78yx6ULyQ4DZS0TmBonK2sHzfl6x1k WIwpLCFKRBHOw3CU358k2V34bAcCCSQR+fX4EhrBD0LOu3mxwMszEfIc5FJJsGyQ3Gxf JvVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716013382; x=1716618182; 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=kC3YUL3e2vE6b3u+3T06gxqMh5F8mgrT5xHDDDjkzWY=; b=lUiQY6j/U+qOmZke+E7jhlkfbHyKmXIdqHyvF0UZW3efsbjTffBEOL5jx9SDjpo6To f0jt4QUtx8gP6a8jD1dzEtl7D36rcJZp33ZKPuYuDIU6l/hWC8nKjza8IcRuc7A+d5Vp K5i2+ranJH4NF9IIT2Q4k8vo7BjS2d/TsMyzOloW+nhMD6nX1bCukakpRVi9z7fr5AVq ZobowlXzCdPb+FAKgYkKmCukmpRfyJpWcwpzaUD+Zv0H+nSXRvFmEDxGuFNQNsyJvA47 pHK4NlICXaYXNSadt9dZx785lYD0xJpLyGa1UJhfB+L3PqqrdiPdGwewiT9nkxed0ugc NMCg== X-Gm-Message-State: AOJu0YwdHKCt5VJCJ3lqDSAj0JreDI+WFSI5UNMKKBq6JOA5skreJhnQ FV10JoKq4Lbp8X9iJZzkCOx+29aCnzuERSx3T1KoBpzg1M+g2xOOM0RI9w== X-Google-Smtp-Source: AGHT+IHmjrlDYABjoh6OZNPn//RzBVAZjZRVCiZvOvxRi9Mg++YR93e49fOByyrI0EFkZ6ZAzF/5pA== X-Received: by 2002:a17:902:e549:b0:1f0:9667:23c9 with SMTP id d9443c01a7336-1f2ed293878mr16477905ad.20.1716013381698; Fri, 17 May 2024 23:23:01 -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 d9443c01a7336-1ef0c037550sm166878095ad.225.2024.05.17.23.23.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 23:23:01 -0700 (PDT) From: Andy Tai Date: Fri, 17 May 2024 23:22:55 -0700 Message-Id: <1549891c1d8d81ca71bc5d959d4c41429943531a.1716013164.git.atai@atai.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -1.36 X-Migadu-Queue-Id: 40EBB6ABFB X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -1.36 X-TUID: ga8VrrkJW4GL * gnu/packages/graphics.scm (bx): New variable Change-Id: I7a0b4ccfb2e7a1edad80da0ba55fa5cd0fca0032 --- gnu/packages/graphics.scm | 65 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 64 insertions(+), 1 deletion(-) diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm index 7a2f827d36..5522fffcc8 100644 --- a/gnu/packages/graphics.scm +++ b/gnu/packages/graphics.scm @@ -24,7 +24,7 @@ ;;; Copyright © 2020, 2021, 2022, 2023 Maxim Cournoyer ;;; Copyright © 2020 Gabriel Arazas ;;; Copyright © 2021 Antoine Côté -;;; Copyright © 2021 Andy Tai +;;; Copyright © 2021, 2024 Andy Tai ;;; Copyright © 2021 Ekaitz Zarraga ;;; Copyright © 2021, 2022 Vinicius Monego ;;; Copyright © 2022 Michael Rohleder @@ -2960,6 +2960,69 @@ (define-public f3d options.") (license license:bsd-3))) +(define-public bx + (let ((commit "d3434707384f6d62229a4476b10b6dc22fee7c9a") + (revision "1")) + (package + (name "bx") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/bkaradzic/bx") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "11jii8dfb0nzxamkffa6ij3p6r4w7csfbxw7wpxsmqhirv5i8rns")))) + (build-system gnu-build-system) + (arguments + (list + #:phases #~(modify-phases %standard-phases + (delete 'configure) + + (replace 'build + (lambda _ + (invoke "make" + "-j" (number->string (parallel-job-count)) + "linux-release64" + (string-append "GENIE=" + #$(this-package-native-input + "genie") "/bin/genie") "-j" + (number->string (parallel-job-count))))) + + (replace 'check + (lambda _ + (invoke "make" "test"))) + (replace 'install + (lambda _ + (install-file + ".build/linux64_gcc/obj/x64/Release/bin2c/tools/bin2c" + (string-append #$output "/bin")) + (install-file + ".build/linux64_gcc/obj/x64/Release/lemon/tools/lemon" + (string-append #$output "/bin")) + (for-each (lambda (f) + (install-file f + (string-append #$output + "/lib"))) + (find-files ".build/linux64_gcc" "\\.a$")) + (copy-recursively "include/bx" + (string-append #$output + "/include/bx"))))))) + (native-inputs (list genie)) + (home-page "https://github.com/bkaradzic/bx") + (synopsis "C++ utility library for the Bgfx graphics library") + (description + "Bx is a C++ library that implements low level functions of the +Bgfx graphics library +@itemize +@item Providing OS/runtime/compiler independent core functionality +to be able to write cross-platform applications. +@item Allowing compile without C Runtime (CRT) and without C++ Standard Library (STL). +@end itemize") + (license license:bsd-2)))) + (define-public gpaint (package (name "gpaint") -- 2.34.1