libogre: fix build on ppc32 (need libatomic)

This commit is contained in:
q66 2020-01-10 17:42:50 +01:00
parent 974821a69a
commit 738f9c42cd
1 changed files with 4 additions and 2 deletions

View File

@ -25,12 +25,14 @@ wrksrc=ogre-$version
CXXFLAGS="-fcheck-new -fno-delete-null-pointer-checks -fno-lifetime-dse"
case "$XBPS_TARGET_MACHINE" in
armv[56]*) makedepends+=" libatomic-devel" ;;
ppc64*) ;;
armv[56]*|ppc*) makedepends+=" libatomic-devel" ;;
esac
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
armv[56]*) find -name CMakeLists.txt -exec sed -i "{}" \
ppc64*) ;;
armv[56]*|ppc*) find -name CMakeLists.txt -exec sed -i "{}" \
-e "/target_link_libraries/s/)/ atomic)/" \;
;;
esac