-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v3.3/glfw: add openbsd support #336
Conversation
partially fixes #288 change freebsd specific code to be more general add openbsd specific build tags where necessary
Nice! This looks good to me but I'd like to defer this to other reviewers. Can we support NetBSD in the same way? |
netbsd support seems blocked by missing support in go-gl/glow and godbus/dbus. but yes, a very similar set of changes will work for netbsd once those support it |
If there is no objection, I'll merge this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable to me. One minor comment/question.
since pkg-config gets CFLAGS for glfw3, we don't need to explicitly specify the openbsd x11 include path
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really nice work in this. I'm very interested in giving it a go running Fyne on OpenBSD :)
Can we please get the install instructions in the README updated for OpenBSD (possibly NetBSD also if that starts working)? I realise that FreeBSD isn't there but that might be outside the work of this PR, I guess?
@ilylily would it be possible to have this change with |
simply include standard X11 paths so that the included glfw source compiles on openbsd
removes the need to explicitly specify standard X11 directories
Thanks for the fix. I left a comment. |
sort bsd pkg-config lines for readability
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Note that we should address #313 later. I hope we can use the same way as OpenBSD. |
As I said earlier, I also think we should update the README with installation instructions for OpenBSD. |
Oh sorry I missed that. @ilylily Could you create a PR to update README? Thanks, |
partially fixes #288
simple adaptations to add openbsd support. this makes
fyne.io/fyne/v2/cmd/fyne_demo/
run on my OpenBSD-current machine. i don't have a netbsd system available, but hopefully this makes it clear which 8-ish changes a netbsd user would need to make to support that too