From patchwork Sat Jan 18 08:50:49 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Cournoyer X-Patchwork-Id: 37138 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 A9D7927BBEA; Sat, 18 Jan 2025 08:52:50 +0000 (GMT) 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_DNSWL_BLOCKED,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 179E627BBE2 for ; Sat, 18 Jan 2025 08:52:50 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tZ4Yp-0003OC-Sq; Sat, 18 Jan 2025 03:52:07 -0500 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 1tZ4Ym-0003NU-VB for guix-patches@gnu.org; Sat, 18 Jan 2025 03:52:05 -0500 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 1tZ4Ym-0007d0-Le for guix-patches@gnu.org; Sat, 18 Jan 2025 03:52:04 -0500 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=HpZi7WScDoVk4q1eTY93934wTGdpDtLMoRgiG1grMBI=; b=jUhQnCLjt4Q4x6jYjtcJ0kn/5TUOBdX+utj/RySMJXIZwQHITm0UL9JaSgeSSYnHdhCckluO5WfE7QNZ6WCJj1MnHQaDwFeZim/2p1WyEHBWkgYe5s9lQsNrIPIhm7/Kg7xWokNRfFgFIHVjNYRDJyM0+0K/pZZEd/tTz0q8bnrIXVEftOWwJI3iicqj1J56v/RncnPn3cYESU8O+fTm9uhawrzhs/5m0tSMqEok2t2x1JUl67i/8/Du2GFKocW4r10/ncp9DG37J8zsbG7p3Lj9NgXVvXM2mamm1acZWLg3ScWvWy9cMCmgo1HP6yu0JcSszmm5t+XD37GJvQmqeQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tZ4Yl-00088r-W7; Sat, 18 Jan 2025 03:52:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75619] [PATCH v2 05/10] gnu: Add libretro-dolphin-emu. 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: Sat, 18 Jan 2025 08:52:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75619 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 75619@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 75619-submit@debbugs.gnu.org id=B75619.173719030531197 (code B ref 75619); Sat, 18 Jan 2025 08:52:03 +0000 Received: (at 75619) by debbugs.gnu.org; 18 Jan 2025 08:51:45 +0000 Received: from localhost ([127.0.0.1]:40051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tZ4YT-000876-05 for submit@debbugs.gnu.org; Sat, 18 Jan 2025 03:51:45 -0500 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]:61727) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tZ4YE-00085T-M4 for 75619@debbugs.gnu.org; Sat, 18 Jan 2025 03:51:31 -0500 Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-21669fd5c7cso53449375ad.3 for <75619@debbugs.gnu.org>; Sat, 18 Jan 2025 00:51:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737190284; x=1737795084; 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=HpZi7WScDoVk4q1eTY93934wTGdpDtLMoRgiG1grMBI=; b=YZac9W7llPd9MGtYaNlSqGkW+MlZwrBSx6zu8+axHb6WwBR3vadzv7lHoVnnlQtpk8 2hOzZIAsNj4w8pgS30H4cnxq6y+fFUxspbxVSE1KOoYGeKQ0Sx0obq+9t++fW01XHTmK 2D9cEEvvXkrGn6ZlsVekZozIWG9TrKCb4evC/V553Wdbvgo/efhmXWo5Mh/+m4YhYkVY 2sAXVhALVwxtQByT0iyUFyfdnJHdFnaegr8Ek9B9VOf9jMruTAi/ycseoa19mrjoLZFU 016dMPg9GiobDV+rr8cS7aGi+b+aFj7on6vDvOdlROZWKu0LAPY2sbtwVmIX4FZyKiVz dhqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737190284; x=1737795084; 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=HpZi7WScDoVk4q1eTY93934wTGdpDtLMoRgiG1grMBI=; b=rqGSpGfzzCgzRtyjIn7ozQFndz71lpiBwb9LCb18dzehCasHUVCh4IoAuBr1RxXhkS 6yEA/08b54mZzZvb/DQ00ce7Y5bkDPatfOUtyPXx4bHFjZVFJ84oK3SAcdfLuH/8LFma 8q2tcPAyaUFTK+UCtFcdYmjuinfUiE1X0+QRCyYj1VwhKPVEFbVRoND+ijhcCWCVhkbZ MGlhA4K+cZNIFPlUBh3JCtaeuCrje9faAz6cOpQhptRhp3ixGHj7BtF24oGdN6+rGKFL X4a0caZrfDjuK632Zf+agJxL3/TFwebDoRm3rZOCMhlhCh6WFb7Eth5CyNfgPmxtxfGC vv8g== X-Gm-Message-State: AOJu0YwJejl+/tPgnB2XqKwmWaIXHJvNEshlDwwBq/7dULqs3MvkIHIv RcDT+FaY4wRwLsQAmETbjHmb1QI/Es9oJoMWcj+gtQr/5W/mOTcgavCZ9z99zpg= X-Gm-Gg: ASbGnctt2H1tVXdWQxjq3nYW0A+X3EC85A04TquNGYo13ejDVxYwIGM0xFlW/x+Isax FnOR4DFmeCl5dHDaMu4fn3c9x7WjhxpzlazU1WplZ2ZuIsC9cZcBQG0bblg/xySnCOoixt3+9wf rC00XqzNxL9HtRadSLdmpTd18ZvvRlXyrjKSXTaXqNx3mx3yeBq8rlGEaexajAAp6CF20s4wrqz yGmpIdrCx3RoRKepsJURyFY7tdRZ1JGiqb1iIo4iPl7osoS60gZOEGYRWTAeQb9QnWENLtQTWzB nK7oTyJX7x6z X-Google-Smtp-Source: AGHT+IGyZg/Idv+beZ9wJiFANb+yXfF+ZJ87lUe6ys8V2g87m7e2VWjyHNbeZjcCPvBp8KM0gVRKQQ== X-Received: by 2002:a17:902:ce8d:b0:216:56d5:d87 with SMTP id d9443c01a7336-21c355ad56cmr92898835ad.34.1737190282771; Sat, 18 Jan 2025 00:51:22 -0800 (PST) Received: from localhost.localdomain ([2405:6586:be0:0:c8ff:1707:9b9:af89]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21c2d401344sm27610225ad.205.2025.01.18.00.51.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Jan 2025 00:51:22 -0800 (PST) From: Maxim Cournoyer Date: Sat, 18 Jan 2025 17:50:49 +0900 Message-ID: X-Mailer: git-send-email 2.47.1 In-Reply-To: <035ad50ab4e122c87225bd43e423fb17c75578e1.1737190254.git.maxim.cournoyer@gmail.com> References: <035ad50ab4e122c87225bd43e423fb17c75578e1.1737190254.git.maxim.cournoyer@gmail.com> 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 (libretro-dolphin-emu): New variable. Change-Id: Id05e1d17ff6927bb1492ce2816790f7d94f9e1b8 --- gnu/packages/emulators.scm | 51 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm index 28b8914902..242c1fa03b 100644 --- a/gnu/packages/emulators.scm +++ b/gnu/packages/emulators.scm @@ -481,6 +481,57 @@ (define-public dolphin-emu ;; dolphin/Data/Sys/GC/font_*.bin: Licensed under ASL2.0. (license (list license:gpl2+ license:asl2.0 license:fdl1.2+))))) +(define-public libretro-dolphin-emu + ;; There are no tag or release; use the latest commit. + (let ((commit "89a4df725d4eb24537728f7d655cddb1add25c18") + (revision "0")) + (package + (inherit dolphin-emu) + (name "libretro-dolphin-emu") + (version (git-version "5.0" revision commit)) + (source (origin + (inherit (package-source dolphin-emu)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/libretro/dolphin") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1fvm6hy0ihc0j3sgv88a7ak08c0kyikmmiif827j981fy7zvglvz")))) + (arguments + (substitute-keyword-arguments (package-arguments dolphin-emu) + ((#:configure-flags flags ''()) + #~(cons "-DLIBRETRO=ON" #$flags)) + ((#:phases phases '%standard-phases) + #~(modify-phases #$phases + (add-after 'unpack 'deregister-bundled-sources + (lambda _ + (substitute* "CMakeLists.txt" + ((".*add_subdirectory.*Externals/curl.*") "") + ((".*add_subdirectory.*Externals/libpng.*") "")))) + (replace 'install + (lambda _ + (install-file "dolphin_libretro.so" + (string-append #$output "/lib/libretro")) + ;; The system data files are also required for the proper + ;; functioning of dolphin; without them, it crashes with + ;; segmentation faults and cannot save files to the memory + ;; card. + (let ((sysdir (string-append + #$output + "/share/libretro/system/dolphin-emu"))) + (mkdir-p sysdir) + (copy-recursively "../source/Data/Sys" + (string-append sysdir "/Sys"))))))))) + (inputs + ;; Delete large and extraneous inputs. + (modify-inputs (package-inputs dolphin-emu) + (delete "ffmpeg" + "gtk+" + "qtbase"))) + (synopsis "Libretro port of Dolphin, the Nintendo Wii/GameCube emulator")))) + (define-public dosbox (package (name "dosbox")