Gerald Pfeifer a9f015d155 Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.

PR:		231590
2018-12-12 01:35:33 +00:00

46 lines
1.6 KiB
Makefile

# Created by: Dmitry Sivachenko <demon@FreeBSD.org>
# $FreeBSD$
PORTNAME= mosesdecoder
PORTVERSION= 2.1.1
DISTVERSIONPREFIX= RELEASE-
PORTREVISION= 15
CATEGORIES= math
MAINTAINER= demon@FreeBSD.org
COMMENT= Statistical machine translation system
BROKEN= fails to build
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
USES= compiler:c++11-lang python shebangfix
USE_GITHUB= yes
GH_ACCOUNT= moses-smt
SHEBANG_REGEX= ./scripts/.*\.(sh|pl|perl|cgi)
SHEBANG_FILES= scripts/analysis/extract-target-trees.py \
scripts/ems/support/mml-filter.py \
scripts/training/flexibility_score.py \
scripts/training/filter-rule-table.py \
scripts/training/create_count_tables.py
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
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
.include <bsd.port.mk>