libogre: fix armv[56]* build

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2018-04-18 09:50:04 +02:00
parent c2c7666da2
commit e675d1d980
No known key found for this signature in database
GPG key ID: 6764EC32352D0647

View file

@ -23,11 +23,18 @@ checksum=ff2e666201c1dfddee2fe53ba4825f19385eb3b0d4ad8c3872d8084076826d8d
make_build_target="all OgreDoc"
wrksrc=ogre-$version
CXXFLAGS="-fcheck-new -fno-delete-null-pointer-checks -fno-lifetime-dse"
case "$XBPS_TARGET_MACHINE" in
armv6*) broken="https://build.voidlinux.eu/builders/armv6l_builder/builds/9135/steps/shell_3/logs/stdio"
armv[56]*) makedepends+=" libatomic-devel" ;;
esac
CXXFLAGS="-fcheck-new -fno-delete-null-pointer-checks -fno-lifetime-dse"
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
armv[56]*) find -name CMakeLists.txt -exec sed -i "{}" \
-e "/target_link_libraries/s/)/ atomic)/" \;
;;
esac
}
post_install() {
vmkdir /usr/share/doc