yatebts-4.0.0-r3.ebuild 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils autotools
  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.4.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}4/yate-bts-${PV}-1.tar.gz"
  24. S="${WORKDIR}/yate-bts"
  25. fi
  26. src_prepare() {
  27. epatch "${FILESDIR}"/${P}-dont-mess-with-cflags.patch
  28. epatch "${FILESDIR}"/${PN}-sgsnggsn-inetutils-hostname-fix.diff
  29. epatch "${FILESDIR}"/${PN}-bladeRF-transceiver_revert_init_order.patch
  30. eautoreconf
  31. }
  32. src_configure() {
  33. econf \
  34. $(use_enable rad1) \
  35. $(use_enable usrp1) \
  36. $(use_enable uhd) \
  37. $(use_enable bladerf) \
  38. $(use_enable cpu_flags_x86_sse3 sse3) \
  39. $(use_enable cpu_flags_x86_sse4_1 sse41)
  40. }