diff --git a/srcpkgs/vc/template b/srcpkgs/vc/template index 58a26ee90a1..17a1eecd94b 100644 --- a/srcpkgs/vc/template +++ b/srcpkgs/vc/template @@ -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 +}