mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-07 12:01:54 +02:00
srsran: add 23.11
This commit is contained in:
parent
b21e3324f9
commit
d1968c3a00
2 changed files with 107 additions and 0 deletions
|
|
@ -1,2 +1,3 @@
|
|||
DIST srsran-22.10.tar.gz 15187079 BLAKE2B d917116d575210aa44a03f7cbddd0c00805d8490f1528e87cc7cce634f2303537a5ccea15066c051dfa03a56b0ba2ddfb059fa66b75aeaeb699842d900c5998a SHA512 aa848c0ec97a5af12570f333a4a35295fdddae9b27b18ce183959919c349ae27a5b038b494f725804bdb9be38918810c4e0c0b42d11f036dbfcf5d9a6e32ef5e
|
||||
DIST srsran-23.04.1.tar.gz 15446973 BLAKE2B 7f9c34ce9170e85a1d07068b71e17587076b0f8bdce0f48c02fc137b88ca38fc831e278349058c821eaaf9bb750263ea56a006bfe3ea45748f30b77c4eea36dc SHA512 725a7d4a317d913d52f10b411cdf647401bcc688ac82f215231b422696b460e16f5d5173e1336be5b7744a338e89eca2293b65689120dab7598bf32bff782f74
|
||||
DIST srsran-23.11.tar.gz 15455581 BLAKE2B 537953e475bcfc2910290bb2ce41eb34afee2b1394f9105d43273475141bb8f6c8e8c19baf0836fa346e61b07ff9316c98fdca11e9764f8918a3a7a0c156d5fd SHA512 7ae5ee93c52505d608b6634aacc31dfd44ce40bfdcffe2a3b8f0e0bbfa28b66b400bca9a48c61d208c510655465f2bdf2eb2884b2a88ed7d022ed40d856e3725
|
||||
|
|
|
|||
106
net-wireless/srsran/srsran-23.11.ebuild
Normal file
106
net-wireless/srsran/srsran-23.11.ebuild
Normal file
|
|
@ -0,0 +1,106 @@
|
|||
# Copyright 2019-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake flag-o-matic
|
||||
|
||||
DESCRIPTION="Open source SDR 4G software suite from Software Radio Systems"
|
||||
HOMEPAGE="https://www.srsran.com/"
|
||||
|
||||
# Possible issues to look into
|
||||
#https://bugs.gentoo.org/713684
|
||||
#https://bugs.gentoo.org/731720
|
||||
#https://bugs.gentoo.org/733662
|
||||
#https://bugs.gentoo.org/832618
|
||||
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/srsran/srsRAN_4G.git"
|
||||
else
|
||||
inherit vcs-snapshot
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
MY_PV=${PV//./_}
|
||||
SRC_URI="https://github.com/srsran/srsRAN_4G/archive/refs/tags/release_${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
fi
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
IUSE="bladerf cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_avx512f cpu_flags_x86_fma3 cpu_flags_x86_sse simcard soapysdr test uhd zeromq"
|
||||
|
||||
#Add cpu_flags_x86_avx2= after fixing whatever build failure
|
||||
DEPEND="
|
||||
dev-libs/boost:=
|
||||
dev-libs/elfutils
|
||||
dev-libs/libconfig:=[cxx]
|
||||
net-misc/lksctp-tools
|
||||
net-libs/mbedtls:=
|
||||
sci-libs/fftw:3.0=[cpu_flags_x86_avx=,cpu_flags_x86_fma3=,cpu_flags_x86_sse=]
|
||||
bladerf? ( net-wireless/bladerf:= )
|
||||
simcard? ( sys-apps/pcsc-lite )
|
||||
soapysdr? ( net-wireless/soapysdr:= )
|
||||
uhd? ( net-wireless/uhd:= )
|
||||
zeromq? ( net-libs/zeromq:= )
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
sed -i '/ -Werror"/d' CMakeLists.txt || die
|
||||
#break upstream hijacking of cflags
|
||||
sed -i \
|
||||
-e 's/"GNU"/"NERF"/g' \
|
||||
-e 's/"Clang"/"NERF"/g' \
|
||||
-e 's/Ninja/NERF/g' \
|
||||
-e 's/GNUCXX/NERF/g' \
|
||||
-e 's/set(CMAKE_C_FLAGS/set(CMAKE_C_FLAGS_NERF/g' \
|
||||
CMakeLists.txt
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
#This may be a bad idea, and it is a bad idea for sure when other tests are failing
|
||||
#-DENABLE_ALL_TEST="$(usex test)"
|
||||
#-DENABLE_TTCN3="$(usex test)"
|
||||
#Maybe make this one depend on zmq instead?
|
||||
#-DENABLE_ZMQ_TEST="$(usex test)"
|
||||
|
||||
# Add missing srsGUI
|
||||
#-DENABLE_GUI="$(usex gui)"
|
||||
mycmakeargs=(
|
||||
-DENABLE_UHD="$(usex uhd)"
|
||||
-DENABLE_BLADERF="$(usex bladerf)"
|
||||
-DENABLE_SOAPYSDR="$(usex soapysdr)"
|
||||
-DENABLE_ZEROMQ="$(usex zeromq)"
|
||||
-DENABLE_HARDSIM="$(usex simcard)"
|
||||
-DCMAKE_C_FLAGS_RELWITHDEBINFO="${CFLAGS}"
|
||||
)
|
||||
# readd nerfed cflags that are required
|
||||
append-cflags "-std=c99 -fno-strict-aliasing -D_GNU_SOURCE"
|
||||
append-cxxflags "-std=c++14 -fno-strict-aliasing -D_GNU_SOURCE"
|
||||
# "fix" "auto-detection" from use flags, this is probably horrible
|
||||
if use cpu_flags_x86_sse; then
|
||||
append-cflags "-DLV_HAVE_SSE -mfpmath=sse -msse4.1"
|
||||
append-cxxflags "-DLV_HAVE_SSE -mfpmath=sse -msse4.1"
|
||||
fi
|
||||
if use cpu_flags_x86_avx; then
|
||||
append-cflags "-DLV_HAVE_AVX -mavx"
|
||||
append-cxxflags "-DLV_HAVE_AVX -mavx"
|
||||
fi
|
||||
#if use cpu_flags_x86_avx2; then
|
||||
# append-cflags "-DLV_HAVE_AVX2 -mavx2"
|
||||
# append-cxxflags "-DLV_HAVE_AVX2 -mavx2"
|
||||
#fi
|
||||
#https://github.com/pentoo/pentoo-overlay/issues/1491
|
||||
#if use cpu_flags_x86_avx512f; then
|
||||
# append-cflags "-DLV_HAVE_AVX512 -mavx512f"
|
||||
# append-cxxflags "-DLV_HAVE_AVX512 -mavx512f"
|
||||
#fi
|
||||
if use cpu_flags_x86_fma3; then
|
||||
append-cflags "-DLV_HAVE_FMA -mfma"
|
||||
append-cxxflags "-DLV_HAVE_FMA -mfma"
|
||||
fi
|
||||
cmake_src_configure
|
||||
}
|
||||
Loading…
Reference in a new issue