5a406acf78
Closes: #12048 [via git-merge-pr] Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
50 lines
1 KiB
Bash
50 lines
1 KiB
Bash
# Template file for 'stockfish'
|
|
pkgname=stockfish
|
|
version=10
|
|
revision=1
|
|
wrksrc="${pkgname}-${version}-src"
|
|
create_wrksrc=yes
|
|
build_wrksrc=src
|
|
build_style=gnu-makefile
|
|
make_build_target=build
|
|
hostmakedepends="unzip"
|
|
short_desc="A free UCI chess engine derived from Glaurung"
|
|
maintainer="cipr3s <cipr3s@gmx.com>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="http://stockfishchess.org/"
|
|
distfiles="http://stockfish.s3.amazonaws.com/${pkgname}-${version}-src.zip"
|
|
checksum=29bd01e7407098aa9e851b82f6ea4bf2b46d26e9075a48a269cb1e40c582a073
|
|
|
|
LDFLAGS+="-lpthread"
|
|
|
|
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=general-64"
|
|
;;
|
|
armv[56]*)
|
|
make_build_args+="ARCH=general-32"
|
|
makedepends+="libatomic-devel"
|
|
LDFLAGS+=" -latomic"
|
|
;;
|
|
armv7*)
|
|
make_build_args+="ARCH=armv7"
|
|
;;
|
|
ppc64*)
|
|
make_build_args+="ARCH=ppc-64"
|
|
;;
|
|
ppc*)
|
|
make_build_args+="ARCH=ppc-32"
|
|
makedepends+="libatomic-devel"
|
|
LDFLAGS+=" -latomic"
|
|
;;
|
|
esac
|
|
|
|
do_install() {
|
|
vbin stockfish
|
|
}
|