diff options
Diffstat (limited to 'net-wireless/osmocom-bb/osmocom-bb-9999.ebuild')
-rw-r--r-- | net-wireless/osmocom-bb/osmocom-bb-9999.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/net-wireless/osmocom-bb/osmocom-bb-9999.ebuild b/net-wireless/osmocom-bb/osmocom-bb-9999.ebuild new file mode 100644 index 000000000000..e8413a907551 --- /dev/null +++ b/net-wireless/osmocom-bb/osmocom-bb-9999.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit git-2 autotools flag-o-matic + +DESCRIPTION="OsmocomBB MS-side GSM Protocol stack (L1, L2, L3) excluding firmware" +HOMEPAGE="http://bb.osmocom.org" +EGIT_REPO_URI="git://git.osmocom.org/osmocom-bb.git" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="+transmit" + +DEPEND="net-libs/libosmocore" +RDEPEND="${DEPEND}" + +src_prepare() { + use transmit && append-cflags "-DCONFIG_TX_ENABLE" + + cd src/host/osmocon && eautoreconf && cd ../../.. || die + cd src/host/gsmmap && eautoreconf && cd ../../.. || die + cd src/host/layer23 && eautoreconf && cd ../../.. || die +} + +src_configure() { + cd src/host/osmocon && econf && cd ../../.. || die + cd src/host/gsmmap && econf && cd ../../.. || die + cd src/host/layer23 && econf && cd ../../.. || die +} + +src_compile() { + cd src/host/osmocon && emake && cd ../../.. || die + cd src/host/gsmmap && emake && cd ../../.. || die + cd src/host/layer23 && emake && cd ../../.. || die + +} + +src_install() { + cd src/host/osmocon && emake install DESTDIR="${D}" && cd ../../.. || die + cd src/host/gsmmap && emake install DESTDIR="${D}" && cd ../../.. || die + cd src/host/layer23 && emake install DESTDIR="${D}" && cd ../../.. || die +} |