diff options
Diffstat (limited to 'media-libs/libopenmpt')
-rw-r--r-- | media-libs/libopenmpt/Manifest | 2 | ||||
-rw-r--r-- | media-libs/libopenmpt/libopenmpt-0.6.7.ebuild | 61 |
2 files changed, 63 insertions, 0 deletions
diff --git a/media-libs/libopenmpt/Manifest b/media-libs/libopenmpt/Manifest index 31f49f0566e0..0365b762c2ff 100644 --- a/media-libs/libopenmpt/Manifest +++ b/media-libs/libopenmpt/Manifest @@ -1,3 +1,5 @@ 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 EBUILD libopenmpt-0.6.6.ebuild 1560 BLAKE2B 649dbcde7c2bc9aabf1b50f6d7e232e1173f6669e9b73afb34b9cf6273783f52193dda79aa52d54fc0e502fe3a978bbba79bf04c631d2141b91c8d456e8ec4ac SHA512 35cea07a2a46d8f316455e5115e6388b601bb5fe8218a4460e4b523e4401b8b771d2d1149fbb5f97462bd8361ea842034040d80a40ed91166056f24273288bb0 +EBUILD libopenmpt-0.6.7.ebuild 1565 BLAKE2B 692ceed70667185203b57598f150cf8d325248ea8c854d4bbb13df0e049725260c8de6f3a3334a71a9d063916f8884fc2e59b67889e8b5f89d8971ac9854a114 SHA512 05fd0d28c4ba605082f0e74e2ed7d80f2ae3f8cd1615f2cd9285bc8ec5d8f8837c6a25ec1ea76face7daaa16a65fb30940014e62ac479910af0ba79cb8d12a44 MISC metadata.xml 328 BLAKE2B 25f8b37a7e7885a50e5b7305c9090033c78b1154214e05060c3407f0d27ac436aa3f0da1dff3a5ba1685bef390f1fe99416893aaf59e002921cc3464ce0d2167 SHA512 6686c75dbfcd5a5f9d6ef4d667916f54388180045471f8eb585c7b0d6e03f5d56c3fc892c97851f7453318309a456bbfd877eb240cbf008b71984009d08a8181 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 +} |