summaryrefslogtreecommitdiff
path: root/math/crfsuite/Makefile
blob: 1953f2e709505d2d2ebf28ae2d94d1c62db95d8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# $NetBSD: Makefile,v 1.3 2015/03/31 15:49:15 joerg Exp $

DISTNAME=	0.12
PKGNAME=	crfsuite-${DISTNAME}
PKGREVISION=	1
CATEGORIES=	math
MASTER_SITES=	https://github.com/chokkan/crfsuite/archive/
DIST_SUBDIR=	crfsuite

MAINTAINER=	cheusov@NetBSD.org
HOMEPAGE=	https://github.com/chokkan/crfsuite
COMMENT=	Fast implementation of Conditional Random Fields (CRFs)
LICENSE=	modified-bsd

WRKSRC=		${WRKDIR}/crfsuite-0.12
USE_LANGUAGES=	c c++

USE_LIBTOOL=	yes
GNU_CONFIGURE=	yes
AUTO_MKDIRS=	yes

AUTOCONF_REQD=	2.50
USE_TOOLS+=	autoconf autoreconf automake

CONFIGURE_ARGS+=	--with-liblbfgs=${PREFIX}

REPLACE_PYTHON=		example/*.py

.include "../../mk/bsd.prefs.mk"

.if ${MACHINE_ARCH} != "i386" && ${MACHINE_ARCH} != "x86_64"
CONFIGURE_ARGS+=	--disable-sse2
.endif

pre-configure:
	set -e; cd ${WRKSRC}; autoreconf -sif

post-install:
	set -e; cd ${WRKSRC}; \
	${INSTALL_SCRIPT} example/*.py ${DESTDIR}${PREFIX}/share/examples/crfsuite

.include "../../lang/python/application.mk"
.include "../../math/liblbfgs/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"