summaryrefslogtreecommitdiff
blob: e6049347971ef433791630873d40824fa3c58a69 (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
46
47
48
49
50
51
52
53
54
55
56
# Copyright 2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit qmake-utils

DESCRIPTION="Multimode SDR experimentation GUI for GNUradio"
HOMEPAGE="http://qradiolink.org"

LICENSE="GPL-3"
SLOT="0"
if [ "${PV}" = "9999" ]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/kantooon/qradiolink.git"
else
	KEYWORDS="~amd64"
	SRC_URI="https://github.com/kantooon/qradiolink/archive/${PV}.tar.gz -> ${P}.tar.gz"
fi
IUSE=""

DEPEND="dev-libs/libconfig[cxx]
	net-wireless/gnuradio:=[analog,audio,digital,fec,filter,qt5]
	net-wireless/gr-osmosdr:=
	dev-libs/boost:=
	dev-libs/protobuf:=
	media-libs/opus:=
	media-sound/pulseaudio
	media-libs/codec2:=
	media-sound/gsm:=
	media-libs/libjpeg-turbo:=
	media-libs/speexdsp:=
	dev-qt/qtwidgets:5=
	dev-qt/qtgui:5=
	dev-qt/qtnetwork:5=
	dev-qt/qtsql:5=
	dev-qt/qtcore:5=
"
RDEPEND="${DEPEND}"
BDEPEND=""

src_prepare() {
	default
	eapply "${FILESDIR}/find-qwt.patch"
	cd ext/ || die
	protoc --cpp_out=. Mumble.proto
	protoc --cpp_out=. QRadioLink.proto
}

src_configure() {
	eqmake5
}

src_install() {
	dobin qradiolink
}