mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
fd08f4f2ed
PR: 192822 Submitted by: maintainer
49 lines
1.2 KiB
Makefile
49 lines
1.2 KiB
Makefile
# Created by: Dennis Herrmann <dhn@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= i3lock
|
|
PORTVERSION= 2.6
|
|
CATEGORIES= x11
|
|
MASTER_SITES= http://i3wm.org/${PORTNAME}/
|
|
|
|
MAINTAINER= horia@racoviceanu.com
|
|
COMMENT= Slightly improved screen locker based on slock
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
LIB_DEPENDS= libcairo.so:${PORTSDIR}/graphics/cairo \
|
|
libxcb-keysyms.so:${PORTSDIR}/x11/xcb-util-keysyms \
|
|
libxcb-image.so:${PORTSDIR}/x11/xcb-util-image \
|
|
libev.so:${PORTSDIR}/devel/libev \
|
|
libxkbfile.so:${PORTSDIR}/x11/libxkbfile \
|
|
libxkbcommon.so:${PORTSDIR}/x11/libxkbcommon
|
|
|
|
MAKE_ARGS= PREFIX="${PREFIX}" X11LIB="${LOCALBASE}/lib" \
|
|
X11INC="${LOCALBASE}/include" CC="${CC}" \
|
|
MANDIR="${MANPREFIX}/man"
|
|
|
|
PLIST_FILES= "@mode 4755" bin/i3lock @mode \
|
|
man/man1/i3lock.1.gz
|
|
|
|
LDFLAGS+= ${ICONV_LIB}
|
|
USE_XORG= x11 xcb xt xproto xext
|
|
USES= gmake iconv pkgconfig tar:bzip2
|
|
|
|
PORTDOCS= CHANGELOG README
|
|
|
|
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
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|