libogre: use generic libatomic checks
This commit is contained in:
parent
68eb25080b
commit
d137ce7f57
1 changed files with 3 additions and 9 deletions
|
@ -24,18 +24,12 @@ make_build_target="all OgreDoc"
|
|||
wrksrc=ogre-$version
|
||||
|
||||
CXXFLAGS="-fcheck-new -fno-delete-null-pointer-checks -fno-lifetime-dse"
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
ppc64*) ;;
|
||||
armv[56]*|ppc*) makedepends+=" libatomic-devel" ;;
|
||||
esac
|
||||
|
||||
pre_configure() {
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
ppc64*) ;;
|
||||
armv[56]*|ppc*) find -name CMakeLists.txt -exec sed -i "{}" \
|
||||
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
||||
find -name CMakeLists.txt -exec sed -i "{}" \
|
||||
-e "/target_link_libraries/s/)/ atomic)/" \;
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
}
|
||||
|
||||
post_install() {
|
||||
|
|
Loading…
Reference in a new issue