aboutsummaryrefslogtreecommitdiffstats
path: root/misc/lightgbm/Makefile
blob: 25326408006dfeb76ed9751f87fbceb1073edefa (plain) (blame)
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
PORTNAME=	lightgbm
DISTVERSIONPREFIX=	v
DISTVERSION=	4.5.0
CATEGORIES=	misc # machine-learning

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Gradient boosting framework that uses tree based learning algorithms
WWW=		https://lightgbm.readthedocs.io/en/latest/

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

TEST_DEPENDS=	googletest>0:devel/googletest

USES=		cmake:testing compiler:c++11-lang eigen:3

USE_GITHUB=	yes
GH_ACCOUNT=	microsoft
GH_PROJECT=	LightGBM
GH_TUPLE=	boostorg:compute:36350b7:boostorg_compute/external_libs/compute \
		fmtlib:fmt:f5e5435:fmt/external_libs/fmt \
		lemire:fast_double_parser:efec035:fast_double_parser/external_libs/fast_double_parser

CMAKE_TESTING_ON=	BUILD_CPP_TEST
CMAKE_TESTING_TARGET=

CXXFLAGS+=	-I${LOCALBASE}/include/eigen3

.if !exists(/usr/include/omp.h)
CMAKE_ARGS+=	-DUSE_OPENMP:BOOL=OFF
.endif

post-test:
	@${WRKSRC}/testlightgbm

# tests fail to open the file examples/binary_classification/binary.test, see https://github.com/microsoft/LightGBM/issues/6486

.include <bsd.port.mk>