Added
Link Here
|
1 |
PORTNAME= waylock |
2 |
DISTVERSIONPREFIX= v |
3 |
DISTVERSION= 0.6.1 |
4 |
CATEGORIES= x11 wayland |
5 |
|
6 |
MAINTAINER= ports@FreeBSD.org |
7 |
COMMENT= Small screenlocker for Wayland compositors |
8 |
WWW= https://github.com/ifreund/waylock |
9 |
|
10 |
LICENSE= ISCL |
11 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
12 |
|
13 |
BUILD_DEPENDS= wayland-protocols>0:graphics/wayland-protocols \ |
14 |
zig>=0.10.0:lang/zig |
15 |
LIB_DEPENDS= libwayland-client.so:graphics/wayland \ |
16 |
libxkbcommon.so:x11/libxkbcommon |
17 |
RUN_DEPENDS= unix-selfauth-helper>0:security/unix-selfauth-helper |
18 |
|
19 |
USES= pkgconfig |
20 |
USE_GITHUB= yes |
21 |
GH_ACCOUNT= ifreund |
22 |
GH_TUPLE= ifreund:zig-wayland:ace6aee:zig_wayland/deps/zig-wayland \ |
23 |
ifreund:zig-xkbcommon:bfd1f97:zig_xkbcommon/deps/zig-xkbcommon |
24 |
MAKE_ENV= DESTDIR="${STAGEDIR}" |
25 |
CONFIGURE_ARGS= --prefix "${PREFIX}" \ |
26 |
${WITH_DEBUG:D:U-Drelease-fast} \ |
27 |
${WITH_PIE:D-Dpie} \ |
28 |
${STRIP:C/.+/-Dstrip/} \ |
29 |
-Dcpu=${CPUTYPE:Ubaseline} \ |
30 |
--verbose |
31 |
NO_INSTALL= yes # strip(1) breaks runtime |
32 |
PLIST_FILES= bin/${PORTNAME} \ |
33 |
etc/pam.d/${PORTNAME} |
34 |
|
35 |
OPTIONS_DEFINE= MANPAGES |
36 |
OPTIONS_DEFAULT=MANPAGES |
37 |
|
38 |
MANPAGES_BUILD_DEPENDS= scdoc:textproc/scdoc |
39 |
MANPAGES_CONFIGURE_ON= -Dman-pages=true |
40 |
MANPAGES_CONFIGURE_OFF= -Dman-pages=false |
41 |
MANPAGES_PLIST_FILES= share/man/man1/${PORTNAME}.1.gz |
42 |
|
43 |
post-patch: |
44 |
# Respect LOCALBASE for unix-selfauth-helper |
45 |
@${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},' \ |
46 |
${WRKSRC}/pam.d/${PORTNAME} |
47 |
|
48 |
do-build: |
49 |
@(cd ${WRKSRC} && ${MAKE_ENV} zig build ${CONFIGURE_ARGS}) |
50 |
|
51 |
do-test: |
52 |
@(cd ${WRKSRC} && ${TEST_ENV} zig build test ${CONFIGURE_ARGS}) |
53 |
|
54 |
.include <bsd.port.mk> |