diff options
author | Cheng-Lung Sung <clsung@FreeBSD.org> | 2006-07-31 02:52:49 +0000 |
---|---|---|
committer | Cheng-Lung Sung <clsung@FreeBSD.org> | 2006-07-31 02:52:49 +0000 |
commit | 0b45a24e3d58bfbfd7b1e6bbd4cc23ed85d9dccf (patch) | |
tree | 506d98b7fb432e064c910a55122dfaea113ffa9f /japanese/mecab/Makefile | |
parent | 1c105b25021dff65ae4bf96f5a942f91855ff7a6 (diff) |
Notes
Diffstat (limited to 'japanese/mecab/Makefile')
-rw-r--r-- | japanese/mecab/Makefile | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/japanese/mecab/Makefile b/japanese/mecab/Makefile index 8e393444cfca..0e1ad135fa16 100644 --- a/japanese/mecab/Makefile +++ b/japanese/mecab/Makefile @@ -6,7 +6,7 @@ # PORTNAME= mecab -PORTVERSION= 0.92 +PORTVERSION= 0.93 CATEGORIES= japanese textproc MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP} MASTER_SITE_SUBDIR= ${PORTNAME}/${SUB_DIR} @@ -15,7 +15,7 @@ DISTNAME= ${PORTNAME}-${PORTVERSION} MAINTAINER= clsung@FreeBSD.org COMMENT= Yet Another Part-of-Speech and Morphological Analyzer -SUB_DIR= 20917 +SUB_DIR= 21187 USE_PERL5_BUILD= yes GNU_CONFIGURE= yes @@ -23,6 +23,11 @@ INSTALLS_SHLIB= yes CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS}" +# Default charset (euc/sjis/utf8) +.if defined(WITH_CHARSET) +CONFIGURE_ARGS= --with-charset=${WITH_CHARSET} +.endif + MAN1= mecab.1 DOCS= AUTHORS README doc/*.html @@ -33,7 +38,18 @@ DOCS= AUTHORS README doc/*.html IGNORE= requires perl 5.8.x or later. Install lang/perl5.8 and try again .endif +post-patch: + ${REINPLACE_CMD} -e 's/-lpthread/${PTHREAD_LIBS}/g' \ + -e 's/-O3/${CFLAGS}/' ${WRKSRC}/${CONFIGURE_SCRIPT} + ${REINPLACE_CMD} -e 's/conf_DATA = mecabrc/conf_DATA = mecabrc.dist/' ${WRKSRC}/Makefile.in + +post-configure: + ${CP} ${WRKSRC}/mecabrc ${WRKSRC}/mecabrc.dist + post-install: + @if [ ! -f ${PREFIX}/etc/mecabrc ]; then \ + ${INSTALL_DATA} ${PREFIX}/etc/mecabrc.dist ${PREFIX}/etc/mecabrc; \ + fi .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} .for f in ${DOCS} @@ -42,8 +58,4 @@ post-install: .endif @${CAT} ${PKGMESSAGE} -post-patch: - ${REINPLACE_CMD} -e 's/-lpthread/${PTHREAD_LIBS}/g' \ - -e 's/-O3/${CFLAGS}/' ${WRKSRC}/${CONFIGURE_SCRIPT} - .include <bsd.port.post.mk> |