SUMMARY="A port of bsnes to the libretro architecture" DESCRIPTION="bsnes is an accurate SNES emulator, but can also emulate the NES, \ Game Boy (DMG), Game Boy Color, and Game Boy Advance systems. This package \ provides three different profiles: one focuses on accuracy but can be \ CPU-intensive, one focuses on speed but is less accurate, and one is \ attempting to provide a reasonable balance between the previous two." HOMEPAGE="https://byuu.org/emulation/higan/" COPYRIGHT="2014-2018 byuu, the libretro team" LICENSE="GNU GPL v3" REVISION="2" srcGitRev="4e572a3cfa10e56bedb6737b0494e8165f6490d5" SOURCE_URI="https://github.com/libretro/bsnes-libretro/archive/$srcGitRev.tar.gz" CHECKSUM_SHA256="77255571b654ef1b7559608818393dc8377c657dc30aa7d3ec45e40662c99a31" SOURCE_FILENAME="bsnes-libretro-${portVersion/_/-}-$srcGitRev.tar.gz" SOURCE_DIR="bsnes-libretro-$srcGitRev" PATCHES="bsnes_libretro-$portVersion.patchset" ADDITIONAL_FILES=" bsnes_accuracy_libretro.info.in bsnes_balanced_libretro.info.in bsnes_performance_libretro.info.in " ARCHITECTURES="!x86_gcc2 ?x86 x86_64" SECONDARY_ARCHITECTURES="x86" PROVIDES=" bsnes_libretro$secondaryArchSuffix = $portVersion addon:bsnes_accuracy_libretro$secondaryArchSuffix = $portVersion addon:bsnes_balanced_libretro$secondaryArchSuffix = $portVersion addon:bsnes_performance_libretro$secondaryArchSuffix = $portVersion " REQUIRES=" haiku$secondaryArchSuffix retroarch$secondaryArchSuffix " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel " BUILD_PREREQUIRES=" cmd:gcc$secondaryArchSuffix cmd:make " BUILD() { for bsnesProfile in "accuracy" "balanced" "performance"; do sed -e "s/@DISPLAY_VERSION@/v${portVersion/_/-}/" \ $portDir/additional-files/bsnes_"$bsnesProfile"_libretro.info.in \ > bsnes_"$bsnesProfile"_libretro.info make $jobArgs profile="$bsnesProfile" done } INSTALL() { install -m 0755 -d "$addOnsDir"/libretro for bsnesProfile in "accuracy" "balanced" "performance"; do install -m 0644 -t "$addOnsDir"/libretro \ out/bsnes_"$bsnesProfile"_libretro.so \ bsnes_"$bsnesProfile"_libretro.info done }