diff options
author | James Le Cuirot <chewi@gentoo.org> | 2022-03-15 23:37:26 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2022-03-15 23:39:01 +0000 |
commit | b246d623d11ef80cee57fa98a51fb2c01426e212 (patch) | |
tree | 7c9f3b57d5d3f94e20e84bce0a654ce82918f889 /media-sound | |
parent | media-libs/munt-mt32emu: Version bump to 2.6.1, EAPI 8 (diff) | |
download | gentoo-b246d623d11ef80cee57fa98a51fb2c01426e212.tar.gz gentoo-b246d623d11ef80cee57fa98a51fb2c01426e212.tar.bz2 gentoo-b246d623d11ef80cee57fa98a51fb2c01426e212.zip |
media-sound/munt-mt32emu-alsadrv: Version bump to 2.6.1, EAPI 8
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/munt-mt32emu-alsadrv/Manifest | 1 | ||||
-rw-r--r-- | media-sound/munt-mt32emu-alsadrv/munt-mt32emu-alsadrv-2.6.1.ebuild | 52 |
2 files changed, 53 insertions, 0 deletions
diff --git a/media-sound/munt-mt32emu-alsadrv/Manifest b/media-sound/munt-mt32emu-alsadrv/Manifest index c34079940fcf..d1c9e887b9a7 100644 --- a/media-sound/munt-mt32emu-alsadrv/Manifest +++ b/media-sound/munt-mt32emu-alsadrv/Manifest @@ -1 +1,2 @@ +DIST libmt32emu_2_6_1.tar.gz 572860 BLAKE2B 3ba8ec7d9b73a83341eafc990e2c5a2c5c439564ad43ac3d6f9ab3325225c863418fd901e5424e57343b40cb8cc873345003fd299d6a22d02ff3872681ff164e SHA512 888c417cce04b31b45858220a6615105611471567be8cce91c2053885c4b677a09667310bfab702bbf62f4b7230bb7c2357cb480087f6e4daecbd58e464e4212 DIST munt_2_3_0.tar.gz 418703 BLAKE2B d9c4290f11f4114b26aa45d6591c04a73d56981e7f618c1466db81fd35be3588b2853fb60b9cf65dd523ce8ea120a5a187bd805b58ba2f75719d460929c2e4e1 SHA512 87fe4891628ea33967270fe3c6c3840e40deb14bd7c8d61490d4c0057438af6bc0099c10e24e813ef1613ca9cc9fc1567a0340c7ea1f4254b209f7fc99c8c7a1 diff --git a/media-sound/munt-mt32emu-alsadrv/munt-mt32emu-alsadrv-2.6.1.ebuild b/media-sound/munt-mt32emu-alsadrv/munt-mt32emu-alsadrv-2.6.1.ebuild new file mode 100644 index 000000000000..63bdf8498eeb --- /dev/null +++ b/media-sound/munt-mt32emu-alsadrv/munt-mt32emu-alsadrv-2.6.1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs prefix + +MY_P="libmt32emu_${PV//./_}" +DESCRIPTION="ALSA MIDI driver for emulating the Roland MT-32, CM-32L, CM-64 and LAPC-I" +HOMEPAGE="https://github.com/munt/munt" +SRC_URI="https://github.com/munt/munt/archive/${MY_P}.tar.gz" +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="X" + +DEPEND="media-libs/alsa-lib + >=media-libs/munt-mt32emu-2.6.0 + X? ( + x11-libs/libX11 + x11-libs/libXpm + x11-libs/libXt + )" + +RDEPEND="${DEPEND}" + +S="${WORKDIR}/munt-${MY_P}/mt32emu_alsadrv" +DATA="/usr/share/mt32-rom-data" + +src_prepare() { + default + + # Fix MT32 ROM path. + hprefixify src/alsadrv.cpp +} + +src_compile() { + emake mt32d CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS} ${LDFLAGS}" + use X && emake xmt32 CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS} ${LDFLAGS}" +} + +src_install() { + dobin mt32d + use X && dobin xmt32 + dodoc {AUTHORS,README}.txt + keepdir "${DATA}" +} + +pkg_postinst() { + einfo "MT32_CONTROL.ROM and MT32_PCM.ROM cannot be legally included so you must" + einfo "obtain them and place them in ${EPREFIX}${DATA}." +} |