diff --git a/games-emulation/mednafen_ngp_libretro/additional-files/mednafen_ngp_libretro.info.in b/games-emulation/mednafen_ngp_libretro/additional-files/mednafen_ngp_libretro.info.in new file mode 100644 index 000000000..6d4439569 --- /dev/null +++ b/games-emulation/mednafen_ngp_libretro/additional-files/mednafen_ngp_libretro.info.in @@ -0,0 +1,12 @@ +display_name = "SNK - Neo Geo Pocket / Color (Beetle NeoPop)" +authors = "neopop_uk|Mednafen Team" +supported_extensions = "ngp|ngc|ngpc" +corename = "Beetle NeoPop" +manufacturer = "SNK" +categories = "Emulator" +systemname = "Neo Geo Pocket (Color)" +database = "SNK - Neo Geo Pocket|SNK - Neo Geo Pocket Color" +license = "GPLv2" +permissions = "" +display_version = "@DISPLAY_VERSION@" +supports_no_game = "false" diff --git a/games-emulation/mednafen_ngp_libretro/mednafen_ngp_libretro-0.9.36.1_20180219.recipe b/games-emulation/mednafen_ngp_libretro/mednafen_ngp_libretro-0.9.36.1_20180219.recipe new file mode 100644 index 000000000..500870e19 --- /dev/null +++ b/games-emulation/mednafen_ngp_libretro/mednafen_ngp_libretro-0.9.36.1_20180219.recipe @@ -0,0 +1,51 @@ +SUMMARY="A standalone port of Mednafen NGP to libretro" +DESCRIPTION="This is a standalone port of Mednafen NGP to libretro, a SNK \ +Neo Geo Pocket emulator. It is itself a fork of NeoPop." +HOMEPAGE="https://mednafen.github.io/documentation/ngp.html" +COPYRIGHT="2005-2018 Forgotten, the Mednafen team, the libretro team" +LICENSE="GNU GPL v2" +REVISION="1" +srcGitRev="9e33e1b9c32c98b96010691740c089508afe0167" +SOURCE_URI="https://github.com/libretro/beetle-ngp-libretro/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="8f08d0390afb7ef515ccbd64c90f2e00c60629c868fb953078d38a39608eef0c" +SOURCE_FILENAME="libretro-mednafen-ngp-${portVersion/_/-}-$srcGitRev.tar.gz" +SOURCE_DIR="beetle-ngp-libretro-$srcGitRev" +ADDITIONAL_FILES="mednafen_ngp_libretro.info.in" + +ARCHITECTURES="!x86_gcc2 ?x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + mednafen_ngp_libretro$secondaryArchSuffix = $portVersion + addon:mednafen_ngp_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/mednafen_ngp_libretro.info.in \ + > mednafen_ngp_libretro.info + make $jobArgs +} + +INSTALL() +{ + install -m 0755 -d "$docDir" + install -m 0644 -t "$docDir" COPYING readme.md + install -m 0755 -d "$addOnsDir"/libretro + install -m 0644 -t "$addOnsDir"/libretro \ + mednafen_ngp_libretro.info \ + mednafen_ngp_libretro.so +}