Skip to content

Commit

Permalink
x11/i3lock-color: Add DOCS option, move some deps in USES
Browse files Browse the repository at this point in the history
The changes came mostly from an already abandoned review[1].
[1] https://reviews.freebsd.org/D22941

PR:		257664
  • Loading branch information
rhurlin committed Aug 12, 2021
1 parent d993493 commit 267a02d
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions x11/i3lock-color/Makefile
@@ -1,3 +1,5 @@
# Created by: Jacob House <jacob@jwfh.ca>

PORTNAME= i3lock-color
DISTVERSION= 2.13.c.4
CATEGORIES= x11
Expand All @@ -8,23 +10,22 @@ COMMENT= Enhanced i3lock with higher capacity
LICENSE= BSD3CLAUSE

BUILD_DEPENDS= ${LOCALBASE}/bin/pam_helper:security/pam_helper
LIB_DEPENDS= libcairo.so:graphics/cairo \
libev.so:devel/libev \
LIB_DEPENDS= libev.so:devel/libev \
libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
libjpeg.so:graphics/jpeg-turbo \
libxcb-image.so:x11/xcb-util-image \
libxcb-keysyms.so:x11/xcb-util-keysyms \
libxcb-util.so:x11/xcb-util \
libxcb-xrm.so:x11/xcb-util-xrm \
libxkbcommon.so:x11/libxkbcommon \
libxkbfile.so:x11/libxkbfile

USES= autoreconf gmake iconv jpeg localbase pkgconfig tar:bzip2 xorg
USES= autoreconf gmake gnome iconv jpeg localbase pkgconfig tar:bzip2 xorg
USE_CSTD= c99
USE_GCC= yes
USE_GITHUB= yes
GH_ACCOUNT= Raymo111
USE_GNOME= cairo
USE_XORG= x11 xcb xext xinerama xorgproto xrandr xt

GNU_CONFIGURE= yes
Expand All @@ -43,8 +44,17 @@ INSTALL_WRKSRC= ${WRKSRC}/${CONFIGURE_TARGET}
PLIST_FILES= "@(,,4755) bin/i3lock" \
man/man1/i3lock.1.gz

OPTIONS_DEFINE= DOCS

DOC_FILES= CHANGELOG README.md
DOCS_PLIST_FILES= ${DOC_FILES:S|^|${DOCSDIR_REL}/|}

post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/i3lock
@${RM} ${STAGEDIR}${PREFIX}/etc/pam.d/i3lock

post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOC_FILES:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>

0 comments on commit 267a02d

Please sign in to comment.