59 lines
1.7 KiB
Bash
59 lines
1.7 KiB
Bash
SUMMARY="A port of SameBoy, a Game Boy / GB Color emulator to the libretro API"
|
|
DESCRIPTION="A port of the highly accurate Game Boy emulator, SameBoy, to \
|
|
libretro. This core has the highest accuracy of any Game Boy emulator and \
|
|
also supports a variety of fun features and improvements. While its \
|
|
requirements are higher than most other Game Boy cores, it is a good first \
|
|
choice for devices strong enough to run it full speed."
|
|
HOMEPAGE="https://sameboy.github.io/downloads/"
|
|
COPYRIGHT="2016-2021 LIJI32, the libretro team"
|
|
LICENSE="MIT"
|
|
REVISION="1"
|
|
srcGitRev="c4a5a58478d64cee7029f9bb169ee3dbd67052b9"
|
|
SOURCE_URI="https://github.com/libretro/SameBoy/archive/$srcGitRev.tar.gz"
|
|
CHECKSUM_SHA256="3ee10ef0c59493bcb67fd7e08dde3222d59008df7649669999f0eff73c398294"
|
|
SOURCE_FILENAME="SameBoy-${portVersion/_/-}-$srcGitRev.tar.gz"
|
|
SOURCE_DIR="SameBoy-$srcGitRev"
|
|
ADDITIONAL_FILES="sameboy_libretro.info.in"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
sameboy_libretro$secondaryArchSuffix = $portVersion
|
|
addon:sameboy_libretro$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
retroarch$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libSDL2${secondaryArchSuffix}
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:which
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
sed -e "s/@DISPLAY_VERSION@/v${portVersion/_/-}/" \
|
|
$portDir/additional-files/sameboy_libretro.info.in \
|
|
> sameboy_libretro.info
|
|
cd libretro
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
install -m 0755 -d "$docDir"
|
|
install -m 0644 -t "$docDir" CHANGES.md CONTRIBUTING.md \
|
|
LICENSE README.md build-faq.md
|
|
install -m 0755 -d "$addOnsDir"/libretro
|
|
install -m 0644 -t "$addOnsDir"/libretro \
|
|
sameboy_libretro.info \
|
|
libretro/sameboy_libretro.so
|
|
}
|