libtorrent-rasterbar: use generic libatomic checks

This commit is contained in:
q66 2020-02-08 17:19:27 +01:00
parent 8e8d1ea85f
commit 949f6ebf52
1 changed files with 4 additions and 6 deletions

View File

@ -15,12 +15,10 @@ homepage="https://libtorrent.org/"
distfiles="https://github.com/arvidn/libtorrent/releases/download/libtorrent-${version//./_}/libtorrent-rasterbar-${version}.tar.gz"
checksum=1582fdbbd0449bcfe4ffae2ccb9e5bf0577459a32bb25604e01accb847da1a2d
case "$XBPS_TARGET_MACHINE" in
armv[56]*|mips*|ppc|ppc-musl)
makedepends+=" libatomic-devel"
LDFLAGS+=" -latomic"
;;
esac
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
LDFLAGS+=" -latomic"
fi
pre_configure() {
local _py3_ver=${py3_ver}${py3_abiver}