From patchwork Tue Apr 23 05:51:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Tai X-Patchwork-Id: 63305 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 BEC5527BBE9; Tue, 23 Apr 2024 06:54:26 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 9D47827BBE2 for ; Tue, 23 Apr 2024 06:54:24 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rz96Z-0004hr-NP; Tue, 23 Apr 2024 01:54:11 -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 1rz96Y-0004gn-9N for guix-patches@gnu.org; Tue, 23 Apr 2024 01:54:10 -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 1rz96Y-0004ht-0u for guix-patches@gnu.org; Tue, 23 Apr 2024 01:54:10 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rz96n-00022l-LX for guix-patches@gnu.org; Tue, 23 Apr 2024 01:54:25 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50054] [PATCH v2 2/3] gnu: Add bimg. Resent-From: Andy Tai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 23 Apr 2024 05:54:24 +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 Cc: Andy Tai Received: via spool by 50054-submit@debbugs.gnu.org id=B50054.17138516197487 (code B ref 50054); Tue, 23 Apr 2024 05:54:24 +0000 Received: (at 50054) by debbugs.gnu.org; 23 Apr 2024 05:53:39 +0000 Received: from localhost ([127.0.0.1]:50072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rz95z-0001wU-Og for submit@debbugs.gnu.org; Tue, 23 Apr 2024 01:53:38 -0400 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]:55567) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rz956-0001o6-Pj for 50054@debbugs.gnu.org; Tue, 23 Apr 2024 01:52:46 -0400 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1e2b1cd446fso43268065ad.3 for <50054@debbugs.gnu.org>; Mon, 22 Apr 2024 22:52:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713851538; x=1714456338; 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=ba7YxG/b5o8AAAR3+zp62YURnG6FCfq81qhARgAfUOE=; b=izaJY1dQxh17/sgRyXswvYwTIllU52xZcVEFJzgeF1Yp4d9WM8L5qfukyRQ9v5qINJ uTnESenD58tLGUWhilh2sLTl6PEzusrCBoLCPS8OBfb6yBxNk9puJUzfrBp/zYETE6yp G02TvNcU3kHRowfEIVUAc08V9O/x+dHl6hPZ2nUDO+hzDmKoDa23k4NZFyGBhWzeYAFk ed48c28yeSgbBwGvI05YY2sBfxRoChN0kInjinKOm2C7RhQR9eB76njJCAawM1y1yNcc 28IFOpYWzop+4KnpdZ8ikfRL+3p5Q72G0DmnXlFEQZJYYQIicXCrZqBhmNzO/OIIurRM G0wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713851538; x=1714456338; 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=ba7YxG/b5o8AAAR3+zp62YURnG6FCfq81qhARgAfUOE=; b=QjAPLdMmGV09hJ4ebSptVCdchxAtgHfY3fZvVIraEArybcvI431FQV6eqOYBT+b56w tyPINoW1oFGe83XrkYHuapVHWTCy3LYNNHEeibFOYYOfJVk/9lVvc8PSpZhJm8i6M6pn gah8EtpB3J6mP0A4ydSzSc88LL6n2X13vCeIvUQUGp/uur09gapzsje7r/sQuQKU7xCc 8PuGYSlKD875tapm+0aHORIDZZ6i13mcPtR5rI35xEusRLZCX5cUXwaaySw9SNSU6jmF J5bm40gn4yva7BMLhDlLf7HWB3QxYfuejM4cgH2t7ceUybKQLn77laa1GTCoLEwoZq3O UJLg== X-Gm-Message-State: AOJu0Yw8qaueA+nB7v3DUV8h7mIHJnRuo9pHAzUz35wGEP/yGWxTYaHx G4jmmD+DDSWc5fHq/9hMSIgIO9oa5snaXa1ZTVbmEGhsWUhwX+uVZly+fA== X-Google-Smtp-Source: AGHT+IGXM3NI60S/vqkwxvyK+1NbZ2KNnXmy5Hlnf/9D830TL+fO2bPMwOaXXxyfPTvvQbFyHtaaJQ== X-Received: by 2002:a17:902:8c8f:b0:1e2:538:a063 with SMTP id t15-20020a1709028c8f00b001e20538a063mr12214872plo.33.1713851538275; Mon, 22 Apr 2024 22:52:18 -0700 (PDT) Received: from DEskMiniX300.. (c-98-37-226-98.hsd1.ca.comcast.net. [98.37.226.98]) by smtp.gmail.com with ESMTPSA id o5-20020a170902d4c500b001ea023348cfsm1015250plg.132.2024.04.22.22.52.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 22:52:17 -0700 (PDT) From: Andy Tai Date: Mon, 22 Apr 2024 22:51:49 -0700 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/graphics.scm (bimg): New variable. Change-Id: I431bed18c6a63d8b6c073177c01816fd32e005f4 --- gnu/packages/graphics.scm | 66 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm index b64774af58..88e01b46bf 100644 --- a/gnu/packages/graphics.scm +++ b/gnu/packages/graphics.scm @@ -2951,6 +2951,72 @@ (define-public bx Bgfx graphics library.") (license license:bsd-2)))) +(define-public bimg + (let ((commit "e9fa0ceff2df3399011af136c82652c81655c1d3") + (revision "1")) + (package + (name "bimg") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/bkaradzic/bimg") + (commit commit))) + (file-name (git-file-name name version)) + (modules '((guix build utils))) + (sha256 + (base32 "0i80r5hwbnh94wfmv4dys6kmy7szvmpqynbb7bvvvhfjn13jh754")))) + (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=" + #$(this-package-input + "bx-sources")) + (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 'install + (lambda _ + (install-file + ".build/linux64_gcc/obj/x64/Release/texturec/tools/texturec" + (string-append #$output "/bin")) + (for-each (lambda (f) + (install-file f + (string-append #$output + "/lib"))) + (find-files ".build/linux64_gcc" "\\.a$")) + (copy-recursively "include/bimg" + (string-append #$output + "/include/bimg"))))))) + (native-inputs (list genie ninja)) + (inputs `(("bx-sources" ,(package-source bx)))) + (home-page "https://github.com/bkaradzic/bimg") + (synopsis "Image library") + (description + "Bimg is an imaging library that implements low level functions of the +Bgfx graphics library.") + (license license:bsd-2)))) + (define-public gpaint (package (name "gpaint")