From cf87a285b99bbcc73df9bcfec47090aa3037496b Mon Sep 17 00:00:00 2001 From: q66 Date: Sat, 8 Feb 2020 17:12:34 +0100 Subject: [PATCH] LGOGDownloader: use generic libatomic checks --- srcpkgs/LGOGDownloader/template | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 }