2014-08-30 22:42:53 +02:00
|
|
|
# Created by: Dmitry Sivachenko <demon@FreeBSD.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= kenlm
|
|
|
|
PORTVERSION= 20140830
|
2017-09-25 02:08:16 +02:00
|
|
|
PORTREVISION= 7
|
2014-08-30 22:42:53 +02:00
|
|
|
CATEGORIES= textproc
|
|
|
|
MASTER_SITES= http://kheafield.com/code/
|
|
|
|
DISTNAME= ${PORTNAME}
|
|
|
|
|
|
|
|
MAINTAINER= demon@FreeBSD.org
|
|
|
|
COMMENT= KenLM Language Model Toolkit
|
|
|
|
|
2016-04-01 16:25:16 +02:00
|
|
|
BUILD_DEPENDS= bjam:devel/boost-jam \
|
|
|
|
bash:shells/bash
|
|
|
|
LIB_DEPENDS= libboost_thread.so:devel/boost-libs
|
2014-08-30 22:42:53 +02:00
|
|
|
|
2015-06-23 19:27:12 +02:00
|
|
|
USES+= compiler:c++11-lib
|
2014-08-30 22:42:53 +02:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
MAKE_ENV+= BOOST_BUILD_PATH=${WRKSRC}/jam-files/boost-build
|
|
|
|
|
2017-04-30 06:35:10 +02:00
|
|
|
BROKEN_aarch64= fails to compile: target architecture was not detected as supported by Double-Conversion
|
|
|
|
BROKEN_powerpc64= fails to compile: error: in QuantTrieAll: difference{inf} between static_cast<double> and static_cast<double> exceeds 0.001%
|
2017-01-31 04:40:46 +01:00
|
|
|
|
2014-08-30 22:42:53 +02:00
|
|
|
do-build:
|
2014-08-31 17:25:07 +02:00
|
|
|
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/bjam --toolset=${CHOSEN_COMPILER_TYPE} --with-boost=${LOCALBASE} ${_MAKE_JOBS})
|
2014-08-30 22:42:53 +02:00
|
|
|
|
|
|
|
do-install:
|
2014-08-31 17:25:07 +02:00
|
|
|
(cd ${WRKSRC}/bin && ${INSTALL_PROGRAM} lmplz fragment query filter build_binary dump_counts cat_compressed ${STAGEDIR}${PREFIX}/bin/)
|
2014-08-30 22:42:53 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|