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

EAPI=8

inherit cmake

DESCRIPTION="a fork of multimon, decodes multiple digital transmission modes"
HOMEPAGE="https://github.com/EliasOenal/multimon-ng"

if [[ ${PV} == 9999* ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/EliasOenal/multimon-ng.git"
else
	SRC_URI="https://github.com/EliasOenal/multimonNG/archive/${PV}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~amd64 ~arm ~x86"
fi

LICENSE="GPL-2"
SLOT="0"
IUSE="pulseaudio X"

DEPEND="pulseaudio? ( media-libs/libpulse )
		X? ( x11-libs/libX11 )"
RDEPEND="${DEPEND}
		media-sound/sox"

src_prepare() {
	use pulseaudio || sed -i '/find_package( PulseAudio )/d' CMakeLists.txt
	use X || sed -i '/find_package( X11 )/d' CMakeLists.txt
	cmake_src_prepare
}