blob: 4bd5e830cf59dc3c4101a1f46dc0150c990f64c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Created by: Dennis Herrmann <dhn@FreeBSD.org>
# $FreeBSD$
PORTNAME= i3lock
PORTVERSION= 2.9.1
CATEGORIES= x11
MASTER_SITES= http://i3wm.org/${PORTNAME}/
MAINTAINER= bapt@FreeBSD.org
COMMENT= Slightly improved screen locker based on slock
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libcairo.so:graphics/cairo \
libxcb-keysyms.so:x11/xcb-util-keysyms \
libxcb-image.so:x11/xcb-util-image \
libev.so:devel/libev \
libxkbfile.so:x11/libxkbfile \
libxkbcommon.so:x11/libxkbcommon \
libxcb-util.so:x11/xcb-util
MAKE_ARGS= PREFIX="${PREFIX}" X11LIB="${LOCALBASE}/lib" \
X11INC="${LOCALBASE}/include" CC="${CC}" \
MANDIR="${MANPREFIX}/man"
PLIST_FILES= "@(,,4755) bin/i3lock" \
man/man1/i3lock.1.gz
LDFLAGS+= ${ICONV_LIB}
USE_XORG= x11 xcb xt xproto xext
USES= gmake iconv pkgconfig tar:bzip2
PORTDOCS= CHANGELOG README.md
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|.*pam.d/i3lock.*| $$(INSTALL)\
-m 644 i3lock.1 $$(DESTDIR)$$(PREFIX)/man/man1|; \
/pam.d/d' \
${WRKSRC}/Makefile
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/i3lock
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|