lcr-9999.ebuild 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit git-2 autotools
  5. DESCRIPTION="Linux Call Router"
  6. HOMEPAGE="http://isdn.eversberg.eu/"
  7. EGIT_REPO_URI="git://git.misdn.eu/lcr.git"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS=""
  11. IUSE="asterisk +ssl +gsm-bs +gsm-ms ss5 +sip gsmhr misdn"
  12. DEPEND="
  13. media-libs/opencore-amr
  14. asterisk? ( net-misc/asterisk )
  15. ssl? ( dev-libs/openssl )
  16. gsm-bs? ( net-wireless/openbsc )
  17. sip? ( net-libs/sofia-sip )
  18. gsm-ms? ( net-wireless/osmocom-bb )
  19. "
  20. #mdisn? ( net-misc/misdn )
  21. RDEPEND="${DEPEND}"
  22. src_prepare() {
  23. sed -i 's:#!/usr/bin/env python:#!/usr/bin/env python2:' "${S}"/libgsmhr/fetch_sources.py
  24. eautoreconf
  25. }
  26. src_configure() {
  27. CXXFLAGS="$CXXFLAGS -I./include" CFLAGS="$CFLAGS -I./include" econf \
  28. $(use_with asterisk) \
  29. $(use_with ssl) \
  30. $(use_with gsm-bs) \
  31. $(use_with gsm-ms) \
  32. $(use_with ss5) \
  33. $(use_with sip) \
  34. $(use_with misdn) \
  35. $(use_enable gsmhr)
  36. }
  37. src_compile() {
  38. emake -j1
  39. }
  40. pkg_postinst() {
  41. use gsmhr || return
  42. ewarn "You have enabled the gsmhr use flag, for the GSM half-rate"
  43. ewarn "codec. This is strongly discouraged, except for testing,"
  44. ewarn "because of extremely high CPU usage."
  45. }