pkgsrc/misc/colorize/Makefile
jlam 3e474a90d8 Get rid of USE_PERL5. The new way to express needing the Perl executable
around at either build-time or at run-time is:

	USE_TOOLS+=	perl		# build-time
	USE_TOOLS+=	perl:run	# run-time

Also remove some places where perl5/buildlink3.mk was being included
by a package Makefile, but all that the package wanted was the Perl
executable.
2005-07-16 01:19:06 +00:00

42 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.13 2005/07/16 01:19:14 jlam Exp $
#
DISTNAME= colorize_0.3.0
PKGNAME= colorize-0.3.0
CATEGORIES= misc
MASTER_SITES= http://nrg.martos.bme.hu/release/colorize/download/bz2/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= zuntum@NetBSD.org
HOMEPAGE= http://nrg.martos.bme.hu/release/colorize/
COMMENT= Log colorize perl script
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
NO_BUILD= yes
USE_TOOLS+= gunzip perl:run
INSTALLATION_DIRS= bin man/man1
post-patch:
${SED} -e "s,/usr/bin/perl,${LOCALBASE}/bin/perl," \
-e "s,/etc/colorizerc,${PREFIX}/etc/colorizerc," \
${WRKSRC}/colorize.pl > ${WRKSRC}/colorize.pl.done
${MV} ${WRKSRC}/colorize.pl.done ${WRKSRC}/colorize.pl
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/colorize.pl ${PREFIX}/bin/colorize
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/colorize
${INSTALL_DATA} ${WRKSRC}/colorizerc ${PREFIX}/share/examples/colorize
${GUNZIP_CMD} ${WRKSRC}/colorize.pl.1.gz
${INSTALL_MAN} ${WRKSRC}/colorize.pl.1 ${PREFIX}/man/man1/colorize.1
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/colorize
cd ${WRKSRC} && ${INSTALL_DATA} README TIPS ${PREFIX}/share/doc/colorize
${GUNZIP_CMD} ${WRKSRC}/examples/colorize-fifo.sh.gz
${GUNZIP_CMD} ${WRKSRC}/examples/colorize-tail.sh.gz
${INSTALL_SCRIPT} ${WRKSRC}/examples/colorize-fifo.sh \
${PREFIX}/share/examples/colorize
${INSTALL_SCRIPT} ${WRKSRC}/examples/colorize-tail.sh \
${PREFIX}/share/examples/colorize
${INSTALL_DATA} ${WRKSRC}/examples/Xlog.tar.gz ${PREFIX}/share/examples/colorize
.include "../../mk/bsd.pkg.mk"