2021-08-10 09:44:06 +00:00
|
|
|
# Template file for 'lc0'
|
|
|
|
pkgname=lc0
|
|
|
|
version=0.28.0
|
|
|
|
revision=1
|
2021-11-23 19:24:24 +00:00
|
|
|
archs="x86_64* i686* aarch64* armv[67]l* ppc64le*"
|
2021-08-10 09:44:06 +00:00
|
|
|
build_style=meson
|
|
|
|
configure_args="-Dgtest=false"
|
|
|
|
_lczero_commit=5680c5fad9f3b52288d67f738b272fd09de5ee0b
|
|
|
|
hostmakedepends="pkg-config"
|
|
|
|
makedepends="protobuf-devel zlib-devel eigen $(vopt_if openblas openblas-devel)
|
|
|
|
$(vopt_if opencl ocl-icd-devel)"
|
|
|
|
short_desc="UCI chess engine designed to play via neural network"
|
|
|
|
maintainer="shtayerc <david.murko@mailbox.org>"
|
|
|
|
license="GPL-3.0-only"
|
|
|
|
homepage="https://lczero.org"
|
|
|
|
distfiles="https://github.com/LeelaChessZero/lc0/archive/v${version}.tar.gz
|
|
|
|
https://github.com/LeelaChessZero/lczero-common/archive/${_lczero_commit}.tar.gz"
|
|
|
|
checksum="81f857a4c2e45ac161d499957f9fe5060479242f527dacff548d52cd0c573caa
|
|
|
|
def7b572df6c3e8f5307afa8abb242d51c0e8d200b12dd56466fff11b9bc4cf8"
|
|
|
|
|
|
|
|
build_options="openblas opencl"
|
|
|
|
build_options_default="openblas"
|
|
|
|
vopt_conflict openblas opencl
|
|
|
|
|
|
|
|
if [ "$CROSS_BUILD" ] && [ "$build_option_openblas" ]; then
|
|
|
|
configure_args+=" -Dopenblas_include=${XBPS_CROSS_BASE}/usr/include/openblas/"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
|
|
makedepends+=" libatomic-devel"
|
|
|
|
fi
|
|
|
|
|
2021-11-23 19:24:24 +00:00
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
ppc*) export CXXFLAGS+=" -DNO_WARN_X86_INTRINSICS";;
|
|
|
|
esac
|
|
|
|
|
2021-08-10 09:44:06 +00:00
|
|
|
post_extract() {
|
|
|
|
rmdir libs/lczero-common
|
|
|
|
mv ../lczero-common-${_lczero_commit} libs/lczero-common
|
|
|
|
}
|