2020-11-10 00:47:36 +01:00
|
|
|
PORTNAME= river
|
2021-10-04 11:10:20 +02:00
|
|
|
PORTVERSION= s20211004
|
2020-11-10 00:47:36 +01:00
|
|
|
CATEGORIES= x11-wm
|
|
|
|
|
|
|
|
MAINTAINER= jbeich@FreeBSD.org
|
|
|
|
COMMENT= Dynamic tiling Wayland compositor
|
|
|
|
|
|
|
|
LICENSE= GPLv3+
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
|
|
|
BUILD_DEPENDS= wayland-protocols>0:graphics/wayland-protocols \
|
2021-04-12 11:43:56 +02:00
|
|
|
wlroots>=0.14.0:x11-toolkits/wlroots \
|
2021-06-05 21:30:43 +02:00
|
|
|
zig>=0.8.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
|
2020-11-10 00:47:36 +01:00
|
|
|
GH_ACCOUNT= ifreund
|
2021-10-04 11:10:20 +02:00
|
|
|
GH_TAGNAME= 102a0b7
|
2021-05-24 16:43:21 +02:00
|
|
|
GH_TUPLE= ifreund:zig-pixman:135f223:zig_pixman/deps/zig-pixman \
|
2021-06-05 21:30:43 +02:00
|
|
|
ifreund:zig-wayland:a8e1efc:zig_wayland/deps/zig-wayland \
|
|
|
|
ifreund:zig-xkbcommon:10cdca6:zig_xkbcommon/deps/zig-xkbcommon \
|
2021-08-19 14:58:52 +02:00
|
|
|
swaywm:zig-wlroots:9bb6b03:zig_wlroots/deps/zig-wlroots
|
2021-01-02 01:11:26 +01:00
|
|
|
MAKE_ENV= DESTDIR="${STAGEDIR}"
|
|
|
|
CONFIGURE_ARGS= --prefix "${PREFIX}" \
|
2020-11-10 00:47:36 +01:00
|
|
|
${WITH_DEBUG:U-Drelease-fast=true} \
|
|
|
|
--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
|
|
|
|
|
|
|
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-07-19 14:01:10 +02:00
|
|
|
# Respect PREFIX in path references
|
|
|
|
@${REINPLACE_CMD} -e 's,/usr,${LOCALBASE},' \
|
2021-01-02 01:11:31 +01:00
|
|
|
${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>
|