stockfish: use generic libatomic checks
This commit is contained in:
parent
51d049719d
commit
d13f50372c
1 changed files with 12 additions and 25 deletions
|
@ -18,33 +18,20 @@ 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"
|
||||
;;
|
||||
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";;
|
||||
armv7*) make_build_args+="ARCH=armv7" ;;
|
||||
ppc64*) make_build_args+="ARCH=ppc-64" ;;
|
||||
ppc*) make_build_args+="ARCH=ppc-32" ;;
|
||||
esac
|
||||
|
||||
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
||||
makedepends+="libatomic-devel"
|
||||
LDFLAGS+=" -latomic"
|
||||
fi
|
||||
|
||||
do_install() {
|
||||
vbin stockfish
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue