From patchwork Thu Sep 26 03:09:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Cournoyer X-Patchwork-Id: 31464 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 6DC7627BBEA; Thu, 26 Sep 2024 04:18:14 +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=-6.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 D822A27BBE2 for ; Thu, 26 Sep 2024 04:18:13 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1stf0e-00048b-B8; Wed, 25 Sep 2024 23:17: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 1stf0b-00046w-Pl for guix-patches@gnu.org; Wed, 25 Sep 2024 23:17:37 -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 1stf0b-00080s-FP for guix-patches@gnu.org; Wed, 25 Sep 2024 23:17:37 -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=fIXKs0sgQWj7EYDiiAh+D23WyRzixWK7TjjaW+6pNzs=; b=CNOGjUQI5cbvWz8ycI9u2xYpZXU1BpdDU+9mwE1grWsdbd7mZYKkGw4LKbmZZc3godzv2gRhN4G0DL4eiuOqoN7wAQItliVwhXGHqXNs3H/cNSMipagVHmUEbvlayZBUnDiSmlTAid3U211AGY196ilO2m4i8/e//GhTdOnx+nZStuz2e+afos1bxU3j25ox3MlwW3NEIevOMHpsaiQDW7ULZHOZF4Z5yiIGOw4tZQESrIcylh0GnIhUu9rC+K4ALNOgd2ctVwTB5ep6tnb09rIK5VJp4/x+rdy2kARvJDVJNLlTVsCAKxMsRw3R2x9kGIMXkxQOn1zWoHFUZmMRJQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1stf12-0001I9-08 for guix-patches@gnu.org; Wed, 25 Sep 2024 23:18:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73488] [PATCH 5/7] gnu: Add jg-bsnes. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 26 Sep 2024 03:18: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 Received: via spool by 73488-submit@debbugs.gnu.org id=B73488.17273206434862 (code B ref 73488); Thu, 26 Sep 2024 03:18:03 +0000 Received: (at 73488) by debbugs.gnu.org; 26 Sep 2024 03:17:23 +0000 Received: from localhost ([127.0.0.1]:41862 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1stf0M-0001GL-IW for submit@debbugs.gnu.org; Wed, 25 Sep 2024 23:17:22 -0400 Received: from mail-pl1-f172.google.com ([209.85.214.172]:49253) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1stf0C-0001Ew-1v for 73488@debbugs.gnu.org; Wed, 25 Sep 2024 23:17:12 -0400 Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-205909afad3so4750345ad.2 for <73488@debbugs.gnu.org>; Wed, 25 Sep 2024 20:16:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727320539; x=1727925339; 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=fIXKs0sgQWj7EYDiiAh+D23WyRzixWK7TjjaW+6pNzs=; b=R+EN2mmbr40lfSFK88dq03p1SDJUZR2nji53SSeiGfCqkAYoPvP/wyAe0OV7zCBPyZ 16aF/byOS4iL3ecnd2ek9ZBDpNeCzKBUg3UTY7CZ6g8cUQwkrdm/LkocR1dhc7H69LlY 7MtOU145BTpQB0LKDb/QpHC1D4Eyjp9pjNZFtXUzdevTNbjA2LRrUzBRVTB57Jlkolds c/NrowpkCTLaiaFXzmnSs9gXynlh8YOsOJijqemBpPM7znGKwZ0lk6ZI1g3FiLDAXiA+ v0rNy3WNbhZYz1gzwjqe+DrdqT8FOKJe2fZmYkbufGQlANtZ82VF13bg1djGnGAoLX1a Tr4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727320539; x=1727925339; 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=fIXKs0sgQWj7EYDiiAh+D23WyRzixWK7TjjaW+6pNzs=; b=K0I9bRQRbUwvhtrovOz3SOncbqUwMCeKLQBc4rx8ErCpiugxULkvUOCTAkXeZDmBjT KLhU7sz7If481i2jbWxCbHp5w0C25k00MX3mpHZ6SL07e45RksBRu6ohLkzVVY3TEz/f Lw6LG20JbSFusbUEKDJVD1qlaZqhOdy3KAx32fAW6W2iwcVB7iTBkFaeOqjeB+kuuSeQ I116irKvu5ly0HpIoVDxyVzT887CibO4YlUfsuYI+AT6IUwTnSx+iQ5QIgEsx28emMNE I/qya0HBeTciPH6zN9zZtZUGo6mNGCOgvLUyhaxRIrbgzNf1K4LnciB/R34K3PFHfrHJ KV9A== X-Gm-Message-State: AOJu0Yww4EGuWOdtA/mie2QPTktiBcI1VVYjvTYGe12F+Hkc8VHdimg+ 1ZMHrwi+0NNUXKvKxhcWoP0RSXhRB9B5SAaKqnkTgezqcX4YgVEYb3oz+w== X-Google-Smtp-Source: AGHT+IGvIDWD/saEpWJIuEajvipqf+hbZTP0EGdshAk5MJL6YylB6ASzUBISPgPV4igGzDvTnhXRug== X-Received: by 2002:a17:902:f543:b0:206:9640:e751 with SMTP id d9443c01a7336-20afc3f8c51mr75999345ad.3.1727320539144; Wed, 25 Sep 2024 20:15:39 -0700 (PDT) Received: from hurd.lan ([2405:6586:be0:0:c8ff:1707:9b9:af89]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20af17e0301sm29895875ad.156.2024.09.25.20.15.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 20:15:38 -0700 (PDT) From: Maxim Cournoyer Date: Thu, 26 Sep 2024 12:09:59 +0900 Message-ID: <1e4efc1fa7553f761a9f2c9bfa5387f98f99297f.1727320201.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: , 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 --- gnu/packages/emulators.scm | 72 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm index 49208f302d..068349867f 100644 --- a/gnu/packages/emulators.scm +++ b/gnu/packages/emulators.scm @@ -2353,6 +2353,78 @@ (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 + (modules '((guix build utils))) + (snippet '(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")