summaryrefslogtreecommitdiff
path: root/textproc/cabocha/Makefile
blob: f666611cf82bb452e3f3fec0ff561abd99a1c62b (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
# $NetBSD: Makefile,v 1.3 2012/10/25 06:55:43 asau Exp $
#

.include "Makefile.common"

COMMENT=	Yet another Japanese Dependency Structure Analyzer
PKGREVISION=	1

GNU_CONFIGURE=	yes
USE_LIBTOOL=	yes
USE_LANGUAGES=	c c++
USE_TOOLS+=	gmake perl:run gzcat

CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+=	--with-perl=${PERL5:Q}

INSTALL_MAKE_FLAGS+=	confdir=${PREFIX}/share/examples

CONF_FILES=	share/examples/cabocharc ${PKG_SYSCONFDIR}/cabocharc

TEST_TARGET=	check

BUILD_DEPENDS+=	nkf-[0-9]*:../../converters/nkf

# using zcat to extract .gz
SUBST_CLASSES+=		zcat
SUBST_STAGE.zcat=	post-configure
SUBST_FILES.zcat=	model/Makefile
SUBST_SED.zcat=		-e 's|zcat|${TOOLS_CMDLINE_GZCAT}|g'

.include "options.mk"

.include "../../textproc/yamcha/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"