diff --git a/games-emulation/meteor_libretro/additional-files/meteor_libretro.info.in b/games-emulation/meteor_libretro/additional-files/meteor_libretro.info.in new file mode 100644 index 000000000..87d9e78bd --- /dev/null +++ b/games-emulation/meteor_libretro/additional-files/meteor_libretro.info.in @@ -0,0 +1,12 @@ +display_name = "Nintendo - Game Boy Advance (Meteor)" +authors = "Philippe Daouadi" +supported_extensions = "gba" +corename = "Meteor" +manufacturer = "Nintendo" +categories = "Emulator" +systemname = "Game Boy Advance" +database = "Nintendo - Game Boy Advance|Nintendo - Game Boy Advance (e-Cards)" +license = "GPLv3" +permissions = "" +display_version = "@DISPLAY_VERSION@" +supports_no_game = "false" diff --git a/games-emulation/meteor_libretro/meteor_libretro-1.4_20180210.recipe b/games-emulation/meteor_libretro/meteor_libretro-1.4_20180210.recipe new file mode 100644 index 000000000..58a7a100e --- /dev/null +++ b/games-emulation/meteor_libretro/meteor_libretro-1.4_20180210.recipe @@ -0,0 +1,52 @@ +SUMMARY="A Nintendo Game Boy Advance emulator using the libretro API" +DESCRIPTION="Meteor is a Nintendo Game Boy Advance emulator. This is the \ +libretro core version of Meteor, for use with RetroArch." +HOMEPAGE="https://github.com/blastrock/meteor" +COPYRIGHT="2010-2018 Philippe Daouadi, the libretro team" +LICENSE="GNU GPL v3" +REVISION="1" +srcGitRev="a0527761b0e3003a209643e2a1e1772577f12b07" +SOURCE_URI="https://github.com/libretro/meteor-libretro/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="7960a7b57bac84ee34cc76fbc6545fe5feb10c8cf2fe97b971a3c69791e59765" +SOURCE_FILENAME="libretro-meteor-${portVersion/_/-}-$srcGitRev.tar.gz" +SOURCE_DIR="meteor-libretro-$srcGitRev" +ADDITIONAL_FILES="meteor_libretro.info.in" + +ARCHITECTURES="!x86_gcc2 ?x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + meteor_libretro$secondaryArchSuffix = $portVersion + addon:meteor_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/meteor_libretro.info.in \ + > meteor_libretro.info + cd libretro + make $jobArgs +} + +INSTALL() +{ + install -m 0755 -d "$docDir" + install -m 0644 -t "$docDir" AUTHORS COPYING README.md + install -m 0755 -d "$addOnsDir"/libretro + install -m 0644 -t "$addOnsDir"/libretro \ + meteor_libretro.info \ + libretro/meteor_libretro.so +}