blob: ffdd5f9267d7056e37b6b3cec491ec82969ced19 (
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
|
PORTNAME= leela-zero
DISTVERSIONPREFIX= v
DISTVERSION= 0.17-30
PORTREVISION= 4
DISTVERSIONSUFFIX= -ge3ed631
CATEGORIES= games
MAINTAINER= yuri@FreeBSD.org
COMMENT= Go engine without human-provided knowledge based on AlphaGo Zero paper
WWW= https://github.com/leela-zero/leela-zero
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= opencl>0:devel/opencl
LIB_DEPENDS= libboost_filesystem.so:devel/boost-libs \
libopenblas.so:math/openblas \
libOpenCL.so:devel/ocl-icd
USES= cmake compiler:c++14-lang eigen:3 localbase qt:5
USE_GITHUB= yes
GH_TUPLE= google:googletest:cafa9e5:gtest/gtest
USE_QT= core widgets buildtools:build qmake:build
CMAKE_ON= USE_BLAS BUILD_TESTING
CMAKE_ARGS= -DBLAS_INCLUDE_DIRS:STRING=${LOCALBASE}/include
PLIST_FILES= bin/autogtp \
bin/leelaz \
bin/validation
do-test:
@cd ${WRKSRC} && ${MKDIR} .build && ${CP} ../.build/tests .build && cd .build && ./tests
download-weights:
@${FETCH_CMD} https://zero.sjeng.org/best-network -o ~/.local/share/leela-zero/
.include <bsd.port.mk>
|