From 68fbe7232cf12dcc966869de21a3add9cdab3201 Mon Sep 17 00:00:00 2001 From: kwyxz Date: Thu, 19 Apr 2018 10:03:49 -0700 Subject: [PATCH] o2em_libretro: a port of O2EM to the libretro API (#2463) --- .../additional-files/o2em_libretro.info.in | 26 ++++++++++ .../o2em_libretro-1.18_20180409.recipe | 52 +++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 games-emulation/o2em_libretro/additional-files/o2em_libretro.info.in create mode 100644 games-emulation/o2em_libretro/o2em_libretro-1.18_20180409.recipe diff --git a/games-emulation/o2em_libretro/additional-files/o2em_libretro.info.in b/games-emulation/o2em_libretro/additional-files/o2em_libretro.info.in new file mode 100644 index 000000000..4841ae1cd --- /dev/null +++ b/games-emulation/o2em_libretro/additional-files/o2em_libretro.info.in @@ -0,0 +1,26 @@ +display_name = "Magnavox - Odyssey2 / Phillips Videopac+ (O2EM)" +authors = "Daniel Boris|Andre de la Rocha|Arlindo M. de Oliveira" +supported_extensions = "bin" +corename = "O2EM" +manufacturer = "Magnavox|Philips" +categories = "Emulator" +systemname = "Magnavox Odyssey2 / Phillips Videopac+" +database = "Magnavox - Odyssey2|Phillips - Videopac+" +license = "Artistic License" +permissions = "" +display_version = "@DISPLAY_VERSION@" +supports_no_game = "false" +firmware_count = 4 +firmware0_desc = "o2rom.bin (Odyssey2 BIOS - G7000 model)" +firmware0_path = "o2rom.bin" +firmware0_opt = "false" +firmware1_desc = "c52.bin (Videopac+ French BIOS - G7000 model)" +firmware1_path = "c52.bin" +firmware1_opt = "false" +firmware2_desc = "g7400.bin (Videopac+ European BIOS - G7400 model)" +firmware2_path = "g7400.bin" +firmware2_opt = "false" +firmware3_desc = "jopac.bin (Videopac+ French BIOS - G7400 model)" +firmware3_path = "jopac.bin" +firmware3_opt = "false" +notes = "(!) o2rom.bin (md5): 562d5ebf9e030a40d6fabfc2f33139fd|(!) bios_c52.bin (md5): f1071cdb0b6b10dde94d3bc8a6146387|(!) bios_g7400.bin (md5): c500ff71236068e0dc0d0603d265ae76|(!)bios_jopac.bin (md5): 279008e4a0db2dc5f1c048853b033828" diff --git a/games-emulation/o2em_libretro/o2em_libretro-1.18_20180409.recipe b/games-emulation/o2em_libretro/o2em_libretro-1.18_20180409.recipe new file mode 100644 index 000000000..bb7aab71e --- /dev/null +++ b/games-emulation/o2em_libretro/o2em_libretro-1.18_20180409.recipe @@ -0,0 +1,52 @@ +SUMMARY="An Odyssey 2 / VideoPac emulator using the libretro API" +DESCRIPTION="This is the libretro port of O2EM, a Magnavox Odyssey 2 and \ +Philips VideoPac emulator. These machines shared the same hardware and were \ +rebranded depending on the market where they were sold." +HOMEPAGE="http://o2em.sourceforge.net/" +COPYRIGHT="1996-2018 Daniel Boris, the O2EM team, the libretro team" +LICENSE="Artistic" +REVISION="1" +srcGitRev="bdfb4000122bb32b9cabf46ffdaa4bcbc55f686b" +SOURCE_URI="https://github.com/libretro/libretro-o2em/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="ba62271504351539087dcdda0e8c7834615ee7121e56aadb86633ea552d10e6c" +SOURCE_FILENAME="libretro-o2em-${portVersion/_/-}-$srcGitRev.tar.gz" +SOURCE_DIR="libretro-o2em-$srcGitRev" +ADDITIONAL_FILES="o2em_libretro.info.in" + +ARCHITECTURES="!x86_gcc2 ?x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + o2em_libretro$secondaryArchSuffix = $portVersion + addon:o2em_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/o2em_libretro.info.in \ + > o2em_libretro.info + make $jobArgs +} + +INSTALL() +{ + install -m 0755 -d "$docDir" + install -m 0644 -t "$docDir" README.md + install -m 0755 -d "$addOnsDir"/libretro + install -m 0644 -t "$addOnsDir"/libretro \ + o2em_libretro.info \ + o2em_libretro.so +}