freebsd-ports/japanese/p5-Text-MeCab/Makefile
Cheng-Lung Sung 2dd04003e8 - Update to 0.17
PR:		ports/112285
Submitted by:	clsung
Approved by:	maintainer (TAOKA Fumiyoshi)
2007-05-01 10:04:18 +00:00

44 lines
1.1 KiB
Makefile

# New ports collection makefile for: p5-TexT-MeCab
# Date created: 30 July 2006
# Whom: TAOKA Fumiyoshi <fmysh@iijmio-mail.jp>
#
# $FreeBSD$
#
PORTNAME= Text-MeCab
PORTVERSION= 0.17
CATEGORIES= japanese textproc perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Text
MAINTAINER= fmysh@iijmio-mail.jp
COMMENT= Alternate Interface To libmecab
LIB_DEPENDS= mecab.1:${PORTSDIR}/japanese/mecab
MAN3= Text::MeCab.3 \
Text::MeCab::Node.3
PERL_CONFIGURE= yes
CONFIGURE_ARGS= </dev/null
# dictionary encoding (euc-jp, shift_jis, utf8)
ENCODING?= euc-jp
post-patch:
# To prevent CCFLAGS value from being overwritten by the ports system
@${REINPLACE_CMD} -e 's|CCFLAGS|DEFINE|g' ${WRKSRC}/Makefile.PL
.if ${ENCODING} == "shift_jis"
@${REINPLACE_CMD} -e '/my \$$encoding = /s/euc-jp/shift_jis/' \
${WRKSRC}/tools/probe_mecab.pl
.elif ${ENCODING} == "utf8"
@${REINPLACE_CMD} -e '/my \$$encoding = /s/euc-jp/utf8/' \
${WRKSRC}/tools/probe_mecab.pl
.endif
.include <bsd.port.pre.mk>
PKGNAMEPREFIX:= ${PKGNAMEPREFIX}p5-
.include <bsd.port.post.mk>