vc: fix i686* / add license

Also remove only_for_archs and set broken for mips*

Closes: #10043 [via git-merge-pr]
This commit is contained in:
newbluemoon 2017-12-16 15:46:32 +01:00 committed by Jürgen Buchmüller
parent 2e13fd2aca
commit 098d536b43
1 changed files with 14 additions and 2 deletions

View File

@ -11,8 +11,20 @@ license="3-clause-BSD"
homepage="https://github.com/VcDevel/Vc"
distfiles="${homepage}/releases/download/${version}/Vc-${version}.tar.gz"
checksum=08c629d2e14bfb8e4f1a10f09535e4a3c755292503c971ab46637d2986bdb4fe
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
# CMAKE_SYSTEM_PROCESSOR isnt set when cross compiling
case "$XBPS_TARGET_MACHINE" in
i686*) broken="https://build.voidlinux.eu/builders/i686_builder/builds/6484/steps/shell_3/logs/stdio" ;;
x86_64*) configure_args+=" -DCMAKE_SYSTEM_PROCESSOR=amd64";;
i686*) configure_args+=" -DCMAKE_SYSTEM_PROCESSOR=x86";;
aarch64*) configure_args+=" -DCMAKE_SYSTEM_PROCESSOR=aarch64";;
arm*) configure_args+=" -DCMAKE_SYSTEM_PROCESSOR=arm";;
mips*) broken="No optimized implementation of the Vc types available";;
esac
post_extract() {
sed -i -e "s/(x86|AMD64|amd64)/(i686|x86|AMD64|amd64)/" CMakeLists.txt
}
post_install() {
vlicense LICENSE
}