aboutsummaryrefslogtreecommitdiff
path: root/sysutils/lnav/Makefile
blob: f69a80b48826c5612154995f6a8995ca2a22fe7c (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
# Created by: Thomas Hurst <tom@hur.st>

PORTNAME=	lnav
DISTVERSION=	0.10.1
CATEGORIES=	sysutils
MASTER_SITES=	https://github.com/tstack/${PORTNAME}/releases/download/v${PORTVERSION}/

MAINTAINER=	tom@hur.st
COMMENT=	Terminal based log file navigator

LICENSE=	BSD2CLAUSE

LIB_DEPENDS=	libpcrecpp.so:devel/pcre

USES=		autoreconf compiler:c  14-lang gmake ncurses readline sqlite \
		tar:bz2

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-static

PLIST_FILES=	bin/lnav \
		man/man1/lnav.1.gz

OPTIONS_DEFINE=		CURL
OPTIONS_DEFAULT=	CURL
CURL_DESC=		Use libcurl for remote log file support

CURL_LIB_DEPENDS=	libcurl.so:ftp/curl
CURL_CONFIGURE_WITH=	libcurl

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/lnav ${STAGEDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/lnav.1 ${STAGEDIR}${MAN1PREFIX}/man/man1

.include <bsd.port.mk>