From patchwork Thu Oct 3 07:25:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Cournoyer X-Patchwork-Id: 31606 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 DA18B27BBE9; Thu, 3 Oct 2024 11:32:33 +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=-7.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS,URIBL_BLOCKED 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 21F4527BBE2 for ; Thu, 3 Oct 2024 11:32:33 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1swGLA-0004Ho-6A; Thu, 03 Oct 2024 03:33:40 -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 1swGIW-0004En-5E for guix-patches@gnu.org; Thu, 03 Oct 2024 03:30:58 -0400 Received: from [2001:470:142:5::43] (helo=debbugs.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1swGIB-0000Np-VF for guix-patches@gnu.org; Thu, 03 Oct 2024 03:30:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=pll+ftrlqJzDvwqxgM5Pp5z6oKCHcUZgzQZq/4xJgLY=; b=o2B+NkoWvaswb1zthw8H45SPvm5fKTjtBuzwBycguuBVnREzyuTA24bN+WyxcEnwKlyAprkQtcX10i+kMZ7fenGD866uqVquyjpxJaVxhrBlYGlHgCKiHxTv4CkTPAKaKaQ7dwqdJ4fiPxJd91JzrnKtZqUWd6V53nWD0Mdutu9DzQYTx4AXYQgONs+a0dipMGaOSzMI337vmMtnhhUi0OMdh1TldUZnKz0tcDTr8C+7Oige1r/X+3hak7p78KIUtMdaGkaWFhHt4+WFV9BN2pi5L5L4n8lIfTA6ryhImKCIscpCfihzqyruyHuWRUhDIkdIHyQQb/8dWCytQ8iuyQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1swGGk-0001xr-4C; Thu, 03 Oct 2024 03:29:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73488] [PATCH games v3 4/7] gnu: Add jgrf. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: adam.faiz@disroot.org, liliana.prikler@gmail.com, iyzsong@envs.net, guix-patches@gnu.org Resent-Date: Thu, 03 Oct 2024 07:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73488 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73488@debbugs.gnu.org Cc: Maxim Cournoyer , Adam Faiz , Liliana Marie Prikler , =?utf-8?b?5a6L5paH5q2m?= X-Debbugs-Original-Xcc: Adam Faiz , Liliana Marie Prikler , =?utf-8?b?5a6L5paH5q2m?= Received: via spool by 73488-submit@debbugs.gnu.org id=B73488.17279405237506 (code B ref 73488); Thu, 03 Oct 2024 07:29:02 +0000 Received: (at 73488) by debbugs.gnu.org; 3 Oct 2024 07:28:43 +0000 Received: from localhost ([127.0.0.1]:59858 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1swGGB-0001wB-Jb for submit@debbugs.gnu.org; Thu, 03 Oct 2024 03:28:43 -0400 Received: from mail-oi1-f170.google.com ([209.85.167.170]:46288) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1swGFt-0001vd-Rm for 73488@debbugs.gnu.org; Thu, 03 Oct 2024 03:28:23 -0400 Received: by mail-oi1-f170.google.com with SMTP id 5614622812f47-3e03b6d99c3so383075b6e.0 for <73488@debbugs.gnu.org>; Thu, 03 Oct 2024 00:28:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727940420; x=1728545220; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pll+ftrlqJzDvwqxgM5Pp5z6oKCHcUZgzQZq/4xJgLY=; b=Hz6LFpc1VuQJ0pQSnbSx9+sk9W5/1u1HoDf96Ugk+dYDADLYAiJp/ot17OIo9U9csP VwHk8CtbmRxvfFlwaY/QvXg3dQUX2u5i5uTye13ORpaBPGTUcVajHSRL/KAbW+W2kg5a 33PLHKbD+yc5HrV6X4IE6MBSr2pp9mCi6k+Xjrfx+ZbUfwURRmh5NnmYvjsVYi6WvJCa 2/+NZBueN9vzz8qGC7Hu5+zM6tlFOTcDBw4u2Mb8FQ3LlJ+0AnRyx/Q12wMjIA7G74Wp SL9Izn7GGiFmnHXM52zkkFJo7D7jKoa9RSm0QwKv7p0kUwN5hko1trdhve02TLQ5ScVA Dmxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727940420; x=1728545220; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pll+ftrlqJzDvwqxgM5Pp5z6oKCHcUZgzQZq/4xJgLY=; b=di8gdWTz1Hcj6w6NGd35gMIrSbSqIGs9LOrhdAExmScpQPr/So15bk/MEJwGc0CPU8 4+IkuCYrg34xTawEp2Lu/EdAimOFpa0T4D0+69dDCkCZVQ3PH6OKj3e1/M2hEossYA8i XLYnxGBDk9nIBQWlz53Nm7dLQ9BI7I6bYSHe6vTPYQs21dBM5niYrPKw98G4WLXCzqIy nT6J/QmiR7MK45clLICfKixj6KwqCbkNefmVieNvkZtZMOb0llRUvNCktg5bXxlzzWY/ ouB2wixa2+BBtTVT2VK2c6oL93Qm/48Oq/VW0sG6hI9/QzMvwJmJNBKNoknkGVacJEo1 mULw== X-Gm-Message-State: AOJu0YyNz5HKEpdlc/scdhyQnV+H5yoMOUgvZ85B64d+RqhbhN/3hv/V +iX1UI4NYhp/F/AzpVd08Jib71Pjcb63PaobFKODxOmylCQQ2qU5U0Myyg== X-Google-Smtp-Source: AGHT+IG+itA/Zd8RV94ZhwaG5oOjxzFTmdywYLxtYvyR76oXUqw8+497OLJO6dd/ZCgtCFZBBykmFA== X-Received: by 2002:a05:6808:4495:b0:3e3:a832:eafc with SMTP id 5614622812f47-3e3b4168fa9mr4981267b6e.33.1727940420491; Thu, 03 Oct 2024 00:27:00 -0700 (PDT) Received: from hurd.lan ([2405:6586:be0:0:c8ff:1707:9b9:af89]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7e9dcb4d1desm142477a12.65.2024.10.03.00.26.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2024 00:27:00 -0700 (PDT) Date: Thu, 3 Oct 2024 16:25:42 +0900 Message-ID: <5cc1aad53c11bf764129fc414d5028a85f5eaacb.1727940344.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.46.0 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: , X-Patchwork-Original-From: Maxim Cournoyer via Guix-patches From: Maxim Cournoyer Reply-To: Maxim Cournoyer 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/emulators.scm (jgrf): New variable. Change-Id: I0cf706e66977ceb96902dcd54f9175031e129445 --- Changes in v3: - Remove extraneous 'modules' field from origin - Use latest commit, with support for search paths Changes in v2: - Sort inputs gnu/packages/emulators.scm | 70 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm index 09e722b4f4..ae2a78a0f6 100644 --- a/gnu/packages/emulators.scm +++ b/gnu/packages/emulators.scm @@ -2286,6 +2286,76 @@ (define-public jg-api Programming Interface} for emulators.") (license license:zlib))) +(define-public jgrf + ;; Unreleased work contains support for the JOLLYGOOD_* environment + ;; variables used to locate cores and assets. + (let ((commit "7d5c2b8593020e92d5b9b051dfb94be7f17c04ce") + (revision "0")) + (package + (name "jgrf") + (version (git-version "1.1.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/jgemu/jgrf") + (commit commit))) + (file-name (git-file-name name version)) + (snippet '(begin + ;; TODO: Package md5.h and md5.c from + ;; http://openwall.info/wiki/people/solar/software + ;; /public-domain-source-code/md5, + ;; remove these bundled files and set the + ;; USE_EXTERNAL_MD5 Make flag to 1. + ;; (delete-file "deps/md5.h") + ;; (delete-file "deps/md5.c") + (use-modules (guix build utils)) + (delete-file-recursively "deps/miniz"))) + (sha256 + (base32 + "0gkmyyaxpj3szw6r1zm5850h5f362p0jdr5w70g2j0939rqn5db4")))) + (build-system gnu-build-system) + (arguments + (list #:tests? #f ;no test suite + #:make-flags + #~(list (string-append "AR=" #$(ar-for-target)) + (string-append "CC=" #$(cc-for-target)) + (string-append "CXX=" #$(cxx-for-target)) + (string-append "PREFIX=" #$output)) + #:phases #~(modify-phases %standard-phases + (delete 'configure)))) + (native-inputs (list jg-api pkg-config)) + (inputs + (list flac + libepoxy + libsamplerate + lzo + miniz + sdl2 + soxr + speexdsp + zlib + `(,zstd "lib"))) + (native-search-paths + (list (search-path-specification + (variable "JOLLYGOOD_CORE_DIRS") + (files '("lib/jollygood"))) + (search-path-specification + (variable "JOLLYGOOD_ASSET_DIRS") + (files '("share/jollygood"))))) + (home-page "https://gitlab.com/jgemu/jgrf") + (synopsis "Jolly Good Reference Frontend") + (description "The Jolly Good Reference Frontend (accessible via the +@command{jollygood} command) is the simplest possible frontend to The Jolly +Good API. It may be used to run emulators built as shared objects, or as a +\"white-label\" frontend for statically linked standalone emulators.") + ;; The main license is BSD-3; the bundled source licenses are also listed + ;; below. + (license (list license:bsd-3 ;this software, gltext.h, lodepng.c, lodepng.h + license:expat ;ezmenu.h source, musl_memmem.c, + ;parson.h, parson.c, tconfig.h, tconfig.c + license:public-domain ;md5.h, md5.c, parg.h, parg.c + license:cc0))))) + (define-public zsnes (package (name "zsnes")