svn commit: r364452 - head/japanese/mecab
Tijl Coosemans
tijl at FreeBSD.org
Sat Aug 9 16:01:10 UTC 2014
Author: tijl
Date: Sat Aug 9 16:01:09 2014
New Revision: 364452
URL: http://svnweb.freebsd.org/changeset/ports/364452
QAT: https://qat.redports.org/buildarchive/r364452/
Log:
- Replace libtool BUILD_DEPENDS with USE_AUTOTOOLS=libtoolize
- Replace STRIP_CMD with INSTALL_TARGET=install-strip
- Remove PTHREAD_CFLAGS and PTHREAD_LIBS
- Add --copy --force to AUTOMAKE_ARGS so all existing scripts are updated
Modified:
head/japanese/mecab/Makefile
Modified: head/japanese/mecab/Makefile
==============================================================================
--- head/japanese/mecab/Makefile Sat Aug 9 15:54:11 2014 (r364451)
+++ head/japanese/mecab/Makefile Sat Aug 9 16:01:09 2014 (r364452)
@@ -13,26 +13,24 @@ COMMENT= Yet Another Part-of-Speech and
LICENSE= BSD3CLAUSE GPLv2 LGPL21
LICENSE_COMB= multi
-BUILD_DEPENDS= ${LOCALBASE}/share/aclocal/libtool.m4:${PORTSDIR}/devel/libtool
-USE_AUTOTOOLS= autoconf autoheader automake aclocal
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= ac_cv_lib_stdcpp_main=no
+INSTALL_TARGET= install-strip
USES= iconv gettext:build libtool perl5
+USE_AUTOTOOLS= autoconf autoheader automake aclocal libtoolize
+AUTOMAKE_ARGS= --add-missing --copy --force
USE_PERL5= build
-GNU_CONFIGURE= yes
USE_LDCONFIG= yes
-CONFIGURE_ENV+= ac_cv_lib_stdcpp_main=no
-
-CPPFLAGS+= ${PTHREAD_CFLAGS} -I ${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
-AUTOMAKE_ARGS= --add-missing
+CPPFLAGS+= -I${LOCALBASE}/include
+LIBS+= -L${LOCALBASE}/lib
PORTDOCS= AUTHORS README *.html
OPTIONS_DEFINE= DOCS
post-patch:
- ${REINPLACE_CMD} -e 's/-lpthread/${PTHREAD_LIBS}/g' \
- -e 's/-O3/${CFLAGS}/' ${WRKSRC}/${CONFIGURE_SCRIPT}.in
+ ${REINPLACE_CMD} -e 's/-O3/${CFLAGS}/' ${WRKSRC}/${CONFIGURE_SCRIPT}.in
${REINPLACE_CMD} -e 's/conf_DATA = mecabrc/conf_DATA = mecabrc.dist/' ${WRKSRC}/Makefile.am
post-configure:
@@ -45,6 +43,5 @@ post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:N*.html:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${STAGEDIR}${DOCSDIR}
- ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmecab.so
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list