-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: add a FreeBSD build on Sourcehut
- Loading branch information
Showing
3 changed files
with
57 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
image: freebsd/latest | ||
packages: | ||
- devel/evdev-proto | ||
- devel/meson | ||
- devel/libepoll-shim | ||
- devel/pkgconf | ||
- graphics/mesa-libs | ||
- graphics/wayland | ||
- graphics/wayland-protocols | ||
- x11/libinput | ||
- x11/libxkbcommon | ||
- x11/pixman | ||
sources: | ||
- https://github.com/swaywm/wlroots | ||
- https://github.com/Hjdskes/cage | ||
tasks: | ||
# Taken from sway | ||
- fixup_epoll: | | ||
cat << 'EOF' | sudo tee /usr/local/libdata/pkgconfig/epoll-shim.pc | ||
prefix=/usr/local | ||
exec_prefix=\$\{\$prefix\} | ||
libdir=${prefix}/lib | ||
sharedlibdir=${prefix}/lib | ||
includedir=${prefix}/include/libepoll-shim | ||
Name: epoll-shim | ||
Description: epoll shim implemented using kevent | ||
Version: 0 | ||
Requires: | ||
Libs: -L${libdir} -L${sharedlibdir} -lepoll-shim | ||
Libs.private: -pthread -lrt | ||
Cflags: -I${includedir} | ||
EOF | ||
# Install wlroots, which is required by Cage. Note that we compile a tagged | ||
# version, instead of master, to avoid any breaking changes in wlroots. | ||
- wlroots: | | ||
cd wlroots | ||
# This corresponds to the tag of 0.5.0 | ||
git checkout c9137cba691b57c3eaf3ff94f9bf8e623f66ccc5 | ||
meson --prefix=/usr/local build -Drootston=false -Dexamples=false | ||
ninja -C build | ||
sudo ninja -C build install | ||
- build: | | ||
cd cage | ||
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig meson build -Dxwayland=true | ||
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ninja -C build |
This file contains 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
This file contains 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