dosbox_pure_libretro: new recipe (#5913)

This commit is contained in:
kwyxz
2021-05-14 10:07:06 -07:00
committed by GitHub
parent 181a1072d4
commit aba39e3b90
2 changed files with 88 additions and 0 deletions

View File

@@ -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."

View File

@@ -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
}