summaryrefslogtreecommitdiff
blob: be88f95016e45b9ea0e22916d7ee57f2b6e75670 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5

inherit autotools flag-o-matic git-r3

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
}