qtox: use generic libatomic checks
This commit is contained in:
parent
d4cf5221d2
commit
ab66f27bdd
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue