/
Portfile
64 lines (53 loc) · 2.3 KB
/
Portfile
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup cmake 1.1
PortGroup compiler_blacklist_versions 1.0
PortGroup github 1.0
github.setup microsoft LightGBM 4.3.0 v
revision 0
categories math
license MIT
maintainers {@barracuda156 gmail.com:vital.had} openmaintainer
description Fast, distributed, high performance gradient boosting \
(GBT, GBDT, GBRT, GBM or MART) framework
long_description {*}${description}, based on decision tree algorithms, \
used for ranking, classification and many other \
machine learning tasks.
homepage https://lightgbm.readthedocs.io
checksums rmd160 6e713e9b99a624d35ea063219afcf2c638af1a0a \
sha256 9e5a88bc231addfe4a0e57aa5ceb157f045103cd69ad8c2f393ef941ef52a9ac \
size 7070807
github.tarball_from archive
patchfiles-append 0001-Fix-CMakeLists.txt.patch \
0002-common.h-fix-includes.patch
set libfmt_ver 10
cmake.module_path-append \
${prefix}/lib/libfmt${libfmt_ver}/cmake
depends_lib-append path:share/pkgconfig/eigen3.pc:eigen3 \
port:fast_double_parser \
port:libfmt${libfmt_ver}
compiler.cxx_standard 2014
compiler.blacklist-append \
{clang < 900} {*gcc-[34].*}
configure.args-append \
-DBUILD_CLI=ON \
-DBUILD_CPP_TEST=OFF \
-DBUILD_STATIC_LIB=OFF \
-DEIGEN_DIR=${prefix}/include/eigen3 \
-DINSTALL_HEADERS=ON \
-DLIBFMT_DIR=${prefix}/include/libfmt${libfmt_ver} \
-DUSE_CUDA=OFF \
-DUSE_GPU=OFF \
-DUSE_HDFS=OFF \
-DUSE_MPI=OFF \
-DUSE_OPENMP=ON \
-DUSE_SANITIZER=OFF
platform darwin {
configure.args-append \
-DAPPLE_OUTPUT_DYLIB=ON
}
compiler.openmp_version 3.0
if {[string match *clang* ${configure.compiler}]} {
configure.ldflags-append \
-L${prefix}/lib/libomp -lomp
}