qtox: use libatomic on ppc32

[ci skip]
This commit is contained in:
q66 2019-12-03 16:53:52 +01:00 committed by Helmut Pozimski
parent a255cc8b75
commit a19ca8c8a1
1 changed files with 4 additions and 2 deletions

View File

@ -20,11 +20,13 @@ distfiles="https://github.com/qTox/qTox/archive/v${version}.tar.gz"
checksum=b842e2e7cbfa356da32dd7afc7628d55ce35d046ed72a468b211ab9ef863c382
case "$XBPS_TARGET_MACHINE" in
armv6*) makedepends+=" libatomic-devel"
ppc64*) ;;
armv6*|ppc*) makedepends+=" libatomic-devel" ;;
esac
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
armv6*) sed -i 's/${ALL_LIBRARIES})/atomic \0/' CMakeLists.txt
ppc64*) ;;
armv6*|ppc*) sed -i 's/${ALL_LIBRARIES})/atomic \0/' CMakeLists.txt ;;
esac
}