diff --git a/srcpkgs/gnuradio-nrsc5/template b/srcpkgs/gnuradio-nrsc5/template index 7870d029cf..8947b34ad7 100644 --- a/srcpkgs/gnuradio-nrsc5/template +++ b/srcpkgs/gnuradio-nrsc5/template @@ -4,9 +4,9 @@ version=1.0.0 revision=3 wrksrc="gr-nrsc5-${version}" build_style=cmake -hostmakedepends="git autoconf automake libtool swig pkg-config" +hostmakedepends="git automake libtool pkg-config gnuradio swig" makedepends="gnuradio-devel boost-devel libcppunit-devel python3-devel - log4cpp-devel mpir-devel gsl-devel volk-devel" + log4cpp-devel gmpxx-devel mpir-devel gsl-devel volk-devel" short_desc="GNU Radio implementation of HD Radio" maintainer="Remi Pommarel " license="GPL-3.0-or-later" @@ -14,6 +14,13 @@ homepage="https://github.com/argilo/gr-nrsc5/" distfiles="https://github.com/argilo/gr-nrsc5/archive/v${version}.tar.gz" checksum=d736c4cb1104254d07296d2a61880e07149c9bfd1a49aed504215672d4e09485 +pre_configure() { + if [ "$CROSS_BUILD" ]; then + vsed -i CMakeLists.txt \ + -e "s;\./configure ;& --host=${XBPS_MACHINE} ;" + fi +} + gnuradio-nrsc5-devel_package() { depends="${makedepends} ${sourcepkg}-${version}_${revision}" short_desc+=" - development files"