dosbox_libretro: a port of dosbox to the libretro API (#2327)

This commit is contained in:
Benjamin FRANCOIS
2018-03-14 18:28:59 -07:00
committed by fbrosson
parent 1f7f2a4968
commit 08baccfe22
2 changed files with 66 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
display_name = "DOS (DOSBox)"
authors = "DOSBox Team"
supported_extensions = "exe|com|bat|conf"
corename = "DOSBox"
manufacturer = "Microsoft"
categories = "Emulator"
systemname = "DOS"
database = "DOS"
license = "GPLv2"
permissions = ""
display_version = "@DISPLAY_VERSION@"
supports_no_game = "true"

View File

@@ -0,0 +1,54 @@
SUMMARY="A port of DosBox to the libretro architecture"
DESCRIPTION="DOSBox is a DOS emulator that also emulates CPU:286/386 \
realmode/protected mode, Directory FileSystem/XMS/EMS, \
Tandy/Hercules/CGA/EGA/VGA/VESA graphics, a SoundBlaster/Gravis Ultra Sound \
card for excellent sound compatibility with older games, and more."
HOMEPAGE="https://www.dosbox.com/"
COPYRIGHT="2000-2018 Dosbox team, the libretro team"
LICENSE="GNU GPL v2"
REVISION="1"
srcGitRev="95906456cf6f48ffb20683d4f3d68acf80ac3f46"
SOURCE_URI="https://github.com/libretro/dosbox-libretro/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="8207abddc74d1e658caf53f0066561a9eacb50dc4f0042fe3e66dd8b947d9e84"
SOURCE_FILENAME="dosbox-libretro-${portVersion/_/-}-$srcGitRev.tar.gz"
SOURCE_DIR="dosbox-libretro-$srcGitRev"
ADDITIONAL_FILES="dosbox_libretro.info.in"
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
dosbox_libretro$secondaryArchSuffix = $portVersion
addon:dosbox_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/dosbox_libretro.info.in \
> dosbox_libretro.info
make -f Makefile.libretro GIT_VERSION=${srcGitRev:0:7} $jobArgs
}
INSTALL()
{
install -m 0755 -d "$docDir"
install -m 0644 -t "$docDir" AUTHORS COPYING NEWS PORTING README \
README.DOSBOX THANKS
install -m 0755 -d "$addOnsDir"/libretro
install -m 0644 -t "$addOnsDir"/libretro \
dosbox_libretro.info \
dosbox_libretro.so
}