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:
parent
2e13fd2aca
commit
098d536b43
|
@ -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 isn’t 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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue