void-packages/srcpkgs/volk/template

47 lines
1.5 KiB
Bash

# Template file for 'volk'
pkgname=volk
version=3.1.1
revision=1
_cpu_features_gitrev="188d0d3c383689cdb6bb70dc6da2469faec84f61"
_sse2neon_ver=1.7.0
create_wrksrc=yes
build_style=cmake
configure_args="-DENABLE_LGPL=OFF"
hostmakedepends="pkg-config python3-cheetah3 git python3-Mako python3-six"
makedepends="python3-cheetah3 python3-devel python3-Mako python3-six cpu_features-devel"
short_desc="Vector-Optimized Library of Kernels"
maintainer="Andrew Benson <abenson+void@gmail.com>"
license="LGPL-3.0-or-later"
homepage="http://libvolk.org/"
distfiles="https://github.com/gnuradio/volk/archive/v${version}.tar.gz
https://github.com/google/cpu_features/archive/${_cpu_features_gitrev}.tar.gz
https://raw.githubusercontent.com/DLTcollab/sse2neon/v${_sse2neon_ver}/sse2neon.h"
checksum="597f3e17c61975bce109e4d02cce2d414d6362e0922e766c10a98e4922cbf427
ef383c81e84e7ce56eeb9207ded6937f0aefd6747c319d8d3265e6d9be164db1
c36e1355c1a22d9c3357c945d1ef8bd005cb1f0f7b378e6577a45ea96931a083"
skip_extraction="sse2neon.h"
case "$XBPS_TARGET_MACHINE" in
armv6l*)
configure_args="-Dhave_mfpu_neon=0";;
esac
post_extract() {
mv volk-$version/* .
rm -rf cpu_features
mv cpu_features-${_cpu_features_gitrev} cpu_features
mkdir -p kernels/volk/sse2neon
vsrccopy sse2neon.h kernels/volk/sse2neon
}
volk-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove /usr/include
vmove /usr/lib/pkgconfig
vmove /usr/lib/cmake
vmove "/usr/lib/*.so"
}
}