aboutsummaryrefslogtreecommitdiff
path: root/games/libretro-dosbox
diff options
context:
space:
mode:
authorLoïc Bartoletti <lbartoletti@FreeBSD.org>2020-04-29 05:27:55 +0000
committerLoïc Bartoletti <lbartoletti@FreeBSD.org>2020-04-29 05:27:55 +0000
commitf22c8b9e3227a66eee269d1015c3a5877a7c7585 (patch)
treeb296a87781dae373931fea67f759c6cdab3106da /games/libretro-dosbox
parent4e52d52bb35a2ae6ba242ea83e17075a5327ce6d (diff)
downloadports-f22c8b9e3227a66eee269d1015c3a5877a7c7585.tar.gz
ports-f22c8b9e3227a66eee269d1015c3a5877a7c7585.zip
[NEW PORTS]: games/libretro-* libretro cores for compatible emulators
Libretro is a simple API that allows for the creation of games and emulators. It needs a compatible libretro emulator to work (such as retroarch). This is a collection of 48 ports and a meta port to play retrogames. libretro - meta port for libretro cores libretro-2048 - 2048 puzzle libretro-beetle_bsnes - Nintendo SNES emulator from Mednafen libretro-beetle_gba - Nintendo Gameboy Advance emulator from Mednafen libretro-beetle_lynx - Atari Lynx emulator from Mednafen libretro-beetle_ngp - Neogeo Pocket emulator from Mednafen libretro-beetle_pce_fast - NEC PC Engine emulator from Mednafen libretro-beetle_pcfx - NEC PCFX emulator from Mednafen libretro-beetle_psx - Sony Playstation emulator from Mednafen libretro-beetle_supergrafx - NEC Supergrafx emulator from Mednafen libretro-beetle_vb - Nintendo Virtual Boy emulator from Mednafen libretro-beetle_wswan - Bandai Wonderswan emulator from Mednafen libretro-bluemsx - MSX emulator libretro-desmume2015 - Nintendo DS emulator libretro-dosbox - MS-DOS emulator libretro-emux - Emulator project support a couple of 8bit platforms libretro-fbalpha - Final Burn Alpha, arcade emulator libretro-fceumm - Nintendo NES emulator libretro-fuse - ZX Spectrum emulator libretro-gambatte - Nintendo Gameboy Color Emulator libretro-genesis_plus_gx - Sega 8 and 16 bit multi-emulator libretro-gpsp - Nintendo Gameboy emulator libretro-gw - Nintendo Game & Watch emulator libretro-handy - Atari Lynx emulator libretro-hatari - Atari ST/STE/TT/Falcon emulator libretro-mame2000 - Multiple Arcade Machine Emulator (0.37b5) libretro-mame2003 - Multiple Arcade Machine Emulator (0.78) libretro-mame2003_plus - Multiple Arcade Machine Emulator (0.78 with extra games) libretro-mgba - Nintendo Gameboy Advance emulator libretro-nestopia - Nintendo NES emulator libretro-nxengine - Cave Story engine libretro-o2em - Magnavox Odyssey 2 / Phillips Videopac emulator libretro-opera - Panasonic 3DO emulator libretro-pcsx_rearmed - Sony Playstion 1 emulator libretro-picodrive - Sega 8 and 16 bit multi-emulator libretro-prboom - Doom engine libretro-prosystem - Atari 7800 / Prosystem emulator libretro-quicknes - Nintendo NES emulator libretro-scummvm - SCUMMVM backend libretro-snes9x - Nintendo SNES emulator (Trunk) libretro-snes9x2005 - Nintendo SNES emulator (1.43) libretro-snes9x2010 - Nintendo SNES emulator (1.52) libretro-stella2014 - Atari 2600 emulator libretro-tgbdual - Nintendo Game Boy / Game Boy Color emulator libretro-tyrquake - Quake engine libretro-uae - Commodore Amiga emulator libretro-vbanext - Nintendo Game Boy Advance emulator libretro-vecx - GCE Vectrex emulator libretro-virtualjaguar - Atari Jaguar emulator PR: 244897 Submitted by: Daniel Menelkir <menelkir@itroll.org> Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D24516
Notes
Notes: svn path=/head/; revision=533314
Diffstat (limited to 'games/libretro-dosbox')
-rw-r--r--games/libretro-dosbox/Makefile26
-rw-r--r--games/libretro-dosbox/distinfo3
-rw-r--r--games/libretro-dosbox/files/patch-libretro-common_libco_aarch64.c17
-rw-r--r--games/libretro-dosbox/pkg-descr3
4 files changed, 49 insertions, 0 deletions
diff --git a/games/libretro-dosbox/Makefile b/games/libretro-dosbox/Makefile
new file mode 100644
index 000000000000..9859268b4d46
--- /dev/null
+++ b/games/libretro-dosbox/Makefile
@@ -0,0 +1,26 @@
+# $FreeBSD$
+
+PORTNAME= libretro-dosbox
+PORTVERSION= 0.20200313
+CATEGORIES= games
+
+MAINTAINER= menelkir@itroll.org
+COMMENT= Port of DOSBox (upstream) to the libretro API
+
+LICENSE= GPLv2
+
+USES= compiler:c++11-lib gmake
+USE_LDCONFIG= yes
+
+USE_GITHUB= yes
+GH_ACCOUNT= libretro
+GH_PROJECT= dosbox-libretro
+GH_TAGNAME= e4ed503
+
+PLIST_FILES= libexec/libretro/dosbox_libretro.so
+
+do-install:
+ ${MKDIR} ${STAGEDIR}/${PREFIX}/libexec/libretro;
+ ${INSTALL_LIB} $$(find ${WRKSRC}/${COREDIR}/ -name "*.so") ${STAGEDIR}/${PREFIX}/libexec/libretro;
+
+.include <bsd.port.mk>
diff --git a/games/libretro-dosbox/distinfo b/games/libretro-dosbox/distinfo
new file mode 100644
index 000000000000..68473f2f17ba
--- /dev/null
+++ b/games/libretro-dosbox/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1584483330
+SHA256 (libretro-dosbox-libretro-0.20200313-e4ed503_GH0.tar.gz) = 0e5c69964d3a45b832640554fb3c791c2d75338e18a2f20a4b0b47ca515b3d5b
+SIZE (libretro-dosbox-libretro-0.20200313-e4ed503_GH0.tar.gz) = 1186313
diff --git a/games/libretro-dosbox/files/patch-libretro-common_libco_aarch64.c b/games/libretro-dosbox/files/patch-libretro-common_libco_aarch64.c
new file mode 100644
index 000000000000..dec40ead577a
--- /dev/null
+++ b/games/libretro-dosbox/files/patch-libretro-common_libco_aarch64.c
@@ -0,0 +1,17 @@
+--- libretro-common/libco/aarch64.c.orig 2020-04-28 06:08:20 UTC
++++ libretro-common/libco/aarch64.c
+@@ -12,7 +12,13 @@
+ #include <stdint.h>
+
+ #ifndef IOS
+-#include <malloc.h>
++#include <sys/param.h>
++
++void *
++memalign(size_t align, size_t size)
++{
++ return (aligned_alloc(align, roundup(size, align)));
++}
+ #endif
+
+ #ifdef __cplusplus
diff --git a/games/libretro-dosbox/pkg-descr b/games/libretro-dosbox/pkg-descr
new file mode 100644
index 000000000000..1382b74add04
--- /dev/null
+++ b/games/libretro-dosbox/pkg-descr
@@ -0,0 +1,3 @@
+Port of DOSBox (upstream) to the libretro API.
+
+WWW: https://github.com/libretro/dosbox-libretro