Skip to content

Commit

Permalink
warzone2100: fix -latomic
Browse files Browse the repository at this point in the history
  • Loading branch information
q66 committed Apr 5, 2021
1 parent ac671dc commit 602fe82
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions srcpkgs/warzone2100/template
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 602fe82

Please sign in to comment.