diff --git a/games-emulation/mupen64plus_libretro/additional-files/mupen64plus_libretro.info.in b/games-emulation/mupen64plus_libretro/additional-files/mupen64plus_libretro.info.in new file mode 100644 index 000000000..b8fe7cd53 --- /dev/null +++ b/games-emulation/mupen64plus_libretro/additional-files/mupen64plus_libretro.info.in @@ -0,0 +1,12 @@ +display_name = "Nintendo - Nintendo 64 (Mupen64Plus)" +authors = "Hacktarux|Mupen64Plus Team" +supported_extensions = "n64|v64|z64|bin|u1|ndd" +corename = "Mupen64Plus OpenGL" +manufacturer = "Nintendo" +categories = "Emulator" +systemname = "Nintendo 64" +database = "Nintendo - Nintendo 64|Nintendo - Nintendo 64DD" +license = "GPLv2" +permissions = "dynarec_optional" +display_version = "@DISPLAY_VERSION@" +supports_no_game = "false" diff --git a/games-emulation/mupen64plus_libretro/mupen64plus_libretro-2.5_20171119.recipe b/games-emulation/mupen64plus_libretro/mupen64plus_libretro-2.5_20171119.recipe new file mode 100644 index 000000000..2689acbe5 --- /dev/null +++ b/games-emulation/mupen64plus_libretro/mupen64plus_libretro-2.5_20171119.recipe @@ -0,0 +1,57 @@ +SUMMARY="A port of Mupen64 plus, a Nintendo 64 emulator to the libretro API" +DESCRIPTION="Mupen64Plus is a cross-platform plugin-based N64 emulator which \ +is capable of accurately playing many games. This is the libretro core." +HOMEPAGE="https://mupen64plus.org/" +COPYRIGHT="2001-2018 Hacktarux, richard42g, the libretro team" +LICENSE="GNU GPL v2" +REVISION="1" +srcGitRev="6f80cbc13978a192193c828010e894a172b9d917" +SOURCE_URI="https://github.com/libretro/mupen64plus-libretro/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="1b1dc6d242ae1954dcef75d7dc870edf614fc2788e80a7c7065238a4ae5460b6" +SOURCE_FILENAME="mupen64plus-libretro-${portVersion/_/-}-$srcGitRev.tar.gz" +SOURCE_DIR="mupen64plus-libretro-$srcGitRev" +ADDITIONAL_FILES="mupen64plus_libretro.info.in" + +ARCHITECTURES="!x86_gcc2 ?x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + mupen64plus_libretro$secondaryArchSuffix = $portVersion + addon:mupen64plus_libretro$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + retroarch$secondaryArchSuffix + lib:libGL$secondaryArchSuffix + lib:libpng16$secondaryArchSuffix + lib:libz$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libGL$secondaryArchSuffix + devel:libpng16$secondaryArchSuffix + devel:libz$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + cmd:make + " + +BUILD() +{ + sed -e "s/@DISPLAY_VERSION@/v${portVersion/_/-}/" \ + $portDir/additional-files/mupen64plus_libretro.info.in \ + > mupen64plus_libretro.info + 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 \ + mupen64plus_libretro.info \ + mupen64plus_libretro.so +}