giada: use generic libatomic checks

This commit is contained in:
q66 2020-02-08 17:16:23 +01:00
parent 94764a903b
commit 8672b84111

View file

@ -14,16 +14,14 @@ homepage="https://www.giadamusic.com/"
distfiles="https://github.com/monocasual/giada/archive/v${version}.tar.gz"
checksum=39bd1dc20794d01a530bb832a7b7fc032ee0403a9d2b254b24c1b1d5eaa4cfa1
case "$XBPS_TARGET_MACHINE" in
ppc64*) ;;
armv6*|ppc*) makedepends+=" libatomic-devel" ;;
esac
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
fi
post_extract() {
case "$XBPS_TARGET_MACHINE" in
ppc64*) ;;
armv6*|ppc*) vsed -e 's/\($(ldAdd)\)/\1 -latomic/g' -i Makefile.am ;;
esac
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
vsed -e 's/\($(ldAdd)\)/\1 -latomic/g' -i Makefile.am
fi
}
pre_configure() {