gnuradio-rds: 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 9694d0a10c
commit 44aae8cffa

View file

@ -1,12 +1,12 @@
# Template file for 'gnuradio-rds'
pkgname=gnuradio-rds
version=3.10
revision=2
revision=3
wrksrc="gr-rds-${version}"
build_style=cmake
configure_args="-Dpybind11_DIR=/${py3_sitelib}/pybind11/share/cmake/pybind11"
hostmakedepends="pkg-config gnuradio python3 python3-pybind11"
makedepends="gnuradio-devel"
configure_args="-Dpybind11_DIR=${XBPS_CROSS_BASE}/${py3_sitelib}/pybind11/share/cmake/pybind11"
hostmakedepends="pkg-config gnuradio python3"
makedepends="gnuradio-devel python3-pybind11"
short_desc="GNUradio FM RDS/TMC Transceiver"
maintainer="Remi Pommarel <repk@triplefau.lt>"
license="GPL-2.0-or-later"
@ -14,10 +14,6 @@ homepage="https://github.com/bastibl/gr-rds"
distfiles="https://github.com/bastibl/gr-rds/archive/v${version}.tar.gz"
checksum=083a9f479d83ac2f6273cdf3b3cf1beca47dfdce2d28264ce979f23c119607f7
if [ "$XBPS_WORDSIZE" != "$XBPS_TARGET_WORDSIZE" ]; then
nocross="pybind11: Python config failure: Python is 64-bit, chosen compiler is 32-bit"
fi
gnuradio-rds-devel_package() {
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"