summaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authorsf <sf@FreeBSD.org>2004-11-22 00:02:56 +0000
committersf <sf@FreeBSD.org>2004-11-22 00:02:56 +0000
commit447ecf8b5b7f2dfc75444315ac45eb1c184013df (patch)
tree8e329abd7296b961e14b02ec967e1266a9250b61 /japanese
parentf561d75f314b80701802b002e032f92234ecd616 (diff)
downloadFreeBSD-ports-447ecf8b5b7f2dfc75444315ac45eb1c184013df.zip
FreeBSD-ports-447ecf8b5b7f2dfc75444315ac45eb1c184013df.tar.gz
respect CFLAGS/PTHREAD_CFLAGS/PTHREAD_LIBS.
(maintainer timeout for 2 weeks)
Diffstat (limited to 'japanese')
-rw-r--r--japanese/mecab/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/japanese/mecab/Makefile b/japanese/mecab/Makefile
index 35b378b..614201e 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>
OpenPOWER on IntegriCloud