2020-11-10 00:47:36 +01:00
|
|
|
PORTNAME= river
|
2021-11-03 00:01:31 +01:00
|
|
|
DISTVERSIONPREFIX= v
|
2023-02-10 17:00:35 +01:00
|
|
|
DISTVERSION= 0.2.4
|
2022-07-01 10:00:55 +02:00
|
|
|
CATEGORIES= x11-wm wayland
|
2020-11-10 00:47:36 +01:00
|
|
|
|
|
|
|
MAINTAINER= jbeich@FreeBSD.org
|
|
|
|
COMMENT= Dynamic tiling Wayland compositor
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= https://github.com/riverwm/river
|
2020-11-10 00:47:36 +01:00
|
|
|
|
2022-02-05 19:10:59 +01:00
|
|
|
LICENSE= GPLv3
|
2020-11-10 00:47:36 +01:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
x11-wm/river: unbreak build after 5d998836b36f
./river/c.zig:18:20: error: C import failed
pub usingnamespace @cImport({
^
./zig-cache/o/daef1847f9aadef85fa78182104dcc98/cimport.h:4:10: note: 'linux/input-event-codes.h' file not found
^
./river/Cursor.zig:173:14: error: container 'c' has no member called 'setenv'
if (c.setenv("XCURSOR_SIZE", size_str, 1) < 0) return error.OutOfMemory;
^
./river/Cursor.zig:124:5: note: referenced here
try self.setTheme(null, null);
^
./river/Seat.zig:105:5: note: referenced here
try self.cursor.init(self);
^
./river/InputManager.zig:131:5: note: referenced here
try seat_node.data.init(default_seat_name);
^
./river/Server.zig:121:5: note: referenced here
try self.input_manager.init();
^
./river/main.zig:97:5: note: referenced here
try server.init();
^
./river/InputConfig.zig:291:11: error: container 'c' has no member called 'libinput_device'
*c.libinput_device,
^
./river/command/input.zig:200:22: error: container 'c' has no member called 'libevdev_event_code_from_name'
const ret = c.libevdev_event_code_from_name(c.EV_KEY, args[3]);
^
./river/command/input.zig:116:30: error: container 'c' has no member called 'libevdev_event_code_get_name'
mem.sliceTo(c.libevdev_event_code_get_name(c.EV_KEY, scroll_button.button), 0),
^
./river/command/map.zig:158:25: error: container 'c' has no member called 'libevdev_event_code_from_name'
const event_code = c.libevdev_event_code_from_name(c.EV_KEY, name);
^
./river/command/map.zig:85:24: note: referenced here
const event_code = try parseEventCode(allocator, args[3], out);
^
./river/command/spawn.zig:44:14: error: container 'c' has no member called 'setsid'
if (c.setsid() < 0) unreachable;
^
Pointy hat to: manu
2021-11-10 10:24:08 +01:00
|
|
|
BUILD_DEPENDS= evdev-proto>0:devel/evdev-proto \
|
|
|
|
wayland-protocols>0:graphics/wayland-protocols \
|
2023-01-02 01:12:11 +01:00
|
|
|
wlroots>=0.16.0:x11-toolkits/wlroots \
|
2023-01-08 17:11:08 +01:00
|
|
|
zig>=0.10.0:lang/zig
|
2020-11-10 00:47:36 +01:00
|
|
|
LIB_DEPENDS= libevdev.so:devel/libevdev \
|
|
|
|
libwayland-server.so:graphics/wayland \
|
|
|
|
libwlroots.so:x11-toolkits/wlroots \
|
2021-06-13 19:37:36 +02:00
|
|
|
libinput.so:x11/libinput \
|
2020-11-10 00:47:36 +01:00
|
|
|
libxkbcommon.so:x11/libxkbcommon
|
|
|
|
|
2020-12-06 00:42:57 +01:00
|
|
|
USES= pkgconfig xorg
|
2020-11-10 00:47:36 +01:00
|
|
|
USE_GITHUB= yes
|
2020-12-06 00:42:57 +01:00
|
|
|
USE_XORG= pixman
|
2021-11-03 10:14:08 +01:00
|
|
|
GH_ACCOUNT= riverwm
|
2023-01-08 17:11:08 +01:00
|
|
|
GH_TUPLE= ifreund:zig-pixman:4a49ba1:zig_pixman/deps/zig-pixman \
|
x11-wm/river: unbreak on aarch64 after 1f734d3bbcda
zig-cache/zig-wayland/common.zig:103:21: error: cast increases pointer alignment
@ptrCast(*const fn (*Obj, Payload, Data) void, implementation)(
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
zig-cache/zig-wayland/common.zig:103:68: note: '?*const anyopaque' has alignment '1'
@ptrCast(*const fn (*Obj, Payload, Data) void, implementation)(
^~~~~~~~~~~~~~
zig-cache/zig-wayland/common.zig:103:30: note: '*const fn(*river_layout_v3_server.LayoutV3, river_layout_v3_server.LayoutV3.Request, ?*anyopaque) void' has alignment '4'
@ptrCast(*const fn (*Obj, Payload, Data) void, implementation)(
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Inspired by: Alpine Linux
2023-01-18 20:41:53 +01:00
|
|
|
ifreund:zig-wayland:ace6aee:zig_wayland/deps/zig-wayland \
|
2023-01-08 17:11:08 +01:00
|
|
|
ifreund:zig-xkbcommon:bfd1f97:zig_xkbcommon/deps/zig-xkbcommon \
|
|
|
|
swaywm:zig-wlroots:04bcd67:zig_wlroots/deps/zig-wlroots
|
2021-01-02 01:11:26 +01:00
|
|
|
MAKE_ENV= DESTDIR="${STAGEDIR}"
|
|
|
|
CONFIGURE_ARGS= --prefix "${PREFIX}" \
|
2022-01-05 07:40:23 +01:00
|
|
|
${WITH_DEBUG:D:U-Drelease-fast} \
|
2023-01-22 14:54:36 +01:00
|
|
|
${WITH_PIE:D-Dpie} \
|
|
|
|
${STRIP:C/.+/-Dstrip/} \
|
2022-01-05 07:46:49 +01:00
|
|
|
-Dcpu=${CPUTYPE:Ubaseline} \
|
2020-11-10 00:47:36 +01:00
|
|
|
--verbose
|
|
|
|
NO_INSTALL= yes # strip(1) breaks runtime
|
|
|
|
PLIST_FILES= bin/${PORTNAME} \
|
|
|
|
bin/${PORTNAME}ctl \
|
2020-12-31 01:32:19 +01:00
|
|
|
bin/${PORTNAME}tile \
|
2021-07-28 13:44:23 +02:00
|
|
|
libdata/pkgconfig/${PORTNAME}-protocols.pc \
|
|
|
|
share/${PORTNAME}-protocols/${PORTNAME}-layout-v3.xml \
|
2021-03-16 01:16:02 +01:00
|
|
|
share/bash-completion/completions/${PORTNAME}ctl \
|
2021-03-18 01:52:00 +01:00
|
|
|
share/fish/vendor_completions.d/${PORTNAME}ctl.fish \
|
2021-03-16 01:16:02 +01:00
|
|
|
share/zsh/site-functions/_${PORTNAME}ctl \
|
|
|
|
${NULL}
|
2020-11-10 00:47:36 +01:00
|
|
|
|
2023-01-22 06:53:42 +01:00
|
|
|
# https://github.com/ziglang/zig/issues/12170 (pixman)
|
|
|
|
MAKE_ENV+= PKG_CONFIG_SYSTEM_LIBRARY_PATH="${LOCALBASE}/lib"
|
|
|
|
|
2020-11-10 00:47:36 +01:00
|
|
|
OPTIONS_DEFINE= MANPAGES X11
|
|
|
|
OPTIONS_DEFAULT=MANPAGES X11
|
|
|
|
|
|
|
|
MANPAGES_BUILD_DEPENDS= scdoc:textproc/scdoc
|
|
|
|
MANPAGES_CONFIGURE_ON= -Dman-pages=true
|
|
|
|
MANPAGES_CONFIGURE_OFF= -Dman-pages=false
|
|
|
|
MANPAGES_PLIST_FILES= share/man/man1/${PORTNAME}.1.gz \
|
|
|
|
share/man/man1/${PORTNAME}ctl.1.gz \
|
|
|
|
share/man/man1/${PORTNAME}tile.1.gz \
|
2021-04-21 16:51:53 +02:00
|
|
|
${NULL}
|
2020-11-10 00:47:36 +01:00
|
|
|
|
|
|
|
X11_CONFIGURE_ON= -Dxwayland=true
|
|
|
|
X11_CONFIGURE_OFF= -Dxwayland=false
|
|
|
|
|
2020-11-19 04:49:08 +01:00
|
|
|
post-patch:
|
2021-07-28 13:44:23 +02:00
|
|
|
# Respect devel/pkgconf default search
|
|
|
|
@${REINPLACE_CMD} -e '/pkgconfig/s/share/libdata/' \
|
|
|
|
${WRKSRC}/build.zig
|
2021-11-13 01:55:59 +01:00
|
|
|
# Respect PREFIX in path references
|
|
|
|
@${REINPLACE_CMD} -e 's,/usr,${LOCALBASE},' \
|
|
|
|
${WRKSRC}/doc/${PORTNAME}ctl.1.scd
|
2020-11-19 04:49:08 +01:00
|
|
|
|
2020-11-10 00:47:36 +01:00
|
|
|
do-build:
|
|
|
|
@(cd ${WRKSRC} && ${MAKE_ENV} zig build ${CONFIGURE_ARGS})
|
|
|
|
|
|
|
|
do-test:
|
|
|
|
@(cd ${WRKSRC} && ${TEST_ENV} zig build test ${CONFIGURE_ARGS})
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|