Created attachment 214031 [details] libretro-yabause.diff Yabause is a Sega Saturn emulator core for libretro compatible emulators, such as retroarch.
Created attachment 214182 [details] libretro-yabause-v2.diff Changed the PORTVERSION and do-install to match bug #246067
Created attachment 214264 [details] libretro-yabause-v3.diff Removed ${COREDIR} variable.
Thanks. This port requires gcc-c++11-lib on i386. I'm trying with aarch64.
I see there is a CMakeFiles provideded with yabause. Is there any reason to not use it? Thanks
(In reply to Loïc Bartoletti from comment #4) Some ports (if not most of them) are just the emulator adapted to run as a libretro core, so it shouldn't be compile as a standalone emulator, instead, they should be compiled used the provided libretro "adapter". In case of the yabause, the "adapter" is located at src/libretro. For reference, libretro developers provide a libretro-super repository that you can try to compile all cores as-is, so I use it as a base for the ports because it shows me where to start: https://github.com/libretro/libretro-super/blob/master/recipes/linux/cores-linux-x64-generic. So it's the line for yabause: yabause libretro-yabause https://github.com/libretro/yabause.git master YES GENERIC Makefile yabause/src/libretro
(In reply to Daniel Menelkir from comment #5) OK, and libretro doesn't have cmake but a classical Makefile. I made a tiny change to build on arm and i386 platforms.
(In reply to Loïc Bartoletti from comment #6) Thanks. I have a struggle (hardware related) to have multiple archs to test. This kind of changes are always welcome.
(In reply to Daniel Menelkir from comment #7) Maybe you don't know, but you can try your ports with Poudriere https://www.freebsd.org/doc/handbook/ports-poudriere.html
(In reply to Loïc Bartoletti from comment #8) I know, I just don't have disk space yet. :D
A commit references this bug: Author: lbartoletti Date: Mon Jun 1 07:49:42 UTC 2020 New revision: 537463 URL: https://svnweb.freebsd.org/changeset/ports/537463 Log: [NEW PORT] games/libretro-yabause: Yabause - Sega Saturn Emulator PR: 246124 Submitted by: menelkir@itroll.org Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D24940 Changes: head/games/Makefile head/games/libretro-yabause/ head/games/libretro-yabause/Makefile head/games/libretro-yabause/distinfo head/games/libretro-yabause/files/ head/games/libretro-yabause/files/patch-Makefile.freebsd head/games/libretro-yabause/files/patch-yabause_src_libretro_libretro-common_rthreads_rthreads.c head/games/libretro-yabause/pkg-descr
Committed, thanks!