From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id CCJNMwNceWcgTgAAe85BDQ:P1 (envelope-from ) for ; Sat, 04 Jan 2025 16:04:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id CCJNMwNceWcgTgAAe85BDQ (envelope-from ) for ; Sat, 04 Jan 2025 17:04:19 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=QraiXfb4; dkim=fail ("headers rsa verify failed") header.d=icloud.com header.s=1a1hai header.b=eUKAiQC+; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1736006659; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=edLrZnjeEfDc7+MLRU5bFahBwoRdojwTofseuqx/7DU=; b=e0jG+NKjXHdOEdviz5Et90/S3wgvzeaR5RN+egaD+2Q3c8SjwwFXVphnRlW5Rp3t/2uD3k BzD7fzuWJ1ijCFsk277wdsXE87pjNEATj6USp1ZNBr9rL0FjgjU60epWOzKemYYV/bWG5K QpA/I/m4KajamiVPOdXz8Czs8YOQ4Fh8GMlVHgqYQaeY73ZV/BCezjD9MsKMs9agNCBTOE CtwpomVBo1MCHNIMcK7FmatV4dkHnImXPteJDFXz0vybSAxwQXG7GhJ7+SRyVuhEkzXD9h +/ctANDOgjQkJVRPXACRCUz2bvKiQKepUYV0yOt5+quk3hxfPjKX+ErDniAeEA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=QraiXfb4; dkim=fail ("headers rsa verify failed") header.d=icloud.com header.s=1a1hai header.b=eUKAiQC+; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1736006659; a=rsa-sha256; cv=none; b=AbYVwRqCAOJftaINGNPA76Pgph2UIz+/MjZbkMz55xsokyFfa7ZjvtQbYGq0SACwx9pymd qPLO+RCbmqkgn4gkP+smVVI/avkE7T3bt47Zh3JIQLcSkVhNx8I7VUoKHKnCxf067Hhvtp 1s5Qxe5sjLWDZ75bcJmFWKa2uGYlGD23jPDZd7WUGKcw2J+MCnItb5AvqafZPCDRBSot7r IctqVtWT7UwcIKwu/NTEBlWUfrMPre85BP6Nm9Tig3Wv36KJqKfyOFq39qwWmjQzoGB8ti yv8KmpR4c6bY4zEuQRvtyrdhYbI1piSroOUhfc6mL/WgH55r25Bzu//VMP7J+Q== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2A4ED40D7C for ; Sat, 04 Jan 2025 17:04:19 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tU6cu-0001VG-8y; Sat, 04 Jan 2025 11:03:48 -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 1tU6VP-0000e9-OE for guix-patches@gnu.org; Sat, 04 Jan 2025 10:56:03 -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 1tU6VP-0008TT-GH for guix-patches@gnu.org; Sat, 04 Jan 2025 10:56:03 -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:Date:From:To:Subject; bh=edLrZnjeEfDc7+MLRU5bFahBwoRdojwTofseuqx/7DU=; b=QraiXfb4yAhc5Xl0XrroyO1osfCbHaJVHq+jpGBGAs20EMJEOJXwhpild/I8eXDtrYf4atkWaA51BfOWVkeXrcsBnBo8olbKMU2rTKETJWETphN0qpPgPuFcgLO+R6qztlFTH+NBcqx3dhaoR1pur/dpDVlPc89W7A7+5EQJLqyROchykJan+FZwkm7zrBWZS7PY24WlumzcP0Bpt05qZJQvr2Bei967pZqG7i/Q0kHwfZrVER8/AA9r28lG90crOi5G29j+SGxeeZN9X00nn/bRP0FErCAd8RyocwXHvOS64s3HQCrLScwVe0UE8yg50tGV0MZ2WP/KfNaIBU+CEA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tU6VO-0007Ve-AM; Sat, 04 Jan 2025 10:56:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75353] [PATCH] gnu: Add libretro-beetle-psx Resent-From: Andrew Wong Original-Sender: "Debbugs-submit" Resent-CC: adam.faiz@disroot.org, liliana.prikler@gmail.com, iyzsong@envs.net, guix-patches@gnu.org Resent-Date: Sat, 04 Jan 2025 15:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 75353 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 75353@debbugs.gnu.org Cc: Andrew Wong , Adam Faiz , Liliana Marie Prikler , =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Adam Faiz , Liliana Marie Prikler , =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Received: via spool by submit@debbugs.gnu.org id=B.173600611728796 (code B ref -1); Sat, 04 Jan 2025 15:56:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 Jan 2025 15:55:17 +0000 Received: from localhost ([127.0.0.1]:56771 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tU6Ue-0007Tx-Qk for submit@debbugs.gnu.org; Sat, 04 Jan 2025 10:55:17 -0500 Received: from lists.gnu.org ([2001:470:142::17]:39102) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tU6Ub-0007Oc-9j for submit@debbugs.gnu.org; Sat, 04 Jan 2025 10:55:15 -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 1tU6UT-0000WF-5I for guix-patches@gnu.org; Sat, 04 Jan 2025 10:55:05 -0500 Received: from qs51p00im-qukt01072101.me.com ([17.57.155.10]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tU6UR-000621-7s for guix-patches@gnu.org; Sat, 04 Jan 2025 10:55:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1736006100; bh=edLrZnjeEfDc7+MLRU5bFahBwoRdojwTofseuqx/7DU=; h=From:To:Subject:Date:Message-ID:MIME-Version:x-icloud-hme; b=eUKAiQC+7YOnnj21Zd98bm4PH4mDquOn69PefECTLFH7HnQmmD/7uqDp9ybSNwKp5 QRhdN778UIy4MD1rKkSlwBc22NnsVTa735MAS0fRRKAVU6HW532hl/Yb0xMPqr0vD6 rNrQbxl4UIU7rLEHOic3zptr8SI20lIh9y1FYLkewxqV4XPRFwtrNUkE/g7/C4Rk4l j0ZIdDizik23l4J3PXgSmXtSTGWjg3rMXUEieS1Qz54Q7GUd98KZR/kEEhTfn1szWd 5ne6lYccOiSZJVBObJg0csXtoLx2fs6copOxRWnjuF//0znRSyJNFEDJrykl4/0YHp TnK6bhb42ckYQ== Received: from wongworks.lan (qs51p00im-dlb-asmtp-mailmevip.me.com [17.57.155.28]) by qs51p00im-qukt01072101.me.com (Postfix) with ESMTPSA id 6947040342; Sat, 4 Jan 2025 15:54:59 +0000 (UTC) Date: Sat, 4 Jan 2025 10:54:33 -0500 Message-ID: X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: -C-Bo5Yjpprbwd1pANETQKvKkmE1gyEC X-Proofpoint-GUID: -C-Bo5Yjpprbwd1pANETQKvKkmE1gyEC X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-02_03,2025-01-02_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 clxscore=1015 phishscore=0 suspectscore=0 bulkscore=0 mlxlogscore=999 malwarescore=0 adultscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2308100000 definitions=main-2501040140 X-Apple-Remote-Links: v=1;h=KCk=;charset=UTF-8 Received-SPF: pass client-ip=17.57.155.10; envelope-from=wongandj@icloud.com; helo=qs51p00im-qukt01072101.me.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Sat, 04 Jan 2025 11:03:46 -0500 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Andrew Wong X-ACL-Warn: , Andrew Wong via Guix-patches From: Andrew Wong via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 2A4ED40D7C X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: 1.02 X-Spam-Score: 1.02 X-TUID: si2TJbZlt2Wk * gnu/packages/emulators.scm (make-libretro-beetle-psx): New function. (libretro-beetle-psx, libretro-beetle-psx-hw): New variables. Change-Id: I7d5bb2783a5952e00014f18eaf8e436e889ef77b --- gnu/packages/emulators.scm | 50 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm index b65c91cdf5..386e3cde4b 100644 --- a/gnu/packages/emulators.scm +++ b/gnu/packages/emulators.scm @@ -1463,6 +1463,56 @@ (define-public nestopia-ue emulation community. It provides highly accurate emulation.") (license license:gpl2+))) +(define (make-libretro-beetle-psx name hw) + (let ((commit "80d3eba272cf6efab6b76e4dc44ea2834c6f910d") + (revision "0")) + (package + (name name) + ;; Use Mednafen core version as base. Defined in libretro_options.h:10 + (version (git-version "0.9.44.1" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/libretro/beetle-psx-libretro") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "14kkrlqhv9pqmbqlv8vvcp0ps938dmg8pk47d7zzc8piq51hkawk")))) + (build-system gnu-build-system) + (arguments + (list #:make-flags #~(list (string-append "HAVE_HW=" #$(if hw "1" "0")) + (string-append "CC=" #$(cc-for-target)) + (string-append "GIT_VERSION=" #$commit) + (string-append "prefix=" #$output)) + #:tests? #f ;no tests + #:phases #~(modify-phases %standard-phases + (delete 'configure) + (replace 'install ;there is no install target + (lambda* (#:key outputs #:allow-other-keys) + (let* ((libretro (string-append + (assoc-ref outputs "out") + "/lib/libretro"))) + (install-file (string-append "mednafen_psx_" + #$(if hw "hw_" "") + "libretro.so") + libretro))))))) + (inputs (list mesa)) + (home-page "https://github.com/libretro/beetle-psx-libretro") + (synopsis "Standalone port of Mednafen PSX to libretro") + (description + "Beetle PSX is a port/fork of Mednafen's PSX module to the libretro +API. Additional features include PBP/CHD file format support, +high-resolution software rendering, OpenGL and Vulkan renderers, and +PGXP perspective correct texturing.") + (license license:gpl2)))) + +(define-public libretro-beetle-psx + (make-libretro-beetle-psx "libretro-beetle-psx" #f)) + +(define-public libretro-beetle-psx-hw + (make-libretro-beetle-psx "libretro-beetle-psx-hw" #t)) + (define-public libretro-lowresnx (package (name "libretro-lowresnx") base-commit: 321edcf0744a8895690579e8a5b09b66c75d102c -- 2.47.1