1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit git-2 autotools
8 DESCRIPTION="Linux Call Router"
9 HOMEPAGE="http://isdn.eversberg.eu/"
10 EGIT_REPO_URI="git://git.misdn.eu/lcr.git"
15 IUSE="asterisk +ssl +gsm-bs +gsm-ms ss5 +sip gsmhr misdn"
18 media-libs/opencore-amr
19 asterisk? ( net-misc/asterisk )
20 ssl? ( dev-libs/openssl )
21 gsm-bs? ( net-wireless/openbsc )
22 sip? ( net-libs/sofia-sip )
23 gsm-ms? ( net-wireless/osmocom-bb )
25 #mdisn? ( net-misc/misdn )
29 sed -i 's:#!/usr/bin/env python:#!/usr/bin/env python2:' "${S}"/libgsmhr/fetch_sources.py
34 CXXFLAGS="$CXXFLAGS -I./include" CFLAGS="$CFLAGS -I./include" econf \
35 $(use_with asterisk) \
51 ewarn "You have enabled the gsmhr use flag, for the GSM half-rate"
52 ewarn "codec. This is strongly discouraged, except for testing,"
53 ewarn "because of extremely high CPU usage."