aboutsummaryrefslogtreecommitdiff
path: root/japanese/p5-Text-MeCab/Makefile
blob: b187351dbf4f92d98fe5f8c00ac059ec50bfc7fc (plain) (blame)
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
PORTNAME=	Text-MeCab
PORTVERSION=	0.20009
PORTREVISION=	3
CATEGORIES=	japanese textproc perl5
MASTER_SITES=	CPAN

MAINTAINER=	fmysh@iijmio-mail.jp
COMMENT=	Alternate Interface To libmecab
WWW=		https://metacpan.org/release/Text-MeCab

LICENSE=	ART10 GPLv1+
LICENSE_COMB=	dual

RUN_DEPENDS=	p5-Class-Accessor>0:devel/p5-Class-Accessor
LIB_DEPENDS=	libmecab.so:japanese/mecab
TEST_DEPENDS=	p5-Test-Requires>0:devel/p5-Test-Requires

MAKE_JOBS_UNSAFE=	yes

USES=		perl5
USE_PERL5=	configure
CONFIGURE_ARGS=	</dev/null

# dictionary encoding (euc-jp, shift_jis, utf-8)
ENCODING?=	euc-jp

post-patch:
	@${REINPLACE_CMD} -e "/default_encoding = /s/euc-jp/${ENCODING}/" \
		${WRKSRC}/tools/probe_mecab.pl

post-configure:
	@${REINPLACE_CMD} -e "/^LD = /s/cc/cc -pthread/" \
		${WRKSRC}/Makefile

.include <bsd.port.pre.mk>

PKGNAMEPREFIX:=	${PKGNAMEPREFIX}p5-

.include <bsd.port.post.mk>