From 706a82e4dc17853785554d1b6d077ac85aae1dba Mon Sep 17 00:00:00 2001 From: Andrew Benson Date: Thu, 15 Feb 2018 14:26:45 -0600 Subject: [PATCH] New package: volk-1.3 - Set volk to use pre-CXX11 ABI to work with boost. --- common/shlibs | 1 + srcpkgs/volk-devel | 1 + srcpkgs/volk/template | 29 +++++++++++++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 120000 srcpkgs/volk-devel create mode 100644 srcpkgs/volk/template diff --git a/common/shlibs b/common/shlibs index 56db6c8aad..b39f409340 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3091,3 +3091,4 @@ libscrypt.so.0 libscrypt-devel-1.21_1 liblwipv6.so.2 lwipv6-1.5a_1 libpipewire-0.1.so.0 pipewire-0.1.7_1 libspa-lib.so.0 pipewire-0.1.7_1 +libvolk.so.1.3 volk-1.3_1 diff --git a/srcpkgs/volk-devel b/srcpkgs/volk-devel new file mode 120000 index 0000000000..18e1626312 --- /dev/null +++ b/srcpkgs/volk-devel @@ -0,0 +1 @@ +volk \ No newline at end of file diff --git a/srcpkgs/volk/template b/srcpkgs/volk/template new file mode 100644 index 0000000000..133d130b9d --- /dev/null +++ b/srcpkgs/volk/template @@ -0,0 +1,29 @@ +# Template file for 'volk' +pkgname=volk +version=1.3 +revision=1 +build_style=cmake +short_desc="Vector-Optimized Library of Kernels" +maintainer="Andrew Benson " +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 + } +} +