diff options
Diffstat (limited to 'japanese/mecab')
-rw-r--r-- | japanese/mecab/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/japanese/mecab/Makefile b/japanese/mecab/Makefile index 35b378b6aa4b..614201e811ac 100644 --- a/japanese/mecab/Makefile +++ b/japanese/mecab/Makefile @@ -20,10 +20,13 @@ COMMENT= Yet Another Part-of-Speech and Morphological Analyzer IPADIC_DISTNAME= ipadic-2.5.1 USE_PERL5_BUILD= yes +USE_REINPLACE= yes USE_LIBTOOL_VER=13 INSTALLS_SHLIB= yes +CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS}" + .include "${.CURDIR}/Makefile.common" MAN1= mecab.1 @@ -53,4 +56,8 @@ post-install: .endfor .endif +post-patch: + ${REINPLACE_CMD} -e 's/-lpthread/${PTHREAD_LIBS}/g' \ + -e 's/-O3/${CFLAGS}/' ${WRKSRC}/${CONFIGURE_SCRIPT} + .include <bsd.port.post.mk> |