diff --git a/games-emulation/handy_libretro/additional-files/handy_libretro.info.in b/games-emulation/handy_libretro/additional-files/handy_libretro.info.in new file mode 100644 index 000000000..289ba0a62 --- /dev/null +++ b/games-emulation/handy_libretro/additional-files/handy_libretro.info.in @@ -0,0 +1,17 @@ +display_name = "Atari - Lynx (Handy)" +authors = "K. Wilkins" +supported_extensions = "lnx" +corename = "Handy" +manufacturer = "Atari" +categories = "Emulator" +systemname = "Lynx" +database = "Atari - Lynx" +license = "Zlib" +permissions = "" +display_version = "@DISPLAY_VERSION@" +supports_no_game = "false" +firmware_count = 1 +firmware0_desc = "lynxboot.img (Lynx Boot Image)" +firmware0_path = "lynxboot.img" +firmware0_opt = "true" +notes = "(!) lynxboot.img (md5): fcd403db69f54290b51035d82f835e7b" diff --git a/games-emulation/handy_libretro/handy_libretro-0.95_20180219.recipe b/games-emulation/handy_libretro/handy_libretro-0.95_20180219.recipe new file mode 100644 index 000000000..2d23c94df --- /dev/null +++ b/games-emulation/handy_libretro/handy_libretro-0.95_20180219.recipe @@ -0,0 +1,51 @@ +SUMMARY="A port of Handy, an Atari Lynx emulator for the libretro API" +DESCRIPTION="Handy is an emulator of the Atari Lynx handheld. It requires the \ +Lynx BIOS to boot and start games." +HOMEPAGE="http://handy.sourceforge.net/" +COPYRIGHT="1997-2018 Keith Wilkins, the libretro team" +LICENSE="Zlib" +REVISION="1" +srcGitRev="a3d88fede0b2850a242da818d3392a637ce2355f" +SOURCE_URI="https://github.com/libretro/libretro-handy/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="2f73151d53d866a0ef64cf1e7d24f9fb41483fe26fd22d0ee8a3e012aafe2e19" +SOURCE_FILENAME="handy-libretro-${portVersion/_/-}-$srcGitRev.tar.gz" +SOURCE_DIR="libretro-handy-$srcGitRev" +ADDITIONAL_FILES="handy_libretro.info.in" + +ARCHITECTURES="!x86_gcc2 ?x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + handy_libretro$secondaryArchSuffix = $portVersion + addon:handy_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/handy_libretro.info.in \ + > handy_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 \ + handy_libretro.info \ + handy_libretro.so +}