commit: 3d783222ff2385cbaea69ce9f62a1fe4484702a4 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> AuthorDate: Fri Feb 4 23:22:28 2022 +0000 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> CommitDate: Fri Feb 4 23:25:00 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d783222
media-libs/rtmidi: initial import RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut and API-specific classes) that provides a common API (Application Programming Interface) for realtime MIDI input/output across Linux (ALSA, JACK), Macintosh OS X (CoreMIDI, JACK), and Windows (Multimedia Library) operating systems. RtMidi significantly simplifies the process of interacting with computer MIDI hardware and software. This package is a needed dep for upcoming 86Box. Note: Package is already present in GURU, but because of maintainer timeout, I am taking that package. Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> media-libs/rtmidi/Manifest | 1 + media-libs/rtmidi/metadata.xml | 15 +++++++++++++++ media-libs/rtmidi/rtmidi-5.0.0.ebuild | 30 ++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+) diff --git a/media-libs/rtmidi/Manifest b/media-libs/rtmidi/Manifest new file mode 100644 index 000000000000..813cd9d331b6 --- /dev/null +++ b/media-libs/rtmidi/Manifest @@ -0,0 +1 @@ +DIST rtmidi-5.0.0.tar.gz 528747 BLAKE2B 7bc8f5d9109cf1fb81ced4ff3afb4a7a42200d7458315c7b33cf966c856ca13959a9ce99012eadf05f65ec1bb93d41b8d2b7c9c66082badb7598c519a7fe2531 SHA512 d2688b6777c09c213e1f6800c67bca6905ac9a0161480e7c167583322a64be086bb47f1452cc45d4a4e2c1d3d3fe626d57b4a187e79c0a20af4f6e23d4a3530a diff --git a/media-libs/rtmidi/metadata.xml b/media-libs/rtmidi/metadata.xml new file mode 100644 index 000000000000..bf25671cc1d3 --- /dev/null +++ b/media-libs/rtmidi/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>conik...@gentoo.org</email> + <name>Conrad Kostecki</name> + </maintainer> + <longdescription> + RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut and API-specific classes) + that provides a common API (Application Programming Interface) for realtime MIDI + input/output across Linux (ALSA, JACK), Macintosh OS X (CoreMIDI, JACK), + and Windows (Multimedia Library) operating systems. + RtMidi significantly simplifies the process of interacting with computer MIDI hardware and software. + </longdescription> +</pkgmetadata> diff --git a/media-libs/rtmidi/rtmidi-5.0.0.ebuild b/media-libs/rtmidi/rtmidi-5.0.0.ebuild new file mode 100644 index 000000000000..1689276e2d89 --- /dev/null +++ b/media-libs/rtmidi/rtmidi-5.0.0.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2022 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 ~x86" +IUSE="+alsa jack" + +DEPEND=" + alsa? ( media-libs/alsa-lib ) + jack? ( virtual/jack ) +" +RDEPEND="${DEPEND}" + +src_configure() { + mycmakeargs=( + -DRTMIDI_API_ALSA=$(usex alsa) + -DRTMIDI_API_JACK=$(usex jack) + ) + + cmake_src_configure +}