pkgsrc-wip/multitail/Makefile

45 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.24 2015/08/18 07:31:13 wiz Exp $
#
DISTNAME= multitail-6.4.2
CATEGORIES= misc sysutils
MASTER_SITES= http://www.vanheusden.com/multitail/
EXTRACT_SUFX= .tgz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.vanheusden.com/multitail/
COMMENT= View one or multiple files
LICENSE= gnu-gpl-v2
USE_TOOLS+= gmake
USE_NCURSES= yes # Needs the <panel> library.
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/doc/multitail \
share/examples/multitail
CONF_FILES= ${PREFIX}/share/examples/multitail/multitail.conf \
${PKG_SYSCONFDIR}/multitail.conf
SUBST_CLASSES+= path
SUBST_MESSAGE.path= Adjust DESTDIR and PREFIX
SUBST_FILES.path= Makefile
SUBST_STAGE.path= post-patch
SUBST_VARS.path= DESTDIR PREFIX
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
BUILDLINK_TRANSFORM+= rm:-lutil
LDFLAGS+= -lsocket -lnsl
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/multitail ${DESTDIR}${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/multitail.1 ${DESTDIR}${PREFIX}/man/man1/
${INSTALL_DATA} ${WRKSRC}/multitail.conf \
${DESTDIR}${PREFIX}/share/examples/multitail/
cd ${WRKSRC} && ${INSTALL_DATA} *.txt manual*.html \
${DESTDIR}${PREFIX}/share/doc/multitail/
.include "../../devel/ncurses/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"