void-packages/srcpkgs/volk/template
2018-02-17 08:23:42 +01:00

30 lines
831 B
Bash

# Template file for 'volk'
pkgname=volk
version=1.3
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 python-cheetah"
makedepends="python-devel python-cheetah boost-devel"
license="GPL-3"
homepage="http://libvolk.org/"
distfiles="https://github.com/gnuradio/volk/archive/v${version}.tar.gz"
checksum=90b69515d3cc6d76bbc589cec63d600b690bffe2e2938be2f895176f18f7e3af
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"
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
}
}