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

EAPI=8

inherit cmake

DESCRIPTION="A set of C++ classes that provide a common API for realtime MIDI input/output"
HOMEPAGE="https://www.music.mcgill.ca/~gary/rtmidi"
SRC_URI="https://www.music.mcgill.ca/~gary/rtmidi/release/${P}.tar.gz"

LICENSE="RtMidi"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
IUSE="+alsa jack"

DEPEND="
	alsa? ( media-libs/alsa-lib )
	jack? ( virtual/jack )
"
RDEPEND="${DEPEND}"

src_configure() {
	local mycmakeargs=(
		-DRTMIDI_API_ALSA=$(usex alsa)
		-DRTMIDI_API_JACK=$(usex jack)
	)

	cmake_src_configure
}