summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRick Farina <zerochaos@gentoo.org>2020-12-18 13:55:28 -0500
committerRick Farina <zerochaos@gentoo.org>2020-12-18 14:41:22 -0500
commit33658e50f87aa15ee8f2e8b69a28e75fae4cda9e (patch)
treedc3fcd89fd4f5dd14fc3d6ddc102b621bed7f5c0 /net-wireless/libxtrxll/libxtrxll-9999.ebuild
parentnet-wireless/libusb3380: xtrx usb support (diff)
downloadgentoo-33658e50f87aa15ee8f2e8b69a28e75fae4cda9e.tar.gz
gentoo-33658e50f87aa15ee8f2e8b69a28e75fae4cda9e.tar.bz2
gentoo-33658e50f87aa15ee8f2e8b69a28e75fae4cda9e.zip
net-wireless/libxtrxll: xtrx hardware support
Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Rick Farina <zerochaos@gentoo.org>
Diffstat (limited to 'net-wireless/libxtrxll/libxtrxll-9999.ebuild')
-rw-r--r--net-wireless/libxtrxll/libxtrxll-9999.ebuild34
1 files changed, 34 insertions, 0 deletions
diff --git a/net-wireless/libxtrxll/libxtrxll-9999.ebuild b/net-wireless/libxtrxll/libxtrxll-9999.ebuild
new file mode 100644
index 000000000000..6e0b7183d221
--- /dev/null
+++ b/net-wireless/libxtrxll/libxtrxll-9999.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+DESCRIPTION="Low-level XTRX hardware abstraction library"
+HOMEPAGE="https://github.com/xtrx-sdr/libxtrxll"
+LICENSE="LGPL-2.1"
+SLOT="0/${PV}"
+
+if [[ ${PV} =~ "9999" ]]; then
+ EGIT_REPO_URI="https://github.com/xtrx-sdr/libxtrxll.git"
+ inherit git-r3
+else
+ COMMIT="1b6eddfbedc700efb6f7e3c3594e43ac6ff29ea4"
+ SRC_URI="https://github.com/xtrx-sdr/libxtrxll/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+ S="${WORKDIR}/${PN}-${COMMIT}"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+IUSE="usb3380"
+
+RDEPEND="usb3380? ( net-wireless/libusb3380 )"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ mycmakeargs=(
+ -DENABLE_PCIE=ON
+ -DENABLE_USB3380="$(usex usb3380 ON OFF)"
+ )
+ cmake_src_configure
+}