You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.3 KiB
57 lines
1.3 KiB
4 years ago
|
# Copyright 2019-2021 Gentoo Authors
|
||
5 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
|
||
4 years ago
|
inherit cmake
|
||
5 years ago
|
|
||
|
DESCRIPTION="Open source SDR LTE software suite from Software Radio Systems"
|
||
|
HOMEPAGE="http://www.softwareradiosystems.com"
|
||
4 years ago
|
|
||
|
if [ "${PV}" = "9999" ]; then
|
||
|
inherit git-r3
|
||
|
EGIT_REPO_URI="https://github.com/srsLTE/srsLTE.git"
|
||
|
else
|
||
|
inherit vcs-snapshot
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
MY_PV=${PV//./_}
|
||
|
SRC_URI="https://github.com/srsLTE/srsLTE/archive/release_${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||
|
fi
|
||
4 years ago
|
#https://github.com/srsLTE/srsLTE/issues/537
|
||
|
RESTRICT="test"
|
||
5 years ago
|
|
||
|
LICENSE="GPL-3"
|
||
|
SLOT="0"
|
||
|
IUSE="bladerf simcard soapysdr uhd zeromq"
|
||
|
|
||
|
DEPEND="
|
||
4 years ago
|
dev-libs/boost:=
|
||
4 years ago
|
dev-libs/libconfig:=[cxx]
|
||
5 years ago
|
net-misc/lksctp-tools
|
||
4 years ago
|
net-libs/mbedtls:=
|
||
|
sci-libs/fftw:3.0=
|
||
5 years ago
|
bladerf? ( net-wireless/bladerf:= )
|
||
|
simcard? ( sys-apps/pcsc-lite )
|
||
|
soapysdr? ( net-wireless/soapysdr:= )
|
||
|
uhd? ( net-wireless/uhd:= )
|
||
4 years ago
|
zeromq? ( net-libs/zeromq:= )
|
||
5 years ago
|
"
|
||
|
RDEPEND="${DEPEND}"
|
||
4 years ago
|
BDEPEND="virtual/pkgconfig"
|
||
5 years ago
|
|
||
5 years ago
|
src_prepare() {
|
||
|
sed -i '/ -Werror"/d' CMakeLists.txt || die
|
||
4 years ago
|
cmake_src_prepare
|
||
5 years ago
|
}
|
||
|
|
||
5 years ago
|
src_configure() {
|
||
|
mycmakeargs=(
|
||
|
-DENABLE_UHD="$(usex uhd)"
|
||
|
-DENABLE_BLADERF="$(usex bladerf)"
|
||
|
-DENABLE_SOAPYSDR="$(usex soapysdr)"
|
||
|
-DENABLE_ZEROMQ="$(usex zeromq)"
|
||
|
-DENABLE_HARDSIM="$(usex simcard)"
|
||
|
)
|
||
4 years ago
|
cmake_src_configure
|
||
5 years ago
|
}
|