mednafen_psx_hw_libretro: a Libretro port of Mednafen PSX (hardware accelerated) (#2366)

This commit is contained in:
kwyxz
2018-03-22 13:43:40 -07:00
committed by fbrosson
parent 9a1e18187a
commit 3209b6d3ae
3 changed files with 101 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
display_name = "Sony - PlayStation (Beetle PSX HW)"
authors = "Mednafen Team"
supported_extensions = "cue|toc|m3u|ccd|exe|pbp|chd"
corename = "Beetle PSX HW"
manufacturer = "Sony"
categories = "Emulator"
systemname = "PlayStation"
database = "Sony - PlayStation"
license = "GPLv2"
permissions = ""
display_version = "@DISPLAY_VERSION@"
supports_no_game = "false"
firmware_count = 3
firmware0_desc = "scph5500.bin (PS1 JP BIOS)"
firmware0_path = "scph5500.bin"
firmware0_opt = "false"
firmware1_desc = "scph5501.bin (PS1 US BIOS)"
firmware1_path = "scph5501.bin"
firmware1_opt = "false"
firmware2_desc = "scph5502.bin (PS1 EU BIOS)"
firmware2_path = "scph5502.bin"
firmware2_opt = "false"
notes = "(!) scph5500.bin (md5): 8dd7d5296a650fac7319bce665a6a53c|(!) scph5501.bin (md5): 490f666e1afb15b7362b406ed1cea246|(!) scph5502.bin (md5): 32736f17079d0b2b7024407c39bd3050"

View File

@@ -0,0 +1,57 @@
SUMMARY="A standalone port of Mednafen PSX HW to libretro"
DESCRIPTION="This is a port of the Mednafen PSX HW module to libretro, a Sony \
PlayStation emulator. It is one of the original systems supported by Mednafen. \
This package provides the hardware rendering core. It offers a speed bump \
along with graphical acceleration and visual improvements. If you are looking \
for a more accurate rendering, use the mednafen_psx_libretro core."
HOMEPAGE="https://mednafen.github.io/documentation/psx.html"
COPYRIGHT="2005-2018 Forgotten, the Mednafen team, the libretro team"
LICENSE="GNU GPL v2"
REVISION="1"
srcGitRev="1eb9b2503d1437f0f7b9ec0a1883374c2991e7c3"
SOURCE_URI="https://github.com/libretro/beetle-psx-libretro/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="a74891082dc3817b4d79e2df37f461a6e5197b75ccd9941c609ba21918b125ce"
SOURCE_FILENAME="libretro-mednafen-psx-hw-${portVersion/_/-}-$srcGitRev.tar.gz"
SOURCE_DIR="beetle-psx-libretro-$srcGitRev"
ADDITIONAL_FILES="mednafen_psx_hw_libretro.info.in"
PATCHES="mednafen_psx_hw_libretro-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
mednafen_psx_hw_libretro$secondaryArchSuffix = $portVersion
addon:mednafen_psx_hw_libretro$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
retroarch$secondaryArchSuffix
lib:libGL${secondaryArchSuffix}
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libGL${secondaryArchSuffix}
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:make
"
BUILD()
{
sed -e "s/@DISPLAY_VERSION@/v${portVersion/_/-}/" \
$portDir/additional-files/mednafen_psx_hw_libretro.info.in \
> mednafen_psx_hw_libretro.info
make $jobArgs
}
INSTALL()
{
install -m 0755 -d "$docDir"
install -m 0644 -t "$docDir" COPYING README.md
install -m 0755 -d "$addOnsDir"/libretro
install -m 0644 -t "$addOnsDir"/libretro \
mednafen_psx_hw_libretro.info \
mednafen_psx_hw_libretro.so
}

View File

@@ -0,0 +1,21 @@
From b552736778e6bda6a6868762542e3a978d398054 Mon Sep 17 00:00:00 2001
From: kwyxz <kwyxz@kwyxz.org>
Date: Thu, 22 Mar 2018 10:21:26 -0800
Subject: Enabled OpenGL
diff --git a/Makefile b/Makefile
index 739a9ff..4f327fb 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
DEBUG = 0
FRONTEND_SUPPORTS_RGB565 = 1
-HAVE_OPENGL = 0
+HAVE_OPENGL = 1
HAVE_VULKAN = 0
HAVE_JIT = 0
HAVE_CHD = 1
--
2.16.2