diff options
author | James Le Cuirot <chewi@gentoo.org> | 2023-01-13 23:27:11 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2023-01-13 23:32:36 +0000 |
commit | a13a8f04a4298f329381cf60d100df58c32a7465 (patch) | |
tree | a9bbbe84027ccd8d2fee1dbd47f80bc8dc49916e /media-libs | |
parent | dev-util/patchelf: Version bump to 0.17.2 (diff) | |
download | gentoo-a13a8f04a4298f329381cf60d100df58c32a7465.tar.gz gentoo-a13a8f04a4298f329381cf60d100df58c32a7465.tar.bz2 gentoo-a13a8f04a4298f329381cf60d100df58c32a7465.zip |
media-libs/libopenmpt: Version bump to 0.6.7
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/libopenmpt/Manifest | 1 | ||||
-rw-r--r-- | media-libs/libopenmpt/libopenmpt-0.6.7.ebuild | 61 |
2 files changed, 62 insertions, 0 deletions
diff --git a/media-libs/libopenmpt/Manifest b/media-libs/libopenmpt/Manifest index 0b2df7a26279..01ea5f9fd653 100644 --- a/media-libs/libopenmpt/Manifest +++ b/media-libs/libopenmpt/Manifest @@ -1 +1,2 @@ DIST libopenmpt-0.6.6+release.autotools.tar.gz 1554516 BLAKE2B 21e2fc4252431235608a52d3a321e26eae5d45f2328ff3e3604d84c537d72e07d72346c504901b000af04dfc52b1dd91c79f576be4331ea8685e534a174b61cd SHA512 b634c556f13dc51d1008f4216936a9b7cab25a6fb0d5218da0b692ec848de21905ed1981223ac9ecdebea9ce6c5376e91ff92e1655dd0be491fce0114e3230bf +DIST libopenmpt-0.6.7+release.autotools.tar.gz 1556248 BLAKE2B ef1a30840416c77c3872fa3bf10db4b8a931074328f3cfd87ef368379bbac2a69b32ab41e43649fa40e44ff38662173f6dd50621d276d05d4560105bd8a96b4f SHA512 5b6a52491fee74cf3cddbf28edb5ced0e8115a5eb3fb53bf285a33fabfc1c8aa940c729a95f169c17163b4aedaa5a26614b3a85a22dba60bd10ad5d7cc94846e diff --git a/media-libs/libopenmpt/libopenmpt-0.6.7.ebuild b/media-libs/libopenmpt/libopenmpt-0.6.7.ebuild new file mode 100644 index 000000000000..a2d41dfe03de --- /dev/null +++ b/media-libs/libopenmpt/libopenmpt-0.6.7.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit multilib-minimal + +MY_P="libopenmpt-${PV}+release.autotools" +DESCRIPTION="Library to decode tracked music files (modules)" +HOMEPAGE="https://lib.openmpt.org/libopenmpt/" +SRC_URI="https://lib.openmpt.org/files/libopenmpt/src/${MY_P}.tar.gz" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" +IUSE="examples mp3 ogg static-libs test vorbis zlib" +RESTRICT="!test? ( test )" + +RDEPEND=" + mp3? ( media-sound/mpg123[${MULTILIB_USEDEP}] ) + ogg? ( media-libs/libogg[${MULTILIB_USEDEP}] ) + vorbis? ( media-libs/libvorbis[${MULTILIB_USEDEP}] ) + zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] ) +" + +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +S="${WORKDIR}/${MY_P}" +ECONF_SOURCE="${S}" + +multilib_src_configure() { + # A lot of these optional dependencies relate to openmpt123, which + # we package separately, so we disable them here. + econf \ + $(use_enable static-libs static) \ + --disable-openmpt123 \ + --disable-examples \ + $(use_enable test tests) \ + --disable-doxygen-doc \ + $(use_with zlib) \ + $(use_with mp3 mpg123) \ + $(use_with ogg) \ + $(use_with vorbis) \ + $(use_with vorbis vorbisfile) \ + --without-pulseaudio \ + --without-portaudio \ + --without-portaudiocpp \ + --without-sdl2 \ + --without-sndfile \ + --without-flac +} + +multilib_src_install_all() { + rm -f \ + "${ED}"/usr/*/*.la \ + "${ED}"/usr/share/doc/${P}/LICENSE || die + + if ! use examples; then + rm -r "${ED}"/usr/share/doc/${P}/examples || die + fi +} |