qtox: use generic libatomic checks

This commit is contained in:
q66 2020-02-08 17:22:31 +01:00
parent d4cf5221d2
commit ab66f27bdd
1 changed files with 6 additions and 8 deletions

View File

@ -19,14 +19,12 @@ changelog="https://raw.githubusercontent.com/qTox/qTox/master/CHANGELOG.md"
distfiles="https://github.com/qTox/qTox/archive/v${version}.tar.gz"
checksum=b842e2e7cbfa356da32dd7afc7628d55ce35d046ed72a468b211ab9ef863c382
case "$XBPS_TARGET_MACHINE" in
ppc64*) ;;
armv6*|ppc*) makedepends+=" libatomic-devel" ;;
esac
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
fi
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
ppc64*) ;;
armv6*|ppc*) sed -i 's/${ALL_LIBRARIES})/atomic \0/' CMakeLists.txt ;;
esac
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
sed -i 's/${ALL_LIBRARIES})/atomic \0/' CMakeLists.txt
fi
}