54 lines
1.6 KiB
Bash
54 lines
1.6 KiB
Bash
SUMMARY="A port of Gearboy, a Nintendo Game Boy emulator to the libretro API"
|
|
DESCRIPTION="Gearboy is a Nintendo Game Boy / GameBoy Color emulator written \
|
|
in C++. It features highly accurate CPU emulation, accurate instruction and \
|
|
memory timing, and accurate LCD controller emulation."
|
|
HOMEPAGE="http://www.ignaciosanchez.me/projects/gearboy/"
|
|
COPYRIGHT="2012-2020 Ignacio Sánchez, the libretro team"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="1"
|
|
srcGitRev="cd9c5f76145ee7063fd1708d51f98a6d2d373b9d"
|
|
SOURCE_URI="https://github.com/drhelius/Gearboy/archive/$srcGitRev.tar.gz"
|
|
CHECKSUM_SHA256="7030a9647f11ab0667e9074b1006d143b416ce22803e586b2beea3ee0347a787"
|
|
SOURCE_FILENAME="gearboy-libretro-${portVersion/_/-}-$srcGitRev.tar.gz"
|
|
SOURCE_DIR="Gearboy-$srcGitRev"
|
|
ADDITIONAL_FILES="gearboy_libretro.info.in"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
gearboy_libretro$secondaryArchSuffix = $portVersion
|
|
addon:gearboy_libretro$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
retroarch$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
sed -e "s/@DISPLAY_VERSION@/v${portVersion/_/-}/" \
|
|
$portDir/additional-files/gearboy_libretro.info.in \
|
|
> gearboy_libretro.info
|
|
cd platforms/libretro
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
install -m 0755 -d "$docDir"
|
|
install -m 0644 -t "$docDir" LICENSE README.md
|
|
install -m 0755 -d "$addOnsDir"/libretro
|
|
install -m 0644 -t "$addOnsDir"/libretro \
|
|
gearboy_libretro.info \
|
|
platforms/libretro/gearboy_libretro.so
|
|
}
|