Bug 252193 - [NEW PORT] emulators/reicast: Multi-platform Sega Dreamcast emulator
Summary: [NEW PORT] emulators/reicast: Multi-platform Sega Dreamcast emulator
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Neel Chauhan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-27 06:53 UTC by Timothy Beyer
Modified: 2022-05-19 17:45 UTC (History)
4 users (show)

See Also:


Attachments
emulators_reicast.shar (7.57 KB, text/plain)
2020-12-27 06:53 UTC, Timothy Beyer
no flags Details
emulators_reicast.shar (7.57 KB, text/plain)
2021-07-14 05:57 UTC, Timothy Beyer
no flags Details
[PATCH / NEW PORT] emulators-reicast.diff (updated, confirm build in poudriere) (8.38 KB, patch)
2022-05-17 05:28 UTC, Timothy Beyer
beyert: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Beyer 2020-12-27 06:53:54 UTC
Created attachment 220986 [details]
emulators_reicast.shar

Created new port for the reicast emulator, which compiles properly, but I think has issues on my machines (with Intel based GPUs) that I have tried thus far.  I am releasing it anyway, and have just released a port for the libretro reicast core itself (see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252192) in case it works well with other GPUs, because I consider it useful to have a working Sega Dreamcast emulator on FreeBSD.

So far, I've tested it with Mars Matrix, which is emulated accurately when it works.  When it doesn't work, I have to restart Xorg, but this may just be an issue with my GPU driver.

Sorry to just sit on this port for several months, but I wanted to test it carefully.

Tested on FreeBSD 12.1-RELEASE:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252189
Comment 1 Timothy Beyer 2020-12-27 07:32:39 UTC
I forgot to mention that I personally can only get this to run properly with the Dynarec option disabled, but even so, ran at full speed on the game that I tried (it likely wasn't affected as most of Mars Matrix is 2D, but in either case, I would like to get it to a state where it works with Dynarec enabled).  I can talk to the reicast team to find out why this is necessary, as well as why it even with this fix is still so unstable on my machines with Intel graphics that I have tried thus far.

Ultimately, I thought that this should be submitted, because it may work better on other graphics cards (further, the Intel driver on -CURRENT may work much better), and also in case anyone else can improve on this port.
Comment 2 Timothy Beyer 2021-07-14 05:57:12 UTC
Created attachment 226443 [details]
emulators_reicast.shar

Here is an updated patch that compiles on newer versions of FreeBSD, including FreeBSD 13.0-RELEASE, and also is updated to the newest version, which is 20201231.
Comment 3 Max Brazhnikov freebsd_committer freebsd_triage 2021-07-15 09:15:52 UTC
Back to the pool.
Comment 4 Timothy Beyer 2022-05-17 05:28:13 UTC
Created attachment 233993 [details]
[PATCH / NEW PORT] emulators-reicast.diff (updated, confirm build in poudriere)

This is a higher quality git-formatted patch that was tested with poudriere, although I don't believe there were any issues with the prior version
Comment 5 Neel Chauhan freebsd_committer freebsd_triage 2022-05-19 17:43:36 UTC
Committed!
Comment 6 commit-hook freebsd_committer freebsd_triage 2022-05-19 17:45:08 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e4ef394902532240899a3c3f5c6968c4eade9be8

commit e4ef394902532240899a3c3f5c6968c4eade9be8
Author:     Timothy Beyer <beyert_freebsd@fastmail.net>
AuthorDate: 2022-05-17 03:53:46 +0000
Commit:     Neel Chauhan <nc@FreeBSD.org>
CommitDate: 2022-05-19 17:43:57 +0000

    emulators/reicast: New port: Multi-platform Sega Dreamcast emulator

    PR:     252193

 emulators/Makefile                                 |  1 +
 emulators/reicast/Makefile (new)                   | 44 ++++++++++++++++++++++
 emulators/reicast/distinfo (new)                   |  3 ++
 emulators/reicast/files/patch-CMakeLists.txt (new) | 11 ++++++
 ...tch-libswirl_gui_gui__settings__about.cpp (new) | 25 ++++++++++++
 .../files/patch-libswirl_linux-dist_main.cpp (new) | 10 +++++
 .../files/patch-libswirl_linux_common.cpp (new)    | 42 +++++++++++++++++++++
 .../files/patch-reicast_cmake_config.cmake (new)   | 16 ++++++++
 emulators/reicast/pkg-descr (new)                  |  3 ++
 9 files changed, 155 insertions(+)