From aba39e3b90a0344dbee2b06f4cd977c99c4cf50c Mon Sep 17 00:00:00 2001 From: kwyxz Date: Fri, 14 May 2021 10:07:06 -0700 Subject: [PATCH] dosbox_pure_libretro: new recipe (#5913) --- .../dosbox_pure_libretro.info.in | 34 ++++++++++++ .../dosbox_pure_libretro-0.13_20210514.recipe | 54 +++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 games-emulation/dosbox_pure_libretro/additional-files/dosbox_pure_libretro.info.in create mode 100644 games-emulation/dosbox_pure_libretro/dosbox_pure_libretro-0.13_20210514.recipe diff --git a/games-emulation/dosbox_pure_libretro/additional-files/dosbox_pure_libretro.info.in b/games-emulation/dosbox_pure_libretro/additional-files/dosbox_pure_libretro.info.in new file mode 100644 index 000000000..5b83a7c1a --- /dev/null +++ b/games-emulation/dosbox_pure_libretro/additional-files/dosbox_pure_libretro.info.in @@ -0,0 +1,34 @@ +# Software Information +display_name = "DOS (DOSBox-Pure)" +authors = "DOSBox Team|Psyraven" +supported_extensions = "zip|dosz|exe|com|bat|iso|cue|ins|img|ima|vhd|m3u|m3u8" +corename = "DOSBox" +categories = "Emulator" +license = "GPLv2" +permissions = "" +display_version = "@DISPLAY_VERSION@" + +# Hardware Information +manufacturer = "Microsoft" +systemname = "DOS" +systemid = "dos" + +# Libretro Features +database = "DOS" +supports_no_game = "true" +savestate = "true" +savestate_features = "serialized" +libretro_saves = "true" +cheats = "true" +input_descriptors = "true" +memory_descriptors = "true" +core_options = "true" +core_options_version = "1.0" +load_subsystem = "false" +hw_render = "false" +needs_fullpath = "true" +disk_control = "true" +is_experimental = "false" +needs_kbd_mouse_focus = "true" + +description = "A port of the mature and well-known DOSBox emulator to libretro with a goal of simplicty and ease of use. This core includes a streamlined workflow for launching games directly from ZIP archives (including disk images therein) with automated mapping of controls to gamepads and a native onscreen keyboard. This is a good core for most users who just want to play games and are not looking for a traditional DOS experience." diff --git a/games-emulation/dosbox_pure_libretro/dosbox_pure_libretro-0.13_20210514.recipe b/games-emulation/dosbox_pure_libretro/dosbox_pure_libretro-0.13_20210514.recipe new file mode 100644 index 000000000..c4fec9cff --- /dev/null +++ b/games-emulation/dosbox_pure_libretro/dosbox_pure_libretro-0.13_20210514.recipe @@ -0,0 +1,54 @@ +SUMMARY="A port of DOSBox to libretro with a goal of simplicty and ease of use" +DESCRIPTION="This core includes a streamlined workflow for launching games \ +directly from ZIP archives (including disk images therein) with automated \ +mapping of controls to gamepads and a native onscreen keyboard. This is a \ +good core for most users who just want to play games and are not looking for \ +a traditional DOS experience." +HOMEPAGE="https://github.com/schellingb/dosbox-pure" +COPYRIGHT="2020-2021 Dosbox team, Bernhard Schelling, the libretro team" +LICENSE="GNU GPL v2" +REVISION="1" +srcGitRev="066a3392acca8508382fb8bdbd79d1c9d0f284ac" +SOURCE_URI="https://github.com/libretro/dosbox-pure/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="43ae7134cbd21c1f53b3aca44d181583dd291d6909331586fa7ce9f355bcce27" +SOURCE_FILENAME="dosbox-pure-${portVersion/_/-}-$srcGitRev.tar.gz" +SOURCE_DIR="dosbox-pure-$srcGitRev" +ADDITIONAL_FILES="dosbox_pure_libretro.info.in" + +ARCHITECTURES="!x86_gcc2 !x86 x86_64" + +PROVIDES=" + dosbox_pure_libretro = $portVersion + addon:dosbox_pure_libretro = $portVersion + " +REQUIRES=" + haiku + retroarch + " + +BUILD_REQUIRES=" + haiku_devel + " +BUILD_PREREQUIRES=" + cmd:gcc + cmd:make + " + +BUILD() +{ + sed -e "s/@DISPLAY_VERSION@/v${portVersion/_/-}/" \ + $portDir/additional-files/dosbox_pure_libretro.info.in \ + > dosbox_pure_libretro.info + make GIT_VERSION=${srcGitRev:0:7} $jobArgs +} + +INSTALL() +{ + install -m 0755 -d "$docDir" + install -m 0644 -t "$docDir" DOSBOX-AUTHORS DOSBOX-THANKS LICENSE \ + README.md + install -m 0755 -d "$addOnsDir"/libretro + install -m 0644 -t "$addOnsDir"/libretro \ + dosbox_pure_libretro.info \ + dosbox_pure_libretro.so +}