diff options
Diffstat (limited to 'math/mosesdecoder/Makefile')
-rw-r--r-- | math/mosesdecoder/Makefile | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/math/mosesdecoder/Makefile b/math/mosesdecoder/Makefile new file mode 100644 index 000000000000..c52420bd6058 --- /dev/null +++ b/math/mosesdecoder/Makefile @@ -0,0 +1,34 @@ +# Created by: Dmitry Sivachenko <demon@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= mosesdecoder +PORTVERSION= 2.1.1 +CATEGORIES= math + +MAINTAINER= demon@FreeBSD.org +COMMENT= A statistical machine translation system + +BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash +LIB_DEPENDS= libboost_thread.so:${PORTSDIR}/devel/boost-libs \ + libRandLM.so:${PORTSDIR}/textproc/randlm \ + libirstlm.so:${PORTSDIR}/textproc/irstlm +RUN_DEPENDS= lmplz:${PORTSDIR}/textproc/kenlm + +USE_GITHUB= yes +GH_ACCOUNT= moses-smt +GH_TAGNAME= RELEASE-2.1.1 +GH_COMMIT= 4ea250e + +USES= compiler:c++11-lang + +MAKE_ENV+= BOOST_BUILD_PATH=${WRKSRC}/jam-files/boost-build + +do-build: + cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} bjam --with-boost=${LOCALBASE} --with-irstlm=${LOCALBASE} --with-randlm=${LOCALBASE} --without-tcmalloc --notrace --toolset=${CHOSEN_COMPILER_TYPE} debug-symbols=off ${_MAKE_JOBS} + +do-install: + ${MKDIR} ${STAGEDIR}${DATADIR} + cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} bjam --with-boost=${LOCALBASE} --with-irstlm=${LOCALBASE} --with-randlm=${LOCALBASE} --without-tcmalloc --notrace --prefix=${STAGEDIR}${PREFIX} --install-scripts=${STAGEDIR}${DATADIR} --toolset=${CHOSEN_COMPILER_TYPE} debug-symbols=off ${_MAKE_JOBS} release + cd ${STAGEDIR}${PREFIX}/bin && ${RM} build_binary filter fragment lmplz query + +.include <bsd.port.mk> |