From patchwork Thu Oct 3 07:25:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Cournoyer X-Patchwork-Id: 31600 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 A215627BBE9; Thu, 3 Oct 2024 09:30:53 +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.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,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 0610A27BBE2 for ; Thu, 3 Oct 2024 09:30:53 +0100 (BST) Received: from [::1] (helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1swGMC-0004Yd-8a; Thu, 03 Oct 2024 03:34:41 -0400 Received: from [2001:470:142:3::10] (helo=eggs.gnu.org) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1swGLC-0004SO-5G for guix-patches@gnu.org; Thu, 03 Oct 2024 03:33:40 -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 1swGKx-0000Xm-Rh for guix-patches@gnu.org; Thu, 03 Oct 2024 03:33:23 -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=LmvXYE4YhuCjoSftNpOFX3se3B7xCRPIbHcYGVAvqmI=; b=R7mlMOuJHtDDqgHqADw7GctxzuMxkxKL1WcK5MyFBDlN2O+ua+nroMe2PD8n1jjaH530ysYAbDqOQtqGLVBb4zDmYbJZ9djHv/RQk/qJHKAlNjV+aUsP6OkVGj5hSS5PHJw9Lbnw8LOnuJdMA0vinXdEHkL6LIt7zNlfJqKNgOtMFsj+MGXQ8LchOoOXtrfx60qmLvH1KZmc6iZ/4bx444b/ABEhQFAYFeNSHDgIINg2vcBsmIO419mzsizAX9c0BRaMROEb2PQNEx2IIAvmX9DC8DFDC5oSMc1jSPgA+FRDa9lzHf/2YqVflO8PV3Zcbptaog0kqo1/f5SxE72ilA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1swGHj-000210-J5; Thu, 03 Oct 2024 03:30:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73488] [PATCH games v3 5/7] gnu: Add jg-bsnes. 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:30:03 +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.17279405997684 (code B ref 73488); Thu, 03 Oct 2024 07:30:03 +0000 Received: (at 73488) by debbugs.gnu.org; 3 Oct 2024 07:29:59 +0000 Received: from localhost ([127.0.0.1]:59881 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1swGHS-0001zV-4y for submit@debbugs.gnu.org; Thu, 03 Oct 2024 03:29:59 -0400 Received: from mail-io1-f45.google.com ([209.85.166.45]:48494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1swGG7-0001vf-En for 73488@debbugs.gnu.org; Thu, 03 Oct 2024 03:28:43 -0400 Received: by mail-io1-f45.google.com with SMTP id ca18e2360f4ac-831e62bfa98so26089339f.1 for <73488@debbugs.gnu.org>; Thu, 03 Oct 2024 00:28:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727940422; x=1728545222; 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=LmvXYE4YhuCjoSftNpOFX3se3B7xCRPIbHcYGVAvqmI=; b=gFw0Y85U1pztIe1rv0tAFl8RssioWErLQg8e7gUh5DJocwwNJZGGQdcSmVC3UKtkyB 9prT9L/g8yUmepp5ZRzj84wqK7MCKwpSvhuUQ6IPFdbkE6x8KfPPtZrQOvOy8yDPiUvp H/z6hoWJznkrgQ3DKYElQ3s4Uti0hCsqNwGbulBEDU3MMV3SI/qde3ijVYa3xHtCH7/X aht5L9KCuyFBxCRvuoUAbjGaGdYv4ktRcJ64P+dhlwcRzxUJfWAk/GhPo9QymFMXoE03 zkD25/pLQeh5yJpCE5VG4aQorHdtafqmojB7nm4zGS79wNWsrr509waq6wa5dTp/qG9Q EmWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727940422; x=1728545222; 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=LmvXYE4YhuCjoSftNpOFX3se3B7xCRPIbHcYGVAvqmI=; b=HO9iuFkYx/5n1w5qJ3ADf94bbFR0yNeTBd54eQWY3BR/ucgdx85D7t/5k4L2WyVb5A 2fIdMOKdyaIYh2kgRTmTqV0ijkSgBiyzEpVYI5Pbbp4ePoobWRC6ue+1R+arwJv/+LwT ax8gCyko/qXtgYPKZbQIJB9+UE2STSgcfow9OfcFDYtTNHPetgvOoaEGpqXDjnUwOd9R djWNRWILdoXFICpISC3Tw/m43EYtGu74Pqwjr3StT7YwmrH4IsGmD1tWcNABQMb+2PAI eIIWjXoFYbgu+4Z1KAXrEbVlD4iEAuaAWwEHBQyMPRb0u2JYZMiyzos293R4sY4XViOX T0ag== X-Gm-Message-State: AOJu0Yx9ibVV+3I/p2eoy7XVzgS18HL9ShqRmcxqwfuZAl5fYSLaecLE SiHmu67t5m2Vjtu+sAriOxqQtik7wnOlNrox3WeJ0ZFpPKiiKbii+cmMKw== X-Google-Smtp-Source: AGHT+IFICxzsglg31STtTy4iR17rvlUNjgmnsoEUDVNA6Zz/il+V2Dx0a/Crl3tHNn3YlL8bnRGaKQ== X-Received: by 2002:a05:6e02:1386:b0:3a0:92e5:af68 with SMTP id e9e14a558f8ab-3a36594a26emr51762575ab.15.1727940422226; Thu, 03 Oct 2024 00:27:02 -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.27.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2024 00:27:01 -0700 (PDT) From: Maxim Cournoyer Date: Thu, 3 Oct 2024 16:25:43 +0900 Message-ID: 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: , 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 (jg-bsnes): New variable. Change-Id: If88a7bea0c87c8af8fce051f8bec891ff249449f --- Changes in v3: - Remove extraneous 'modules' field from origin gnu/packages/emulators.scm | 73 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm index ae2a78a0f6..4c1a705994 100644 --- a/gnu/packages/emulators.scm +++ b/gnu/packages/emulators.scm @@ -2356,6 +2356,79 @@ (define-public jgrf license:public-domain ;md5.h, md5.c, parg.h, parg.c license:cc0))))) +(define-public jg-bsnes + (package + (name "jg-bsnes") + (version "2.0.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/jgemu/bsnes") + (commit version))) + (file-name (git-file-name name version)) + ;; XXX: Some source dependencies are bundled and are not easy to + ;; unbundle due to the build system building an object combining + ;; their sources directly: + ;; - byuuML + ;; - gb + ;; - libcoco + ;; - snes_spc + (snippet '(begin + (use-modules (guix build utils)) + (delete-file-recursively "deps/libsamplerate"))) + (sha256 + (base32 + "0z1ka4si8vcb0j6ih087cni18vpgfd3qnaw24awycxz23xc0jkdv")))) + (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)))) ;no configure script + (native-inputs (list jg-api pkg-config)) + (inputs (list libsamplerate)) + (home-page "https://gitlab.com/jgemu/bsnes") + (synopsis "Jolly Good Fork of bsnes") + (description "@code{bsnes-jg} is a cycle accurate emulator for the Super +Famicom/Super Nintendo Entertainment System, including support for the Super +Game Boy, BS-X Satellaview, and Sufami Turbo. @code{bsnes-jg} is a fork of +@code{bsnes} v115, Many changes have been made post-fork: +@itemize +@item Higher quality resampler with settings +@item Improved performance without loss of accuracy +@item Portability improvements +@item Removal of accuracy-reducing hacks and unnecessary code +@item Significant increase in standards compliance +@item Translation to the C++ Standard Library (ISO C++11) +@end itemize + +In particular, it uses much less @acronym{CPU, Central Processing Unit} +compared to the original @code{bsnes} (though not as little as @code{zsnes}). + +The supported file formats are: +@itemize @file +@item .sfc +@item .smc +@item .bs +@item .st +@item .fig +@item .swc +@end itemize + +This is intended to be used with the Jolly Good Reference Frontend +@command{jollygood} command from the @code{jgrf} package.") + ;; The project license is GPL3+. The bundled source licenses are also + ;; listed below. + (license (list license:gpl3+ + license:bsd-3 ;byuuML + license:expat ;gb + license:isc ;libco + license:lgpl2.1+)))) + (define-public zsnes (package (name "zsnes")