summaryrefslogtreecommitdiff
path: root/textproc/source-highlight/Makefile
blob: 45551706a2e40b0d956de691df7d0827b6f8bd68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# $NetBSD: Makefile,v 1.62 2020/04/18 23:28:42 joerg Exp $

DISTNAME=	source-highlight-3.1.8
PKGREVISION=	11
CATEGORIES=	textproc
MASTER_SITES=	${MASTER_SITE_GNU:=src-highlite/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://www.gnu.org/software/src-highlite/
COMMENT=	Highlight syntax of various languages source into HTML document
LICENSE=	gnu-gpl-v3

DEPENDS+=	exctags-[0-9]*:../../devel/exctags

USE_LANGUAGES=		c c++
USE_LIBTOOL=		yes
GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--with-boost-regex=boost_regex
CONFIGURE_ARGS+=	--without-bash-completion
CONFIGURE_ENV+=		CTAGS=${PREFIX}/bin/exctags
CONFIGURE_ENV+=		ac_cv_header_stdbool_h=yes
CONFIGURE_ENV+=		ac_cv_ctags_flags=yes

PKGCONFIG_OVERRIDE=	source-highlight.pc.in

INFO_FILES=	YES

# gmake and gsed are necessary for testing only,
# but the tools handling is somewhat broken in that regard
USE_TOOLS+=	gsed gmake bash:test
TEST_TARGET=	check

# bash scripts
CHECK_PORTABILITY_SKIP+= \
	lib/tests/valgrind_test.sh.in \
	tests/valgrind_suppressions.sh.in \
	tests/valgrind_test.sh.in \
	tests/valgrind_tests.sh.in

.include "../../devel/boost-libs/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"