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
8 MASTER_SITES
= http
://colorize.raszi.hu
/downloads
/
11 MAINTAINER
= pkgsrc-users@NetBSD.org
12 HOMEPAGE
= # http://colorize.raszi.hu/
13 COMMENT
= Log colorize perl script
15 WRKSRC
= ${WRKDIR}/${PKGNAME_NOREV}
18 USE_TOOLS
+= gunzip perl
:run
19 INSTALLATION_DIRS
= bin
${PKGMANDIR}/man1
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
}","
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
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"