From 61d706d48833612ad893be2196a5aca073f64fe6 Mon Sep 17 00:00:00 2001 From: Benjamin FRANCOIS Date: Thu, 15 Mar 2018 05:32:59 -0700 Subject: [PATCH] fceumm_libretro: a NES emulator for the libretro API (#2328) --- .../additional-files/fceumm_libretro.info.in | 20 +++++++ .../fceumm_libretro-0.0.1_20180306.recipe | 52 +++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 games-emulation/fceumm_libretro/additional-files/fceumm_libretro.info.in create mode 100644 games-emulation/fceumm_libretro/fceumm_libretro-0.0.1_20180306.recipe diff --git a/games-emulation/fceumm_libretro/additional-files/fceumm_libretro.info.in b/games-emulation/fceumm_libretro/additional-files/fceumm_libretro.info.in new file mode 100644 index 000000000..35bc2085a --- /dev/null +++ b/games-emulation/fceumm_libretro/additional-files/fceumm_libretro.info.in @@ -0,0 +1,20 @@ +display_name = "Nintendo - NES / Famicom (FCEUmm)" +authors = "FCEU Team|CaH4e3" +supported_extensions = "fds|nes|unif|unf" +corename = "FCEUmm" +manufacturer = "Nintendo" +categories = "Emulator" +systemname = "Nintendo Entertainment System" +database = "Nintendo - Nintendo Entertainment System|Nintendo - Family Computer Disk System" +license = "GPLv2" +permissions = "" +display_version = "@DISPLAY_VERSION@" +supports_no_game = "false" +firmware_count = 2 +firmware0_desc = "disksys.rom (Family Computer Disk System BIOS)" +firmware0_path = "disksys.rom" +firmware0_opt = "false" +firmware1_desc = "nes.pal (custom NES Palette)" +firmware1_path = "nes.pal" +firmware1_opt = "true" +notes = "(!) disksys.rom (md5): ca30b50f880eb660a320674ed365ef7a|(!) nes.pal must be located in system directory." diff --git a/games-emulation/fceumm_libretro/fceumm_libretro-0.0.1_20180306.recipe b/games-emulation/fceumm_libretro/fceumm_libretro-0.0.1_20180306.recipe new file mode 100644 index 000000000..31782cbaf --- /dev/null +++ b/games-emulation/fceumm_libretro/fceumm_libretro-0.0.1_20180306.recipe @@ -0,0 +1,52 @@ +SUMMARY="A port of FCEUMM, a Famicom/NES emulator to the libretro architecture" +DESCRIPTION="FCEUMM is a fork of FCEU Ultra which supports a lot of new \ +mappers including some obscure mappers such as one for unlicensed NES ROMs." +HOMEPAGE="http://cah4e3.shedevr.org.ru/fceultra.php" +COPYRIGHT="2011-2018 the FCEU team, cah4e3, the libretro team" +LICENSE="GNU LGPL v2" +REVISION="1" +srcGitRev="16170cdfa741e5e0f41adce5d1c379314407126a" +SOURCE_URI="https://github.com/libretro/libretro-fceumm/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="8206ab62c02159689b668d8be2b33b769299ef0abaf077b8accd746157bd701d" +SOURCE_FILENAME="libretro-fceumm-${portVersion/_/-}-$srcGitRev.tar.gz" +SOURCE_DIR="libretro-fceumm-$srcGitRev" +ADDITIONAL_FILES="fceumm_libretro.info.in" + +ARCHITECTURES="!x86_gcc2 ?x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + fceumm_libretro$secondaryArchSuffix = $portVersion + addon:fceumm_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/fceumm_libretro.info.in \ + > fceumm_libretro.info + make -f Makefile.libretro $jobArgs +} + +INSTALL() +{ + install -m 0755 -d "$docDir" + install -m 0644 -t "$docDir" Authors Copying changelog.txt README.md \ + whatsnew.txt zzz_todo.txt + install -m 0755 -d "$addOnsDir"/libretro + install -m 0644 -t "$addOnsDir"/libretro \ + fceumm_libretro.info \ + fceumm_libretro.so +}