libogre: fix build on ppc32 (need libatomic)
This commit is contained in:
parent
974821a69a
commit
738f9c42cd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue