Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / misc / colorize / Makefile
blobc69ea5e2e71e141b66acb94d9d3594f1393d4dc1
1 # $NetBSD: Makefile,v 1.19 2012/10/03 21:56:42 wiz Exp $
4 DISTNAME= colorize_0.3.0
5 PKGNAME= colorize-0.3.0
6 PKGREVISION= 2
7 CATEGORIES= misc
8 MASTER_SITES= http://colorize.raszi.hu/downloads/
9 EXTRACT_SUFX= .tar.bz2
11 MAINTAINER= pkgsrc-users@NetBSD.org
12 HOMEPAGE= # http://colorize.raszi.hu/
13 COMMENT= Log colorize perl script
15 WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
16 NO_BUILD= yes
18 USE_TOOLS+= gunzip perl:run
19 INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
21 SUBST_CLASSES+= color
22 SUBST_STAGE.color= pre-configure
23 SUBST_MESSAGE.color= Fixing hard-coded paths.
24 SUBST_FILES.color= colorize.pl examples/*.sh
25 SUBST_SED.color+= -e "s,/usr/bin/perl,${LOCALBASE}/bin/perl,"
26 SUBST_SED.color+= -e "s,/etc/colorizerc,${PKG_SYSCONFDIR}/colorizerc,"
27 SUBST_SED.color+= -e "s,/bin/bash,"${SH:Q}","
29 post-extract:
30 ${GUNZIP_CMD} ${WRKSRC}/colorize.pl.1.gz
31 ${GUNZIP_CMD} ${WRKSRC}/examples/colorize-fifo.sh.gz
32 ${GUNZIP_CMD} ${WRKSRC}/examples/colorize-tail.sh.gz
34 do-install:
35 ${INSTALL_SCRIPT} ${WRKSRC}/colorize.pl ${DESTDIR}${PREFIX}/bin/colorize
36 ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/colorize
37 ${INSTALL_DATA} ${WRKSRC}/colorizerc \
38 ${DESTDIR}${PREFIX}/share/examples/colorize
39 ${INSTALL_MAN} ${WRKSRC}/colorize.pl.1 \
40 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/colorize.1
41 ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/colorize
42 cd ${WRKSRC} && ${INSTALL_DATA} README TIPS \
43 ${DESTDIR}${PREFIX}/share/doc/colorize
44 ${INSTALL_SCRIPT} ${WRKSRC}/examples/colorize-fifo.sh \
45 ${DESTDIR}${PREFIX}/share/examples/colorize
46 ${INSTALL_SCRIPT} ${WRKSRC}/examples/colorize-tail.sh \
47 ${DESTDIR}${PREFIX}/share/examples/colorize
48 ${INSTALL_DATA} ${WRKSRC}/examples/Xlog.tar.gz \
49 ${DESTDIR}${PREFIX}/share/examples/colorize
51 .include "../../mk/bsd.pkg.mk"