summaryrefslogtreecommitdiff
path: root/sysutils/multitail/Makefile
blob: da484654da31572b0619c54fcdf5d37dcc266694 (plain)
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: Oliver Braun <obraun@FreeBSD.org>

PORTNAME=	multitail
PORTVERSION=	6.5.0
CATEGORIES=	sysutils
MASTER_SITES=	http://www.vanheusden.com/multitail/ \
		http://fossies.org/unix/privat/

MAINTAINER=	beat@FreeBSD.org
COMMENT=	Tail multiple files on console with ncurses

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/license.txt

USES=		alias gmake ncurses tar:tgz

PLIST_FILES=	bin/multitail etc/multitail.conf.sample \
		man/man1/multitail.1.gz
PORTDOCS=	readme.txt license.txt
MAKE_ARGS=	NCURSES_IMPL="${NCURSES_IMPL}"

OPTIONS_DEFINE=	DOCS

post-patch:
	${REINPLACE_CMD} -e "s/NCURSES_LIB:/LDFLAGS+/g" ${WRKSRC}/Makefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/multitail ${STAGEDIR}${PREFIX}/bin/
	${INSTALL_MAN} ${WRKSRC}/multitail.1 ${STAGEDIR}${MANPREFIX}/man/man1
	${INSTALL_DATA} ${WRKSRC}/multitail.conf ${STAGEDIR}${PREFIX}/etc/multitail.conf.sample
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/readme.txt ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/license.txt ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>