gnuradio-nrsc5: fix build when XBPS_WORDSIZE != XBPS_TARGET_WORDSIZE

This commit is contained in:
Andrew J. Hesford 2022-09-04 12:33:14 -04:00
parent d69701cb11
commit 9f5e01aaae

View file

@ -1,13 +1,13 @@
# Template file for 'gnuradio-nrsc5'
pkgname=gnuradio-nrsc5
version=2.0.0
revision=1
revision=2
wrksrc="gr-nrsc5-${version}"
build_style=cmake
make_cmd=make
configure_args="-Dpybind11_DIR=/${py3_sitelib}/pybind11/share/cmake/pybind11"
hostmakedepends="git automake libtool pkg-config gnuradio python3 python3-pybind11"
makedepends="gnuradio-devel"
configure_args="-Dpybind11_DIR=${XBPS_CROSS_BASE}/${py3_sitelib}/pybind11/share/cmake/pybind11"
hostmakedepends="git automake libtool pkg-config gnuradio python3"
makedepends="gnuradio-devel python3-pybind11"
short_desc="GNU Radio implementation of HD Radio"
maintainer="Remi Pommarel <repk@triplefau.lt>"
license="GPL-3.0-or-later"
@ -16,10 +16,6 @@ distfiles="https://github.com/argilo/gr-nrsc5/archive/v${version}.tar.gz"
checksum=cc9135b20e79111f609b95e02c5b5926c8c71c3ed8ab6e58b2b484d4efb333ae
make_check=no # XXX: ModuleNotFoundError: No module named 'nrsc5'
if [ "$XBPS_WORDSIZE" != "$XBPS_TARGET_WORDSIZE" ]; then
nocross="pybind11: Python config failure: Python is 64-bit, chosen compiler is 32-bit"
fi
export CMAKE_GENERATOR="Unix Makefiles"
pre_configure() {