bsnes_libretro: various fixes (#2282)

* Updated versioning, replaced SUPPLEMENTS with REQUIRES
* Replaced lib: by addon: for consistency.
* Added SOURCE_FILENAME.
This commit is contained in:
Benjamin FRANCOIS
2018-03-06 15:17:53 -08:00
committed by fbrosson
parent 0c50cf7b1d
commit c3c96ee803
2 changed files with 8 additions and 9 deletions

View File

@@ -7,10 +7,11 @@ attempting to provide a reasonable balance between the previous two."
HOMEPAGE="https://byuu.org/emulation/higan/" HOMEPAGE="https://byuu.org/emulation/higan/"
COPYRIGHT="2014-2018 byuu, the libretro team" COPYRIGHT="2014-2018 byuu, the libretro team"
LICENSE="GNU GPL v3" LICENSE="GNU GPL v3"
REVISION="1" REVISION="2"
srcGitRev="4e572a3cfa10e56bedb6737b0494e8165f6490d5" srcGitRev="4e572a3cfa10e56bedb6737b0494e8165f6490d5"
SOURCE_URI="https://github.com/libretro/bsnes-libretro/archive/$srcGitRev.tar.gz" SOURCE_URI="https://github.com/libretro/bsnes-libretro/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="77255571b654ef1b7559608818393dc8377c657dc30aa7d3ec45e40662c99a31" CHECKSUM_SHA256="77255571b654ef1b7559608818393dc8377c657dc30aa7d3ec45e40662c99a31"
SOURCE_FILENAME="bsnes-libretro-${portVersion/_/-}-$srcGitRev.tar.gz"
SOURCE_DIR="bsnes-libretro-$srcGitRev" SOURCE_DIR="bsnes-libretro-$srcGitRev"
PATCHES="bsnes_libretro-$portVersion.patchset" PATCHES="bsnes_libretro-$portVersion.patchset"
ADDITIONAL_FILES=" ADDITIONAL_FILES="
@@ -24,14 +25,12 @@ SECONDARY_ARCHITECTURES="x86"
PROVIDES=" PROVIDES="
bsnes_libretro$secondaryArchSuffix = $portVersion bsnes_libretro$secondaryArchSuffix = $portVersion
lib:bsnes_accuracy_libretro$secondaryArchSuffix = $portVersion addon:bsnes_accuracy_libretro$secondaryArchSuffix = $portVersion
lib:bsnes_balanced_libretro$secondaryArchSuffix = $portVersion addon:bsnes_balanced_libretro$secondaryArchSuffix = $portVersion
lib:bsnes_performance_libretro$secondaryArchSuffix = $portVersion addon:bsnes_performance_libretro$secondaryArchSuffix = $portVersion
" "
REQUIRES=" REQUIRES="
haiku$secondaryArchSuffix haiku$secondaryArchSuffix
"
SUPPLEMENTS="
retroarch$secondaryArchSuffix retroarch$secondaryArchSuffix
" "
@@ -46,7 +45,7 @@ BUILD_PREREQUIRES="
BUILD() BUILD()
{ {
for bsnesProfile in "accuracy" "balanced" "performance"; do for bsnesProfile in "accuracy" "balanced" "performance"; do
sed -e "s/@DISPLAY_VERSION@/v${portVersion%.git*}/" \ sed -e "s/@DISPLAY_VERSION@/v${portVersion/_/-}/" \
$portDir/additional-files/bsnes_"$bsnesProfile"_libretro.info.in \ $portDir/additional-files/bsnes_"$bsnesProfile"_libretro.info.in \
> bsnes_"$bsnesProfile"_libretro.info > bsnes_"$bsnesProfile"_libretro.info
make $jobArgs profile="$bsnesProfile" make $jobArgs profile="$bsnesProfile"
@@ -55,9 +54,9 @@ BUILD()
INSTALL() INSTALL()
{ {
install -d "$libDir"/libretro install -m 0755 -d "$addOnsDir"/libretro
for bsnesProfile in "accuracy" "balanced" "performance"; do for bsnesProfile in "accuracy" "balanced" "performance"; do
install -t "$libDir"/libretro \ install -m 0644 -t "$addOnsDir"/libretro \
out/bsnes_"$bsnesProfile"_libretro.so \ out/bsnes_"$bsnesProfile"_libretro.so \
bsnes_"$bsnesProfile"_libretro.info bsnes_"$bsnesProfile"_libretro.info
done done