diff --git a/games-emulation/dosbox_libretro/additional-files/dosbox_libretro.info.in b/games-emulation/dosbox_libretro/additional-files/dosbox_libretro.info.in new file mode 100644 index 000000000..9fa10a9c3 --- /dev/null +++ b/games-emulation/dosbox_libretro/additional-files/dosbox_libretro.info.in @@ -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" diff --git a/games-emulation/dosbox_libretro/dosbox_libretro-0.74_20171023.recipe b/games-emulation/dosbox_libretro/dosbox_libretro-0.74_20171023.recipe new file mode 100644 index 000000000..501b744af --- /dev/null +++ b/games-emulation/dosbox_libretro/dosbox_libretro-0.74_20171023.recipe @@ -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 +}