0
0
Fork 0
haikuports/games-emulation/mednafen_psx_hw_libretro/mednafen_psx_hw_libretro-0....

58 lines
1.9 KiB
Bash

SUMMARY="A standalone port of Mednafen PSX to libretro"
DESCRIPTION="This is a port of the Mednafen PSX 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-2020 Forgotten, the Mednafen team, the libretro team"
LICENSE="GNU GPL v2"
REVISION="1"
srcGitRev="e8609eb9b452e82eb8a5893c73d4ce50af55720c"
SOURCE_URI="https://github.com/libretro/beetle-psx-libretro/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="249dd5ae26896545e356f01933c3a02e37160db2f3f7c6bbbdc5c7a2f946035b"
SOURCE_FILENAME="libretro-mednafen-psx-hw-${portVersion/_/-}-$srcGitRev.tar.gz"
SOURCE_DIR="beetle-psx-libretro-$srcGitRev"
PATCHES="mednafen_psx_hw_libretro-0.9.44.1_20211011.patchset"
ADDITIONAL_FILES="mednafen_psx_hw_libretro.info.in"
ARCHITECTURES="all !x86_gcc2"
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 LINK_STATIC_LIBCPLUSPLUS=0 $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
}