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 eExsFSH3RmYpFwEAe85BDQ:P1 (envelope-from ) for ; Fri, 17 May 2024 08:20:17 +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 eExsFSH3RmYpFwEAe85BDQ (envelope-from ) for ; Fri, 17 May 2024 08:20:17 +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=Fg4roDfF; dmarc=none; 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=1715926817; a=rsa-sha256; cv=none; b=KE9/tc2KG2I4yFiMVICDPXlQcrxeBwlN+WSprT4aqpbSuUfcqMBnKWTm4I/sSXjco03UfB Yzejl6fpLqPmzGbjXc0ERmmpwcJlzK9u/GfS5yDrSDOCzBM3vh5GtIkNQODxou9QoOUkFh gy0AgocZ9X7aAku08ADS9z4JRtbiWqoJWFtjIWRzIhyuXImgCF1hRdz+whYGKI2GkuAJBy PYMv7KZbOdHN97J772D/jNMM+O7POR92CvEq7nm4SQQfpHJWCaTv3QDQ/Mu577dF1SAj7p Y+7KdeVuYKN1D9M9ZjHw10Ee4bWyWS1Nx41sO8aYWM0EN7V/TQ33GCxc4mtspw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=Fg4roDfF; dmarc=none; 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=1715926817; 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=CBUEUkXd0EG8RQXfT/59NSmOWDBmmZIgqVrmirVFWuU=; b=qOSXtFUrlRk8NyUFyuhdcmL8u4ky7rwNOyi++TMFJv4YIij5JAKj1HoHUS3P/5pDHMnflS G7obxouecb/ZVvCmcEyH7FBaV2ttbYv6fnkrU7mSiffHh/ipgCu4zQF4JB0DgoxwbBQSXR ufJvd3luOdRDen1F4et/rKn29vIqvDMqts7iAHXto0QB7iCGGMSGEvc0mNSRoNQWcfVUOA mIapu6ZaGVkLx2vyvryaLdCesZAa1qNDCO+Q5y+J+6lXsFeoFaAXByrKXTPSloWAzXmDtf WdY+XbnIgVlH1fOIQX0aqKVrx6bqbZUA969F3XxZebqrK4AuS2/P12ndu9XkNg== 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 C57A917973 for ; Fri, 17 May 2024 08:20:16 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s7qwl-00048G-PJ; Fri, 17 May 2024 02:20: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 1s7qwi-00041a-VS for guix-patches@gnu.org; Fri, 17 May 2024 02:20:00 -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 1s7qwi-0004SA-Ku for guix-patches@gnu.org; Fri, 17 May 2024 02:20:00 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s7qwl-0001wz-91 for guix-patches@gnu.org; Fri, 17 May 2024 02:20:03 -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: 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.17159267437426 (code B ref 50054); Fri, 17 May 2024 06:20:03 +0000 Received: (at 50054) by debbugs.gnu.org; 17 May 2024 06:19:03 +0000 Received: from localhost ([127.0.0.1]:53321 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s7qvm-0001vd-KX for submit@debbugs.gnu.org; Fri, 17 May 2024 02:19:03 -0400 Received: from mail-pf1-f174.google.com ([209.85.210.174]:53628) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s7qvi-0001uo-SG for 50054@debbugs.gnu.org; Fri, 17 May 2024 02:19:01 -0400 Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-6f6765226d0so971766b3a.3 for <50054@debbugs.gnu.org>; Thu, 16 May 2024 23:18:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715926670; x=1716531470; 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=CBUEUkXd0EG8RQXfT/59NSmOWDBmmZIgqVrmirVFWuU=; b=Fg4roDfFTpbPdZKAFlbO999mrtqLMVKYhyWXfbJDAHHaDe0Ze7658XtxssJFWIt3Bu /ArVpJhxooz8zdK9w646/Mf5jXIEmV/PQBqo1BWlbGs+DplffUWnnHDPptl6JrQtF65J ycQKHwtTOscfKyExeZ90DyKBG5oY7QZyo/qNiXLWokXBXZXhyOWcoRhlvV5o0xwX1UsK EU/3LC1hgE+JKc630nYMdFSdHFE33qM3UhVpomUSMyXCDWshrCq6lht8+RMgORWl2RPT yXAj3TCtiJjoA/OJjYxs0puyckyLsWMHjcZYcT85vadOqZrNTbyH7J9vmMtBF5ds/spH USWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715926670; x=1716531470; 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=CBUEUkXd0EG8RQXfT/59NSmOWDBmmZIgqVrmirVFWuU=; b=f7Wffr54ie0WO/0Ar7V0L+s4wIqHK+ySNq2/uudh5r4VUULsVdhC6rkQzvA3Tk0nXb Gp4ND3jlWxDjxksh5zwr41kiENukEaKxFDZsxCZEKSDWfkYJI2UNbPk7DzjuGEz4ZDOo kmdqBOVA35qd15MgyMmGPZ/A1wAa3Q9qmRec/n6czdR4iQRJoZKHBxRglhLgqLMeHyQK UR18hsdQoSci3jrMvKPkho81mmzcGmUq93MpOZKMX0SRa82HDx8IP5vfeg1D/WCoWZCM 6b/4qD/r2Kmdz3QpR+OAZ2tM3tG8V7YR4qgwc6jtuteJZpMqRGjjDIY4YdPLZsrKYUPd BkYw== X-Gm-Message-State: AOJu0YwOn1dGVY3Td+lp3ZdIlfjz0B2riithCyXQ2tIn208RYgQBsKI0 ityWmrYdp6WtT9qk9apZCy2V6PDwsJU3gE9JvnVjdIJGrnWGVx0g1EshDg== X-Google-Smtp-Source: AGHT+IF8G7O2Doy1R6oI5jhK+Y+5VTJ/Zk7KD0tvij2Xa676KHhBDUp4pX0qvmRRZWufZdvJGq19lw== X-Received: by 2002:a05:6a21:394b:b0:1b0:14a0:c875 with SMTP id adf61e73a8af0-1b014a0cde5mr11220256637.1.1715926669907; Thu, 16 May 2024 23:17:49 -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.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 23:17:49 -0700 (PDT) From: Andy Tai Date: Thu, 16 May 2024 23:17:43 -0700 Message-Id: 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-Migadu-Queue-Id: C57A917973 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -1.37 X-Spam-Score: -1.37 X-TUID: pxeiZ/DBpQFi * gnu/packages/graphics.scm (bx): New variable Change-Id: I7a0b4ccfb2e7a1edad80da0ba55fa5cd0fca0032 --- gnu/packages/graphics.scm | 66 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 65 insertions(+), 1 deletion(-) diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm index 7a2f827d36..ac2a2e3a56 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,70 @@ (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