31 lines
1009 B
Bash
31 lines
1009 B
Bash
# Template file for 'vc'
|
||
pkgname=vc
|
||
version=1.3.3
|
||
revision=1
|
||
wrksrc="Vc-${version}"
|
||
build_style=cmake
|
||
configure_args="-DTARGET_ARCHITECTURE=generic"
|
||
short_desc="Library to ease explicit vectorization of C++ code"
|
||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||
license="3-clause-BSD"
|
||
homepage="https://github.com/VcDevel/Vc"
|
||
distfiles="${homepage}/releases/download/${version}/Vc-${version}.tar.gz"
|
||
checksum=08c629d2e14bfb8e4f1a10f09535e4a3c755292503c971ab46637d2986bdb4fe
|
||
|
||
# CMAKE_SYSTEM_PROCESSOR isn’t 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
|
||
}
|