summaryrefslogblamecommitdiff
path: root/x11/i3lock-color/Makefile
blob: 0afb89ae868eed75eb38d0a1bbd97bcb3dd481c3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12

                                         









                                                               
                                      

                                                       






                                                        
                                                                                    



                        
                     









                                                              
                              






                                             




                                                         



                                                     



                                                                          
                      
# Created by: Jacob House <jacob@jwfh.ca>

PORTNAME=	i3lock-color
DISTVERSION=	2.13.c.4
CATEGORIES=	x11

MAINTAINER=	fjachuf@gmail.com
COMMENT=	Enhanced i3lock with higher capacity

LICENSE=	BSD3CLAUSE

BUILD_DEPENDS=	${LOCALBASE}/bin/pam_helper:security/pam_helper
LIB_DEPENDS=	libev.so:devel/libev \
		libfontconfig.so:x11-fonts/fontconfig \
		libfreetype.so:print/freetype2 \
		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 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

MAKE_ARGS=	PREFIX="${PREFIX}" X11LIB="${LOCALBASE}/lib" \
		X11INC="${LOCALBASE}/include" CC="${CC}" \
		MANDIR="${MANPREFIX}/man"

LDFLAGS+=	${ICONV_LIB}

CONFLICTS_INSTALL=	i3lock

BUILD_WRKSRC=	${WRKSRC}/${CONFIGURE_TARGET}
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>