From bedd1e49ee99a4a19384b9664b3d176c8ce42618 Mon Sep 17 00:00:00 2001 From: Jose Alonso Cardenas Marquez Date: Fri, 22 Nov 2024 16:26:15 -0800 Subject: [PATCH] emulators/fbneo: New port: An emulator for arcade games and select consoles This is the official repository of FinalBurn Neo, an Emulator for Arcade Games & Select Consoles. It is based on the emulators FinalBurn and old versions of MAME. FBNeo, or FinalBurn Neo, is a multi-system arcade emulator designed for retro gaming enthusiasts. It emulates a wide range of classic arcade games and consoles, such as Capcom CPS-1, CPS-2, CPS-3, Neo Geo, and Sega System 16, among others. FBNeo focuses on accurate emulation and high performance, supporting advanced features like netplay, rewinding, and shader effects. It's a continuation of the FinalBurn and FinalBurn Alpha projects, aiming to provide a comprehensive and user-friendly platform for preserving and enjoying vintage games on modern systems. --- emulators/Makefile | 1 + emulators/fbneo/Makefile | 40 +++++++++++++++++++ emulators/fbneo/distinfo | 3 ++ emulators/fbneo/files/patch-makefile.sdl2 | 14 +++++++ .../fbneo/files/patch-src_burner_sdl_drv.cpp | 11 +++++ emulators/fbneo/files/pkg-message.in | 25 ++++++++++++ emulators/fbneo/pkg-descr | 12 ++++++ 7 files changed, 106 insertions(+) create mode 100644 emulators/fbneo/Makefile create mode 100644 emulators/fbneo/distinfo create mode 100644 emulators/fbneo/files/patch-makefile.sdl2 create mode 100644 emulators/fbneo/files/patch-src_burner_sdl_drv.cpp create mode 100644 emulators/fbneo/files/pkg-message.in create mode 100644 emulators/fbneo/pkg-descr diff --git a/emulators/Makefile b/emulators/Makefile index a8cbfe618353..ce6f6bb811a4 100644 --- a/emulators/Makefile +++ b/emulators/Makefile @@ -33,6 +33,7 @@ SUBDIR += emu64 SUBDIR += emulationstation SUBDIR += es-de + SUBDIR += fbneo SUBDIR += fceux SUBDIR += flexemu SUBDIR += flycast diff --git a/emulators/fbneo/Makefile b/emulators/fbneo/Makefile new file mode 100644 index 000000000000..b9bf09c8b3ce --- /dev/null +++ b/emulators/fbneo/Makefile @@ -0,0 +1,40 @@ +PORTNAME= fbneo +DISTVERSION= 1.0.0.3.20241120 +CATEGORIES= emulators + +MAINTAINER= acm@FreeBSD.org +COMMENT= An emulator for arcade games and select consoles +WWW= https://github.com/finalburnneo/FBNeo + +LICENSE= FBNeo +LICENSE_NAME= FBNeo +LICENSE_FILE= ${WRKSRC}/src/license.txt +LICENSE_PERMS= dist-mirror pkg-mirror auto-accept + +BUILD_DEPENDS= nasm>0:devel/nasm + +USES= compiler:c11 gl gmake sdl shebangfix + +USE_GITHUB= yes +GH_ACCOUNT= finalburnneo +GH_PROJECT= FBNeo +GH_TAGNAME= 60b73a1fd017d7d8af5a428e16be17e24847d3a2 + +USE_GL+= gl +USE_SDL= sdl2 image2 + +SHEBANG_GLOB= *.pl +PLIST_FILES= bin/fbneo \ + share/fbneo/gamelist.txt +PLIST_DIRS= share/fbneo + +MAKEFILE= makefile +ALL_TARGET= sdl2 +SUB_FILES= pkg-message + +do-install: + ${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_PROGRAM} ${WRKSRC}/fbneo ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + ${INSTALL_DATA} ${WRKSRC}/gamelist.txt ${STAGEDIR}${DATADIR} + +.include diff --git a/emulators/fbneo/distinfo b/emulators/fbneo/distinfo new file mode 100644 index 000000000000..894fcbf1c39a --- /dev/null +++ b/emulators/fbneo/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1732150958 +SHA256 (finalburnneo-FBNeo-1.0.0.3.20241120-60b73a1fd017d7d8af5a428e16be17e24847d3a2_GH0.tar.gz) = c5a92689da77aff002504ef631a9e81f40f8fea7cf33bfe5d84d27391ea59c17 +SIZE (finalburnneo-FBNeo-1.0.0.3.20241120-60b73a1fd017d7d8af5a428e16be17e24847d3a2_GH0.tar.gz) = 13794300 diff --git a/emulators/fbneo/files/patch-makefile.sdl2 b/emulators/fbneo/files/patch-makefile.sdl2 new file mode 100644 index 000000000000..4b1220c9863e --- /dev/null +++ b/emulators/fbneo/files/patch-makefile.sdl2 @@ -0,0 +1,14 @@ +--- makefile.sdl2.orig 2024-11-21 01:07:09 UTC ++++ makefile.sdl2 +@@ -170,9 +170,9 @@ ifdef DARWIN + # + + ifdef DARWIN +- CC = gcc ++ CC ?= gcc + else +- CC = gcc ++ CC ?= gcc + endif + + CXX = $(CC) diff --git a/emulators/fbneo/files/patch-src_burner_sdl_drv.cpp b/emulators/fbneo/files/patch-src_burner_sdl_drv.cpp new file mode 100644 index 000000000000..64edff022ed2 --- /dev/null +++ b/emulators/fbneo/files/patch-src_burner_sdl_drv.cpp @@ -0,0 +1,11 @@ +--- src/burner/sdl/drv.cpp.orig 2024-11-21 06:47:25 UTC ++++ src/burner/sdl/drv.cpp +@@ -3,7 +3,7 @@ int bDrvOkay = 0; // 1 if the Dr + #include "neocdlist.h" + int bDrvOkay = 0; // 1 if the Driver has been initted okay, and it's okay to use the BurnDrv functions + +-char szAppRomPaths[DIRS_MAX][MAX_PATH] = { { "/usr/local/share/roms/" }, { "roms/" }, }; ++char szAppRomPaths[DIRS_MAX][MAX_PATH] = { { "/usr/local/share/fbneo/roms/" }, { "roms/" }, }; + + static bool bSaveRAM = false; + diff --git a/emulators/fbneo/files/pkg-message.in b/emulators/fbneo/files/pkg-message.in new file mode 100644 index 000000000000..8d9481df3b9f --- /dev/null +++ b/emulators/fbneo/files/pkg-message.in @@ -0,0 +1,25 @@ +[ +{ type: install + message: <