freebsd-ports/japanese/p5-Text-MeCab/Makefile
Mathieu Arnold a9dcad2fff Remove ${PORTSDIR}/ from dependencies, categories h, i, j, k, and l.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:08:37 +00:00

43 lines
1.1 KiB
Makefile

# Created by: TAOKA Fumiyoshi <fmysh@iijmio-mail.jp>
# $FreeBSD$
PORTNAME= Text-MeCab
PORTVERSION= 0.20009
PORTREVISION= 1
CATEGORIES= japanese textproc perl5
MASTER_SITES= CPAN
MAINTAINER= fmysh@iijmio-mail.jp
COMMENT= Alternate Interface To libmecab
BUILD_DEPENDS= p5-Devel-PPPort>=3.19:devel/p5-Devel-PPPort \
p5-ExtUtils-ParseXS>=2.21:devel/p5-ExtUtils-ParseXS \
p5-Test-Simple>=0.84:devel/p5-Test-Simple \
p5-Test-Requires>0:devel/p5-Test-Requires
RUN_DEPENDS= p5-Class-Accessor>0:devel/p5-Class-Accessor \
p5-Encode>0:converters/p5-Encode\
p5-XSLoader>0.1:devel/p5-XSLoader
LIB_DEPENDS= libmecab.so:japanese/mecab
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>