yatebts-5.0.0.ebuild 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils autotools flag-o-matic
  5. DESCRIPTION="The Yate GSM base station"
  6. HOMEPAGE="http://www.yatebts.com/"
  7. ESVN_REPO_URI="http://voip.null.ro/svn/yatebts/trunk"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. IUSE="rad1 usrp1 uhd +bladerf cpu_flags_x86_sse3 cpu_flags_x86_sse4_1"
  11. RDEPEND="
  12. =net-voip/yate-5.5.0-r1:=[gsm]
  13. bladerf? ( net-wireless/bladerf:= )
  14. uhd? ( net-wireless/uhd )
  15. virtual/libusb:1"
  16. DEPEND="virtual/pkgconfig
  17. ${RDEPEND}"
  18. if [[ ${PV} == "9999" ]] ; then
  19. inherit subversion
  20. KEYWORDS=""
  21. else
  22. KEYWORDS="~amd64 ~arm ~x86"
  23. SRC_URI="http://yate.null.ro/tarballs/${PN}5/yate-bts-${PV}-1.tar.gz"
  24. S="${WORKDIR}/yate-bts"
  25. fi
  26. src_prepare() {
  27. replace-flags -ggdb -g
  28. replace-flags -ggdb3 -g
  29. replace-flags -ggdb2 -g
  30. replace-flags -ggdb1 -g
  31. #epatch "${FILESDIR}"/${PN}-4.0.0-dont-mess-with-cflags.patch
  32. epatch "${FILESDIR}"/${PN}-sgsnggsn-inetutils-hostname-fix.diff
  33. eautoreconf
  34. }
  35. src_configure() {
  36. econf \
  37. $(use_enable rad1) \
  38. $(use_enable usrp1) \
  39. $(use_enable uhd) \
  40. $(use_enable bladerf) \
  41. $(use_enable cpu_flags_x86_sse3 sse3) \
  42. $(use_enable cpu_flags_x86_sse4_1 sse41)
  43. }