diff --git a/srcpkgs/LGOGDownloader/template b/srcpkgs/LGOGDownloader/template index 1a87e76f46..4497a632f9 100644 --- a/srcpkgs/LGOGDownloader/template +++ b/srcpkgs/LGOGDownloader/template @@ -18,12 +18,12 @@ if [ -z "$CROSS_BUILD" ]; then hostmakedepends+=" help2man" fi -case "$XBPS_TARGET_MACHINE" in - armv6*|ppc|ppc-musl) makedepends+=" libatomic-devel" # Need libatomic for __atomic_fetch_add_8 etc. -esac +if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then + makedepends+=" libatomic-devel" +fi pre_configure() { - case "$XBPS_TARGET_MACHINE" in - armv6*|ppc|ppc-musl) sed -i 's/PRIVATE ${ZLIB_LIBRARIES}/\0\n atomic/' CMakeLists.txt - esac + if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then + sed -i 's/PRIVATE ${ZLIB_LIBRARIES}/\0\n atomic/' CMakeLists.txt + fi }