aboutsummaryrefslogtreecommitdiffstats
path: root/security/lastpass-cli/Makefile
blob: a4de83539ef4348f3a0b057c00ac47f9d7d77e33 (plain) (blame)
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
52
53
# Created by: Thomas Hurst <tom@hur.st>
# $FreeBSD$

PORTNAME=   lastpass-cli
PORTVERSION=    1.3.1
DISTVERSIONPREFIX=  v
CATEGORIES= security

MAINTAINER= tom@hur.st
COMMENT=    LastPass command line interface tool

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    libcurl.so:ftp/curl

USES=       cmake:noninja pkgconfig ssl
USE_GNOME=  libxml2

USE_GITHUB= YES
GH_ACCOUNT= lastpass

PLIST_FILES=    bin/lpass share/bash-completion/completions/lpass
CMAKE_ARGS= -DBASH_COMPLETION_COMPLETIONSDIR=${PREFIX}/share/bash-completion/completions

TEST_TARGET=    lpass-test test

OPTIONS_DEFINE=     MANPAGES PINENTRY XCLIP XSEL
OPTIONS_DEFAULT=    MANPAGES
PINENTRY_DESC=      Use pinentry for password entry
XCLIP_DESC=     Use xclip for interacting with X11 clipboard
XSEL_DESC=      Use xsel for interacting with X11 clipboard

MANPAGES_BUILD_DEPENDS= asciidoc:textproc/asciidoc \
            xmlto:textproc/xmlto
MANPAGES_ALL_TARGET=    all doc-man
MANPAGES_INSTALL_TARGET=install install-doc
MANPAGES_PLIST_FILES=   ${MANPREFIX}/man/man1/lpass.1.gz

PINENTRY_RUN_DEPENDS=   pinentry:security/pinentry
XCLIP_RUN_DEPENDS=  xclip:x11/xclip
XSEL_RUN_DEPENDS=   xsel:x11/xsel

post-extract:
    @${REINPLACE_CMD} -e 's/-Wno-language-extension-token//g' \
        ${WRKSRC}/CMakeLists.txt
    @${REINPLACE_CMD} -e 's/build\/lpass-test/lpass-test/' \
        ${WRKSRC}/test/include.sh

post-install:
    @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/lpass

.include <bsd.port.mk>