New package: fairy-stockfish-14

This commit is contained in:
Leah Neukirchen 2021-10-16 23:26:42 +02:00
parent a2f7835658
commit 3d154aea3a
3 changed files with 77 additions and 0 deletions

View File

@ -0,0 +1,32 @@
--- Fairy-Stockfish-fairy_sf_14/src/Makefile.orig
+++ Fairy-Stockfish-fairy_sf_14/src/Makefile
@@ -359,29 +359,10 @@
ifeq ($(COMP),gcc)
comp=gcc
- CXX=g++
CXXFLAGS += -Wextra -Wshadow
ifeq ($(largeboards),no)
CXXFLAGS += -pedantic
endif
-
- ifeq ($(arch),$(filter $(arch),armv7 armv8))
- ifeq ($(OS),Android)
- CXXFLAGS += -m$(bits)
- LDFLAGS += -m$(bits)
- endif
- else
- CXXFLAGS += -m$(bits)
- LDFLAGS += -m$(bits)
- endif
-
- ifeq ($(arch),$(filter $(arch),armv7))
- LDFLAGS += -latomic
- endif
-
- ifneq ($(KERNEL),Darwin)
- LDFLAGS += -Wl,--no-as-needed
- endif
endif
ifeq ($(COMP),mingw)

View File

@ -0,0 +1,43 @@
# Template file for 'fairy-stockfish'
pkgname=fairy-stockfish
version=14
revision=1
#_net_file= No redistributable NNUE available.
wrksrc="Fairy-Stockfish-fairy_sf_${version}"
build_wrksrc=src
build_style=gnu-makefile
make_build_target=build
make_build_args="nnue=yes largeboards=yes all=yes"
make_use_env=yes
hostmakedepends="tar"
short_desc="Free UCI chess variant engine (supporting Xiangqi, Shogi, ...)"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/ianfab/Fairy-Stockfish"
distfiles="https://github.com/ianfab/Fairy-Stockfish/archive/fairy_sf_${version}.tar.gz"
checksum=db5e96cf47faf4bfd4a500f58ae86e46fee92c2f5544e78750fc01ad098cbad2
LDFLAGS+="-lpthread -Wl,-z,stack-size=2097152"
# We know how to optimize ourselves
make_build_args="optimize=no "
case $XBPS_TARGET_MACHINE in
x86_64*) make_build_args+="ARCH=x86-64" ;;
i686*) make_build_args+="ARCH=x86-32" ;;
aarch64*) make_build_args+="ARCH=armv8" ;;
armv[56]*) make_build_args+="ARCH=general-32";;
armv7*) make_build_args+="ARCH=armv7" ;;
ppc64*) make_build_args+="ARCH=ppc-64" ;;
ppc*) make_build_args+="ARCH=ppc-32" ;;
*) broken="not supported" ;;
esac
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
LDFLAGS+=" -latomic"
fi
do_install() {
vbin stockfish fairy-stockfish
}

View File

@ -0,0 +1,2 @@
site="https://github.com/ianfab/Fairy-Stockfish/releases"
pattern="sf_\K[\d\.]*(?=\.tar\.gz)"