Import highlight-2.6.8, a tool that converts source code to formatted text
[pkgsrc.git] / textproc / highlight / Makefile
1 #       $NetBSD$
2 #
3
4 DISTNAME=               highlight-2.6.8
5 CATEGORIES=             textproc
6 MASTER_SITES=           http://www.andre-simon.de/zip/
7 EXTRACT_SUFX=           .tar.bz2
8
9 MAINTAINER=             pkgsrc-users@NetBSD.org
10 HOMEPAGE=               http://www.andre-simon.de/
11 COMMENT=                Converts source code to formatted text with syntax highlighting
12
13 USE_TOOLS+=             gmake
14 USE_LANGUAGES=          c++
15 MANCOMPRESSED=          yes
16
17 MAKE_FILE=              makefile
18
19 PKG_SYSCONFSUBDIR=      highlight
20
21 EGDIR=                  ${PREFIX}/share/examples/highlight
22 CONF_FILES=             ${EGDIR}/filetypes.conf                 \
23                         ${PKG_SYSCONFDIR}/filetypes.conf
24
25 SUBST_CLASSES+=         etc
26 SUBST_MESSAGE.etc=      Fixing hardcoded paths.
27 SUBST_STAGE.etc=        post-patch
28 SUBST_FILES.etc=        src/datadir.cpp
29 SUBST_SED.etc=          -e 's,/etc/highlight,${PKG_SYSCONFDIR},g'
30
31 .include "../../devel/libgetopt/buildlink3.mk"
32 .include "../../mk/bsd.pkg.mk"