5 ms·
(author) Is there a way to specifically build the framebuffer version from the ports tree? I didn't see one.
by classichasclass 3mo ago
(author) Is there a way to specifically build the framebuffer version from the ports tree? I didn't see one.
- bentley 3mo ago/usr/ports/www/netsurf/netsurf-fb/
- classichasclass 3mo agoThanks, I'll try that.
- JdeBP 3mo agoThe annoying thing, looking at that, is that libnsfb (the library that netsurf-fb uses to construct its UI) once had a driver, deleted back in 2018, that could work directly with a Linux framebuffer device. This could have been easily adapted into a similar driver for wscons/wsdisplay/wskbd on OpenBSD and NetBSD. * https://github.com/netsurf-browser/libnsfb/commit/b2bb565402143c2b63d00ac8c89e3197ffe5354f https://github.com/netsurf-browser/libnsfb/commit/b2bb565402... Instead, libnsfb is now layered on top of SDL in the non-X11 non-Wayland case, with all of the dependencies and extra stuff that that entails, which of course you'll have to build. SDL3 explicitly doesn't handle dumb framebuffers and full wscons, explicitly requiring foreign KMS systems from Linux on the BSDs. * https://wiki.libsdl.org/SDL3/README-kmsbsd https://wiki.libsdl.org/SDL3/README-kmsbsd libnsfb then proceeds to ignore almost all of SDL anyway and draw its own UI directly, with SDL being little more than a glorified framebuffer-as-bitmap system with a couple of basic blitting operations. * https://github.com/netsurf-browser/libnsfb/blob/master/src/surface/sdl.c#L402 https://github.com/netsurf-browser/libnsfb/blob/master/src/s...