mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-07 08:52:54 +01:00
srsran2: install additional headers
This commit is contained in:
parent
9a725485d6
commit
fa75fabd66
2 changed files with 18 additions and 14 deletions
|
|
@ -14,16 +14,17 @@ HOMEPAGE="https://github.com/hdtuanss/srsRAN2"
|
||||||
#https://bugs.gentoo.org/733662
|
#https://bugs.gentoo.org/733662
|
||||||
#https://bugs.gentoo.org/832618
|
#https://bugs.gentoo.org/832618
|
||||||
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
HASH_COMMIT="4809688a2d645d5b506343c424d8ae39a01d3e3a"
|
HASH_COMMIT="4809688a2d645d5b506343c424d8ae39a01d3e3a"
|
||||||
SRC_URI="https://github.com/hdtuanss/srsRAN2/archive/${HASH_COMMIT}.tar.gz -> ${P}.gh.tar.gz"
|
SRC_URI="https://github.com/hdtuanss/srsRAN2/archive/${HASH_COMMIT}.tar.gz -> ${P}.gh.tar.gz"
|
||||||
|
S="${WORKDIR}/srsRAN2-${HASH_COMMIT}"
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
LICENSE="GPL-3"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
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"
|
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"
|
||||||
|
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
#Add cpu_flags_x86_avx2= after fixing whatever build failure
|
#Add cpu_flags_x86_avx2= after fixing whatever build failure
|
||||||
DEPEND="
|
DEPEND="
|
||||||
dev-libs/boost:=
|
dev-libs/boost:=
|
||||||
|
|
@ -41,8 +42,6 @@ DEPEND="
|
||||||
RDEPEND="${DEPEND}"
|
RDEPEND="${DEPEND}"
|
||||||
BDEPEND="virtual/pkgconfig"
|
BDEPEND="virtual/pkgconfig"
|
||||||
|
|
||||||
S="${WORKDIR}/srsRAN2-${HASH_COMMIT}"
|
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
eapply "${FILESDIR}"/srsran2_array.patch
|
eapply "${FILESDIR}"/srsran2_array.patch
|
||||||
eapply "${FILESDIR}"/srsran2_asn1_lib.patch
|
eapply "${FILESDIR}"/srsran2_asn1_lib.patch
|
||||||
|
|
|
||||||
|
|
@ -14,16 +14,17 @@ HOMEPAGE="https://github.com/hdtuanss/srsRAN2"
|
||||||
#https://bugs.gentoo.org/733662
|
#https://bugs.gentoo.org/733662
|
||||||
#https://bugs.gentoo.org/832618
|
#https://bugs.gentoo.org/832618
|
||||||
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
HASH_COMMIT="0acc79d3fe5b153a18b62e8ef5af1a0fb2327a18"
|
HASH_COMMIT="0acc79d3fe5b153a18b62e8ef5af1a0fb2327a18"
|
||||||
SRC_URI="https://github.com/hdtuanss/srsRAN2/archive/${HASH_COMMIT}.tar.gz -> ${P}.gh.tar.gz"
|
SRC_URI="https://github.com/hdtuanss/srsRAN2/archive/${HASH_COMMIT}.tar.gz -> ${P}.gh.tar.gz"
|
||||||
|
S="${WORKDIR}/srsRAN2-${HASH_COMMIT}"
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
LICENSE="GPL-3"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
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"
|
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"
|
||||||
|
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
#Add cpu_flags_x86_avx2= after fixing whatever build failure
|
#Add cpu_flags_x86_avx2= after fixing whatever build failure
|
||||||
DEPEND="
|
DEPEND="
|
||||||
dev-libs/boost:=
|
dev-libs/boost:=
|
||||||
|
|
@ -41,8 +42,6 @@ DEPEND="
|
||||||
RDEPEND="${DEPEND}"
|
RDEPEND="${DEPEND}"
|
||||||
BDEPEND="virtual/pkgconfig"
|
BDEPEND="virtual/pkgconfig"
|
||||||
|
|
||||||
S="${WORKDIR}/srsRAN2-${HASH_COMMIT}"
|
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
eapply "${FILESDIR}"/srsran2_array.patch
|
eapply "${FILESDIR}"/srsran2_array.patch
|
||||||
eapply "${FILESDIR}"/srsran2_asn1_lib.patch
|
eapply "${FILESDIR}"/srsran2_asn1_lib.patch
|
||||||
|
|
@ -57,6 +56,7 @@ src_prepare() {
|
||||||
-e 's/set(CMAKE_C_FLAGS/set(CMAKE_C_FLAGS_NERF/g' \
|
-e 's/set(CMAKE_C_FLAGS/set(CMAKE_C_FLAGS_NERF/g' \
|
||||||
CMakeLists.txt
|
CMakeLists.txt
|
||||||
cmake_src_prepare
|
cmake_src_prepare
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
|
|
@ -104,7 +104,12 @@ src_configure() {
|
||||||
cmake_src_configure
|
cmake_src_configure
|
||||||
}
|
}
|
||||||
|
|
||||||
#FIXME:
|
src_install() {
|
||||||
# also, install the following include files:
|
cmake_src_install
|
||||||
#/usr/include/srsenb
|
|
||||||
#/usr/include/srsue
|
for my_include in srsenb srsepc srsue
|
||||||
|
do
|
||||||
|
insinto "usr/include/srsran/${my_include}"
|
||||||
|
doins -r "${S}/${my_include}/hdr"/*
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue