# Created by: Dmitry Sivachenko <mitya@yandex-team.ru>
# $FreeBSD: tags/RELEASE_10_3_0/textproc/opengrm-ngram/Makefile 371272 2014-10-20 14:37:46Z demon $

PORTNAME=	opengrm-ngram
PORTVERSION=	1.2.1
CATEGORIES=	textproc
MASTER_SITES=	http://openfst.cs.nyu.edu/twiki/pub/GRM/NGramDownload/

MAINTAINER=	demon@FreeBSD.org
COMMENT=	Library for making n-gram language models encoded as weighted FSTs

LICENSE=	APACHE20

LIB_DEPENDS=	libfst.so:${PORTSDIR}/math/openfst

USES=		compiler:c++11-lib libtool
USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

.include <bsd.port.mk>
