41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
# Template file for 'volk'
|
|
pkgname=volk
|
|
version=3.0.0
|
|
revision=2
|
|
_cpu_features_gitrev="188d0d3c383689cdb6bb70dc6da2469faec84f61"
|
|
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"
|
|
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"
|
|
checksum="617c25a5a240e41e50d695851925541b19e011d516c3e0c288a5aeefb3ceb7fd
|
|
ef383c81e84e7ce56eeb9207ded6937f0aefd6747c319d8d3265e6d9be164db1"
|
|
|
|
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
|
|
}
|
|
|
|
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"
|
|
}
|
|
}
|