summaryrefslogtreecommitdiff
blob: e1962c0b6c2ee7bd61411528e217b72f5933f82c (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
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit cmake

DESCRIPTION="High-level XTRX API library"
HOMEPAGE="https://github.com/xtrx-sdr/libxtrx"
LICENSE="LGPL-2.1"
SLOT="0/${PV}"

if [[ ${PV} =~ "9999" ]]; then
	EGIT_REPO_URI="https://github.com/xtrx-sdr/libxtrx.git"
	inherit git-r3
else
	COMMIT="acb0b1cf7ab92744034767a04c1d4b4c281b840f"
	SRC_URI="https://github.com/xtrx-sdr/libxtrx/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
	S="${WORKDIR}/${PN}-${COMMIT}"
	KEYWORDS="~amd64 ~x86"
fi

IUSE=""

RDEPEND="
		net-wireless/libxtrxll:=
		net-wireless/libxtrxdsp:=
		net-wireless/liblms7002m:=
"
#		soapy? ( net-wireless/soapysdr )
DEPEND="${RDEPEND}"

src_configure() {
	#fails to build, not sure why
	#-DENABLE_SOAPY="$(usex soapy ON OFF)"
	local mycmakeargs=(
		-DENABLE_SOAPY=OFF
	)
	cmake_src_configure
}