1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/x11/waylock/Makefile
Jan Beich 3786df45d9 x11/waylock: back to GitHub except WWW
As the mirror is no longer archived switch back to facilitate updating
submodules until USE_GITEA or similar appears.

This reverts commit 48c44950a2.
2024-04-16 19:44:52 +02:00

47 lines
1.3 KiB
Makefile

PORTNAME= waylock
DISTVERSIONPREFIX= v
DISTVERSION= 1.0.0
CATEGORIES= x11 wayland
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Small screenlocker for Wayland compositors
WWW= https://codeberg.org/ifreund/waylock
LICENSE= ISCL
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= wayland-protocols>0:graphics/wayland-protocols \
zig>=0.11.0:lang/zig
LIB_DEPENDS= libwayland-client.so:graphics/wayland \
libxkbcommon.so:x11/libxkbcommon
RUN_DEPENDS= unix-selfauth-helper>0:security/unix-selfauth-helper
USES= pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= ifreund
GH_TUPLE= ifreund:zig-wayland:65475ba:zig_wayland/deps/zig-wayland \
ifreund:zig-xkbcommon:7b188de:zig_xkbcommon/deps/zig-xkbcommon
MAKE_ENV= DESTDIR="${STAGEDIR}"
CONFIGURE_ARGS= --prefix "${PREFIX}" \
${WITH_DEBUG:D:U-Doptimize=ReleaseFast} \
${WITH_PIE:D-Dpie} \
${STRIP:C/.+/-Dstrip/} \
-Dcpu=${CPUTYPE:Ubaseline} \
--verbose
NO_INSTALL= yes # strip(1) breaks runtime
PLIST_FILES= bin/${PORTNAME} \
etc/pam.d/${PORTNAME}
OPTIONS_DEFINE= MANPAGES
OPTIONS_DEFAULT=MANPAGES
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
do-build:
@(cd ${WRKSRC} && ${MAKE_ENV} zig build ${CONFIGURE_ARGS})
.include <bsd.port.mk>