Add FreeBSD platform support#1489
Open
Luigi-Arone wants to merge 3 commits into
Open
Conversation
FreeBSD already has X11 and most POSIX APIs that the Linux implementation uses, so we can share most of the code: - src/frameworks/CMakeLists.txt and src/gui/CMakeLists.txt: compile UBPlatformUtils_linux.cpp and UBKeyboardPalette_linux.cpp on FreeBSD as well. - src/frameworks/UBPlatformUtils_linux.cpp: guard the DBus-based onboard keyboard integration with #ifdef Q_OS_FREEBSD, since the onboard daemon is not commonly available on FreeBSD. - src/web/UBEmbedController.cpp and src/podcast/UBPodcastController.cpp: add Q_OS_FREEBSD alongside Q_OS_LINUX in the platform ifdefs. Tested on FreeBSD 15.0-CURRENT amd64 with Qt6 5.15.
|
Maybe rename |
Qt6 6.10. |
freebsd-git
pushed a commit
to freebsd/freebsd-ports
that referenced
this pull request
May 13, 2026
OpenBoard is an open source cross-platform interactive whiteboard application designed primarily for use in schools. It was originally forked from Open-Sankore, which was itself based on Uniboard. It supports digital pens, virtual keyboards, PDF import, web browsing, video playback, and screen annotations. WWW: https://www.openboard.org/ https://github.com/OpenBoard-org/OpenBoard/ Patches reported to upstream: OpenBoard-org/OpenBoard#1489 OpenBoard-org/OpenBoard#1490 PR: 295104 Sponsored by: UNIS Labs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds support for building OpenBoard on FreeBSD.
FreeBSD already has X11 and most POSIX APIs that the Linux
implementation uses, so most of the platform code can be shared.
Changes
src/frameworks/CMakeLists.txtandsrc/gui/CMakeLists.txt: compileUBPlatformUtils_linux.cppandUBKeyboardPalette_linux.cpponFreeBSD as well, using
CMAKE_SYSTEM_NAME MATCHES "FreeBSD|Linux".src/frameworks/UBPlatformUtils_linux.cpp: guard the DBus-basedonboard keyboard integration with
#ifdef Q_OS_FREEBSD, since theonboard daemon is not commonly available on FreeBSD.
src/web/UBEmbedController.cppandsrc/podcast/UBPodcastController.cpp: addQ_OS_FREEBSDalongsideQ_OS_LINUXin the platform ifdefs.Context
OpenBoard is being packaged for the FreeBSD ports tree
(Bug 295104).
These upstream changes will reduce the number of FreeBSD-specific
patches the port needs to carry.
Testing
Tested on FreeBSD 15.0-CURRENT amd64 with Qt6.