summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-wireless/yatebts/yatebts-4.0.0-r2.ebuild')
-rw-r--r--net-wireless/yatebts/yatebts-4.0.0-r2.ebuild50
1 files changed, 50 insertions, 0 deletions
diff --git a/net-wireless/yatebts/yatebts-4.0.0-r2.ebuild b/net-wireless/yatebts/yatebts-4.0.0-r2.ebuild
new file mode 100644
index 00000000000..ed833fb3349
--- /dev/null
+++ b/net-wireless/yatebts/yatebts-4.0.0-r2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils autotools
+
+DESCRIPTION="The Yate GSM base station"
+HOMEPAGE="http://www.yatebts.com/"
+ESVN_REPO_URI="http://voip.null.ro/svn/yatebts/trunk"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="rad1 usrp1 uhd +bladerf cpu_flags_x86_sse3 cpu_flags_x86_sse4_1"
+
+RDEPEND="
+ =net-voip/yate-5.4.0:=[gsm]
+ bladerf? ( net-wireless/bladerf:= )
+ uhd? ( net-wireless/uhd )
+ virtual/libusb:1"
+DEPEND="virtual/pkgconfig
+ ${RDEPEND}"
+
+if [[ ${PV} == "9999" ]] ; then
+ inherit subversion
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64 ~arm ~x86"
+ SRC_URI="http://yate.null.ro/tarballs/${PN}4/yate-bts-${PV}-1.tar.gz"
+ S="${WORKDIR}/yate-bts"
+fi
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-dont-mess-with-cflags.patch
+ epatch "${FILESDIR}"/${PN}-sgsnggsn-inetutils-hostname-fix.diff
+ epatch "${FILESDIR}"/${PN}-bladeRF-transceiver_revert_init_order.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable rad1) \
+ $(use_enable usrp1) \
+ $(use_enable uhd) \
+ $(use_enable bladerf) \
+ $(use_enable cpu_flags_x86_sse3 sse3) \
+ $(use_enable cpu_flags_x86_sse4_1 sse41)
+
+}