openbsd-ports/sysutils/multitail/Makefile

44 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.23 2007/09/15 21:14:02 merdely Exp $
COMMENT= multi-window tail(1) utility
DISTNAME= multitail-5.0.5
CATEGORIES= sysutils
HOMEPAGE= http://www.vanheusden.com/multitail/
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}
EXTRACT_SUFX= .tgz
WANTLIB= c m ncurses util panel
NO_REGRESS= Yes
MAKE_FLAGS= CC='${CC}' \
CFLAGS='${CFLAGS} -DVERSION=\"${VERSION}\" \
-DCONFIG_FILE=\"${SYSCONFDIR}/multitail.conf\"' \
LDFLAGS='-lpanel -lncurses -lutil -lm'
do-install:
${INSTALL_PROGRAM} ${WRKBUILD}/multitail ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/multitail.1 ${PREFIX}/man/man1
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/multitail
${INSTALL_DATA} ${WRKSRC}/readme.txt ${WRKSRC}/manual.html \
${PREFIX}/share/doc/multitail
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/multitail
${INSTALL_DATA} ${WRKSRC}/multitail.conf \
${PREFIX}/share/examples/multitail
@perl -i -pe \
's:/etc/multitail/:${TRUEPREFIX}/share/examples/multitail/:' \
${PREFIX}/share/examples/multitail/multitail.conf
${INSTALL_DATA} ${WRKSRC}/convert-* ${WRKSRC}/colors-* \
${PREFIX}/share/examples/multitail
.include <bsd.port.mk>