opnsense-ports/math/mosesdecoder/Makefile
Franco Fichtner d543c3ab93 */*: sync with upstream
Taken from: FreeBSD
2016-04-02 16:03:17 +02:00

44 lines
1.6 KiB
Makefile

# Created by: Dmitry Sivachenko <demon@FreeBSD.org>
# $FreeBSD$
PORTNAME= mosesdecoder
PORTVERSION= 2.1.1
PORTREVISION= 1
DISTVERSIONPREFIX= RELEASE-
CATEGORIES= math
MAINTAINER= demon@FreeBSD.org
COMMENT= A statistical machine translation system
BUILD_DEPENDS= bash:shells/bash \
bjam:devel/boost-jam
LIB_DEPENDS= libboost_thread.so:devel/boost-libs \
libRandLM.so:textproc/randlm \
libirstlm.so:textproc/irstlm
RUN_DEPENDS= lmplz:textproc/kenlm
BROKEN_FreeBSD_9= does not link
USE_GITHUB= yes
GH_ACCOUNT= moses-smt
USES= compiler:c++11-lang shebangfix
SHEBANG_FILES= scripts/analysis/weight-scan-summarize.sh \
scripts/training/wrappers/adam-suffix-array/suffix-array-extract.sh \
scripts/training/wrappers/adam-suffix-array/suffix-array-create.sh
MAKE_ENV+= BOOST_BUILD_PATH=${WRKSRC}/jam-files/boost-build
post-patch:
@${FIND} ${WRKSRC}/scripts \( -name "*.pl" -o -name "*.perl" -o -name "*.cgi" \) -exec \
${REINPLACE_CMD} -i '' -e '1s|/usr/bin/perl|${perl_CMD}|' {} \;
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>