void-packages/srcpkgs/volk/template
2018-03-30 13:57:37 +02:00

31 lines
905 B
Bash

# Template file for 'volk'
pkgname=volk
version=1.4
revision=1
build_style=cmake
nocross="not complete for arm"
short_desc="Vector-Optimized Library of Kernels"
maintainer="Andrew Benson <abenson+void@gmail.com>"
hostmakedepends="pkg-config python-cheetah git"
makedepends="boost-devel python-cheetah python-devel python-Mako python-six"
license="GPL-3.0-or-later"
homepage="http://libvolk.org/"
distfiles="https://github.com/gnuradio/volk/archive/v${version}.tar.gz"
checksum=32131ba17846850c07270bc5897dd2de7130ec02ca029875a36966335120e7bf
pre_configure() {
if [ -z $CROSS_BUILD ]; then
sed -i 's/-D_GLIBCXX_USE_CXX11_ABI=1/-D_GLIBCXX_USE_CXX11_ABI=0/g' CMakeLists.txt
fi
}
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"
}
}