Created attachment 193695 [details]
Based on emulators/citra, thanks jbeich@
unicorn is bundled because yuzu needs newer than any released tagged version.
To test, you can e.g. run vba-next https://github.com/RSDuck/vba-next-switch/releases it should display a tiny file picker menu
Doesn't build on current:
Created attachment 193758 [details]
> make.sh: gmake: not found
oops, added gmake build dependency
Doesn't build on 11: https://gist.github.com/lwhsu/70369ccf248f2836e0519903bdb662a5
Created attachment 194988 [details]
Okay.. We don't need unicorn examples here, added a patch to disable building them. Tested on hardened 11-stable.
+ updated git version
(In reply to Greg V from comment #4)
Thanks, this one builds fine.
BTW, don't we need to switch to USES=qt:5 and USE_QT?
Please check the 20180630 entry of ports/CHANGES, thanks!
Created attachment 195430 [details]
(In reply to Li-Wen Hsu from comment #5)
Sure, here's a version with qt:5
Comment on attachment 195430 [details]
> +BROKEN_FreeBSD_10= libc++ does not support C++17 features e.g., weak_from_this
s/weak_from_this/<string_view>/ per https://ptpb.pw/B1rN
> +ONLY_FOR_ARCHS= amd64
> +ONLY_FOR_ARCHS_REASON= https://github.com/MerryMage/dynarmic/issues/35
Builds fine on:
- 11.1 i386, see https://ptpb.pw/-Zuz
- 11.1 aarch64, see https://ptpb.pw/RSV4
- 11.1 armv6, see https://ptpb.pw/pl0a
- 12.0 armv7, see https://ptpb.pw/GuiB
> +USE_SDL= sdl2
Does input actually work in yuzu-qt5? If not you may need to force SDL2 detection even when -DENABLE_SDL2=off is passed, see emulators/citra/files/patch-CMakeLists.txt
> +USES= cmake:outsource compiler:c++14-lang iconv localbase:ldflags
Better switch to USES=compiler:c++17-lang as declared in CMakeLists.txt. Fon one, recent Citra (Qt5) doesn't build with Clang 4.0, see https://ptpb.pw/W-dn
> +CXXFLAGS+= -D_GLIBCXX_USE_C99 -D_GLIBCXX_USE_C99_MATH_TR1 \
> + -D_DECLARE_C99_LDBL_MATH # XXX ports/193528
This is a cruft from GCC < 6 support. Given C++17 requirement, I think, it's safe to drop.
(In reply to Jan Beich from comment #7)
> s/weak_from_this/<string_view>/ per https://ptpb.pw/B1rN
Sorry, wrong error log (only 10.4 i386 complained about <string_view>). My point is weak_from_this is not used in Yuzu.
A commit references this bug:
Date: Sun Jun 30 00:26:17 UTC 2019
New revision: 505393
emulators/yuzu: add new port
Submitted by: Greg V <firstname.lastname@example.org> (based on)
Greg, can you check it still works? I mostly redid from scratch as your version was severaly out of date both with upstream and citra port.
(In reply to Jan Beich from comment #10)
Yeah, it can launch a homebrew program (I tested https://github.com/RSDuck/vba-next-switch/releases) with `-platform xcb` (seems like they still don't really support wayland).. I'm not really using it right now, so no serious testing with actual games.
Thanks for confirming.