mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
fadbf3bdc9
Changes: 102a0b7...50814e0
73 lines
2.1 KiB
Makefile
73 lines
2.1 KiB
Makefile
PORTNAME= river
|
|
PORTVERSION= s20211011
|
|
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 \
|
|
wlroots>=0.14.0:x11-toolkits/wlroots \
|
|
zig>=0.8.0:lang/zig
|
|
LIB_DEPENDS= libevdev.so:devel/libevdev \
|
|
libwayland-server.so:graphics/wayland \
|
|
libwlroots.so:x11-toolkits/wlroots \
|
|
libinput.so:x11/libinput \
|
|
libxkbcommon.so:x11/libxkbcommon
|
|
|
|
USES= pkgconfig xorg
|
|
USE_GITHUB= yes
|
|
USE_XORG= pixman
|
|
GH_ACCOUNT= ifreund
|
|
GH_TAGNAME= 50814e0
|
|
GH_TUPLE= ifreund:zig-pixman:88520f2:zig_pixman/deps/zig-pixman \
|
|
ifreund:zig-wayland:a8e1efc:zig_wayland/deps/zig-wayland \
|
|
ifreund:zig-xkbcommon:10cdca6:zig_xkbcommon/deps/zig-xkbcommon \
|
|
swaywm:zig-wlroots:9bb6b03:zig_wlroots/deps/zig-wlroots
|
|
MAKE_ENV= DESTDIR="${STAGEDIR}"
|
|
CONFIGURE_ARGS= --prefix "${PREFIX}" \
|
|
${WITH_DEBUG:U-Drelease-fast=true} \
|
|
--verbose
|
|
NO_INSTALL= yes # strip(1) breaks runtime
|
|
PLIST_FILES= bin/${PORTNAME} \
|
|
bin/${PORTNAME}ctl \
|
|
bin/${PORTNAME}tile \
|
|
libdata/pkgconfig/${PORTNAME}-protocols.pc \
|
|
share/${PORTNAME}-protocols/${PORTNAME}-layout-v3.xml \
|
|
share/bash-completion/completions/${PORTNAME}ctl \
|
|
share/fish/vendor_completions.d/${PORTNAME}ctl.fish \
|
|
share/zsh/site-functions/_${PORTNAME}ctl \
|
|
${NULL}
|
|
|
|
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 \
|
|
${NULL}
|
|
|
|
X11_CONFIGURE_ON= -Dxwayland=true
|
|
X11_CONFIGURE_OFF= -Dxwayland=false
|
|
|
|
post-patch:
|
|
# Respect devel/pkgconf default search
|
|
@${REINPLACE_CMD} -e '/pkgconfig/s/share/libdata/' \
|
|
${WRKSRC}/build.zig
|
|
# Respect PREFIX in path references
|
|
@${REINPLACE_CMD} -e 's,/usr,${LOCALBASE},' \
|
|
${WRKSRC}/doc/${PORTNAME}ctl.1.scd
|
|
|
|
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>
|