goxel: use generic libatomic checks

This commit is contained in:
q66 2020-02-08 17:16:43 +01:00
parent d53e2742b8
commit e3541364fa

View file

@ -13,10 +13,9 @@ homepage="https://guillaumechereau.github.io/goxel/"
distfiles="https://github.com/guillaumechereau/goxel/archive/v${version}.tar.gz"
checksum=12b0e4504b8ed1bc351c75d8d17136c7bc169ce59705fd0dde562492185f1381
case "$XBPS_TARGET_MACHINE" in
ppc64*) ;;
armv6*|ppc*) makedepends+=" libatomic-devel";;
esac
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
fi
pre_build() {
if [ "$CROSS_BUILD" ];then
@ -24,11 +23,10 @@ pre_build() {
-e "/conf = env.Configure()/ a env.Replace(CC = \"$CC\")" \
-e "/conf = env.Configure()/ a env.Replace(CXX = \"$CXX\")"
fi
case $XBPS_TARGET_MACHINE in
ppc64*) ;;
armv6*|ppc*) vsed -i SConstruct \
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
vsed -i SConstruct \
-e "/conf = env.Configure()/ a env.Append(LIBS='atomic')"
esac
fi
}
do_install() {