diff options
author | Azamat H. Hackimov <azamat.hackimov@gmail.com> | 2024-04-11 18:46:50 +0300 |
---|---|---|
committer | Yixun Lan <dlan@gentoo.org> | 2024-04-11 22:16:17 +0000 |
commit | 10b3a6a1216f24cdbe7d0d9e152d5bbd7a03257c (patch) | |
tree | 5a1bacd55b466b7ece280fdc21dec4d4abf9cc05 /media-sound/wildmidi | |
parent | app-arch/upx-bin: drop 4.2.2 (diff) | |
download | gentoo-10b3a6a1216f24cdbe7d0d9e152d5bbd7a03257c.tar.gz gentoo-10b3a6a1216f24cdbe7d0d9e152d5bbd7a03257c.tar.bz2 gentoo-10b3a6a1216f24cdbe7d0d9e152d5bbd7a03257c.zip |
media-sound/wildmidi: add 0.4.6
Closes: https://github.com/gentoo/gentoo/pull/36213
Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'media-sound/wildmidi')
-rw-r--r-- | media-sound/wildmidi/Manifest | 1 | ||||
-rw-r--r-- | media-sound/wildmidi/metadata.xml | 1 | ||||
-rw-r--r-- | media-sound/wildmidi/wildmidi-0.4.6.ebuild | 59 |
3 files changed, 61 insertions, 0 deletions
diff --git a/media-sound/wildmidi/Manifest b/media-sound/wildmidi/Manifest index 84611232756e..4c5d4869e7bb 100644 --- a/media-sound/wildmidi/Manifest +++ b/media-sound/wildmidi/Manifest @@ -1 +1,2 @@ DIST wildmidi-0.4.5.tar.gz 197793 BLAKE2B a0b43e19b4e4ced6c4f536dd5e1ac313acd26ad0c3c9deed7068181666a175f4dfdf5cb522d70fdaf0636cc4b3b1af3cedfda54a6c048b05e828a4d1ad185b77 SHA512 0229914ecc60091b649b790a82ad5e755a2b9dfab7443fb3e3c19f4ae64b82817cafe74d78c27f05c68c3c8fb30092c96da732d27ff82fbd7dd7d577facc23d6 +DIST wildmidi-0.4.6.tar.gz 199971 BLAKE2B 797d50e9e1a4ca52c6ddf610964dfa993833d7c78cbe12d333364e29940af1e334ef764730e94b1f09b3d5930e46fa1c5c4e8070026bf7b892dcdbdb9f0af1f6 SHA512 b7259578c1b334de13b49e27aef32ad43e41bc04f569601b765ecea789b8da536d07afdb581986b7c91de552db2a625b13d061e52a2c8c51652f3cf3d1a30000 diff --git a/media-sound/wildmidi/metadata.xml b/media-sound/wildmidi/metadata.xml index e8e34519c583..07338cab867b 100644 --- a/media-sound/wildmidi/metadata.xml +++ b/media-sound/wildmidi/metadata.xml @@ -11,6 +11,7 @@ </maintainer> <use> <flag name="player">Install the wildmidi player</flag> + <flag name="sndio">Enable support for the media-sound/sndio backend</flag> </use> <upstream> <remote-id type="github">Mindwerks/wildmidi</remote-id> diff --git a/media-sound/wildmidi/wildmidi-0.4.6.ebuild b/media-sound/wildmidi/wildmidi-0.4.6.ebuild new file mode 100644 index 000000000000..f21610603570 --- /dev/null +++ b/media-sound/wildmidi/wildmidi-0.4.6.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake readme.gentoo-r1 + +DESCRIPTION="MIDI processing library and player using the GUS patch set" +HOMEPAGE="http://www.mindwerks.net/projects/wildmidi/" +SRC_URI="https://github.com/Mindwerks/${PN}/archive/${P}.tar.gz" + +LICENSE="GPL-3+ LGPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86" +IUSE="+alsa openal oss +player sndio" + +DEPEND=" + player? ( + alsa? ( media-libs/alsa-lib ) + openal? ( media-libs/openal ) + sndio? ( media-sound/sndio ) + ) +" +RDEPEND="${DEPEND} + media-sound/timidity-freepats +" + +DOC_CONTENTS="${PN} is using timidity-freepats for midi playback. + A default configuration file was placed on /etc/${PN}/${PN}.cfg. + For more information please read the ${PN}.cfg manpage." + +S="${WORKDIR}/${PN}-${P}" + +src_prepare() { + cmake_src_prepare + # Fix location of media-sound/timidity-freepats + # See #749759 + sed -i -e "s:midi/freepats:timidity/freepats:" cfg/wildmidi.cfg || die +} + +src_configure() { + local mycmakeargs=( + -DWANT_ALSA=$(usex alsa) + -DWANT_OPENAL=$(usex openal) + -DWANT_OSS=$(usex oss) + -DWANT_PLAYER=$(usex player) + -DWANT_SNDIO=$(usex sndio) + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + + insinto /etc/${PN}/ + doins cfg/wildmidi.cfg + + readme.gentoo_create_doc +} |