blob: 733bd4beb96dbf1c513d2ffd7bc5e90fac4dff51 (
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
57
58
59
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
WX_GTK_VER="3.0"
inherit cmake-utils multilib wxwidgets
DESCRIPTION="Driver and GUI for LMS7002M-based SDR platforms"
HOMEPAGE="https://github.com/myriadrf/LimeSuite"
if [[ ${PV} == 9999* ]]; then
inherit git-r3
SRC_URI=""
EGIT_REPO_URI="git://git.github.com/myriadrf/${PN}.git"
KEYWORDS=""
else
SRC_URI="https://github.com/myriadrf/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="GPL-2"
SLOT="0"
IUSE="wxwidgets novena +soapysdr examples "
DEPEND="
virtual/libusb:1
dev-db/sqlite:3
wxwidgets? (
x11-libs/wxGTK:${WX_GTK_VER}[X,opengl]
>=media-libs/freeglut-3.0.0
)
soapysdr? ( net-wireless/soapysdr )"
RDEPEND="${DEPEND}"
src_unpack() {
if [[ ${PV} == 9999* ]]; then
git-r3_src_unpack
else
default
fi
}
src_configure() {
setup-wxwidgets
mycmakeargs=(
-DENABLE_EXAMPLES=$(usex examples)
-DENABLE_GUI=$(usex wxwidgets)
)
cmake-utils_src_configure
}
pkg_postinst() {
elog "Only users in the usb group can capture."
elog "Just run 'gpasswd -a <USER> usb', then have <USER> re-login."
}
|