sdrangel-6.20.1.ebuild 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. # Copyright 1999-2022 Gentoo Authors
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=8
  4. inherit cmake
  5. DESCRIPTION="SDR Rx/Tx software"
  6. HOMEPAGE="https://github.com/f4exb/sdrangel"
  7. SRC_URI=""
  8. if [[ ${PV} =~ "9999" ]]; then
  9. inherit git-r3
  10. EGIT_REPO_URI="https://github.com/f4exb/sdrangel.git"
  11. else
  12. SRC_URI="https://github.com/f4exb/sdrangel/archive/v${PV}.tar.gz -> ${P}.tar.gz"
  13. KEYWORDS="~amd64 ~x86"
  14. fi
  15. LICENSE="GPL-3"
  16. SLOT="0"
  17. IUSE="airspy bladerf cpu_flags_x86_ssse3 cpu_flags_x86_sse4_1 fcd -debug -doc hackrf limesuite plutosdr gui rtlsdr server soapy uhd perseus xtrx mirisdr"
  18. RDEPEND="
  19. dev-libs/boost
  20. dev-libs/cm256cc
  21. dev-libs/serialDV
  22. >=media-libs/codec2-0.9.1
  23. media-libs/opus
  24. net-wireless/dsdcc
  25. sci-libs/fftw:3.0
  26. virtual/libusb:1
  27. >=dev-qt/qtcore-5.6.0
  28. >=dev-qt/qtcharts-5.6.0
  29. >=dev-qt/qtmultimedia-5.6.0[widgets]
  30. >=dev-qt/qtpositioning-5.6.0
  31. >=dev-qt/qtwebsockets-5.6.0
  32. >=dev-qt/qtwidgets-5.6.0
  33. dev-qt/qtserialport
  34. gui? (
  35. dev-qt/qtwebengine
  36. dev-qt/qtdeclarative
  37. dev-qt/qtlocation
  38. dev-qt/qtcharts
  39. dev-qt/qtspeech
  40. dev-qt/qtnetwork
  41. dev-qt/qtgui
  42. >=dev-qt/qtopengl-5.6.0
  43. )
  44. media-libs/opencv
  45. media-video/ffmpeg
  46. airspy? ( net-wireless/airspy )
  47. bladerf? ( net-wireless/bladerf )
  48. hackrf? ( net-libs/libhackrf )
  49. plutosdr? ( net-libs/libiio )
  50. limesuite? ( net-wireless/limesuite )
  51. rtlsdr? ( net-wireless/rtl-sdr )
  52. soapy? ( net-wireless/soapysdr )
  53. uhd? ( net-wireless/uhd )
  54. mirisdr? ( net-libs/libmirisdr )
  55. perseus? ( net-libs/libperseus-sdr )
  56. "
  57. DEPEND="${RDEPEND}
  58. doc? ( app-doc/doxygen )
  59. "
  60. RESTRICT="mirror"
  61. src_prepare() {
  62. sed -i '/ARCH_OPT/,+1 d' CMakeLists.txt
  63. cmake_src_prepare
  64. }
  65. src_configure() {
  66. mycmakeargs=(
  67. -DDEBUG_OUTPUT="$(usex debug)" \
  68. -DSANITIZE_ADDRESS=OFF \
  69. -DRX_SAMPLE_24BIT=ON \
  70. -DBUILD_SERVER="$(usex server)" \
  71. -DBUILD_GUI="$(usex gui)" \
  72. -DENABLE_AIRSPY="$(usex airspy)" \
  73. -DENABLE_AIRSPYHF="$(usex airspy)" \
  74. -DENABLE_BLADERF="$(usex bladerf)" \
  75. -DWITH_DOC="$(usex doc)" \
  76. -DENABLE_FUNCUBE="$(usex fcd)" \
  77. -DENABLE_HACKRF="$(usex hackrf)" \
  78. -DENABLE_IIO="$(usex plutosdr)" \
  79. -DENABLE_LIMESUITE="$(usex limesuite)" \
  80. -DENABLE_MIRISDR=$(usex mirisdr) \
  81. -DENABLE_PERSEUS=$(usex perseus) \
  82. -DENABLE_SOAPYSDR="$(usex soapy)" \
  83. -DENABLE_USRP="$(usex uhd)" \
  84. -DENABLE_XTRX=$(usex xtrx) \
  85. )
  86. cmake_src_configure
  87. }