1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/textproc/kenlm/Makefile
Dmitry Marakasov 4ade9c1615 - Fix build on 9.x:
/usr/lib/crt1.o: In function `_start':
crt1.c:(.text+0x9d): undefined reference to `main'

Approved by:	portmgr blanket
Reported by:	pkg-fallout
2015-06-23 17:27:12 +00:00

29 lines
857 B
Makefile

# Created by: Dmitry Sivachenko <demon@FreeBSD.org>
# $FreeBSD$
PORTNAME= kenlm
PORTVERSION= 20140830
CATEGORIES= textproc
MASTER_SITES= http://kheafield.com/code/
DISTNAME= ${PORTNAME}
MAINTAINER= demon@FreeBSD.org
COMMENT= KenLM Language Model Toolkit
BUILD_DEPENDS= bjam:${PORTSDIR}/devel/boost-jam \
bash:${PORTSDIR}/shells/bash
LIB_DEPENDS= libboost_thread.so:${PORTSDIR}/devel/boost-libs
USES+= compiler:c++11-lib
USE_LDCONFIG= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
MAKE_ENV+= BOOST_BUILD_PATH=${WRKSRC}/jam-files/boost-build
do-build:
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/bjam --toolset=${CHOSEN_COMPILER_TYPE} --with-boost=${LOCALBASE} ${_MAKE_JOBS})
do-install:
(cd ${WRKSRC}/bin && ${INSTALL_PROGRAM} lmplz fragment query filter build_binary dump_counts cat_compressed ${STAGEDIR}${PREFIX}/bin/)
.include <bsd.port.mk>