From 602fe827b9f8e63dd9224158eeba1860fa2efdc7 Mon Sep 17 00:00:00 2001 From: q66 Date: Tue, 6 Apr 2021 01:02:04 +0200 Subject: [PATCH] warzone2100: fix -latomic --- srcpkgs/warzone2100/template | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/srcpkgs/warzone2100/template b/srcpkgs/warzone2100/template index 8d6de60569c..3af4ebc401f 100644 --- a/srcpkgs/warzone2100/template +++ b/srcpkgs/warzone2100/template @@ -18,6 +18,16 @@ distfiles="https://github.com/Warzone2100/${pkgname}/releases/download/${version checksum=3368f6653a5ebe5579938f0ebbcfe7907b1f0fc635f0a7aecc5d68ebc50124b5 nocross="fails to detect SDL2 when cross-compiling" +if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then + makedepends+=" libatomic-devel" +fi + +post_extract() { + if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then + echo "target_link_libraries(warzone2100 atomic)" >> CMakeLists.txt + fi +} + warzone2100-data_package() { short_desc+=" - data files" pkg_install() {