vc: don't manually set CMAKE_SYSTEM_PROCESSOR

This commit is contained in:
maxice8 2018-10-03 03:08:18 -03:00 committed by Enno Boland
parent b552a5f05d
commit c039282afb

View file

@ -14,17 +14,9 @@ checksum=e6cfc056eb3a72a57751e768ba63236ebf2711d267fbd1dc0acfee0ac16fdf68
# CMAKE_SYSTEM_PROCESSOR isnt set when cross compiling
case "$XBPS_TARGET_MACHINE" in
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
}