diff options
author | Sam James <sam@gentoo.org> | 2022-11-22 03:17:07 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-11-22 03:17:24 +0000 |
commit | 754c8b4df67d9e16962c4d41c5d4730218c86346 (patch) | |
tree | 47ed73501ecc1a5686e5348f05ab5dc442671e48 /media-libs/opusfile/opusfile-0.12-r1.ebuild | |
parent | media-libs/libopusenc: EAPI 8; fix configure w/ clang 16 (diff) | |
download | gentoo-754c8b4df67d9e16962c4d41c5d4730218c86346.tar.gz gentoo-754c8b4df67d9e16962c4d41c5d4730218c86346.tar.bz2 gentoo-754c8b4df67d9e16962c4d41c5d4730218c86346.zip |
media-libs/opusfile: EAPI 8, fix configure w/ clang 16
Closes: https://bugs.gentoo.org/879707
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/opusfile/opusfile-0.12-r1.ebuild')
-rw-r--r-- | media-libs/opusfile/opusfile-0.12-r1.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/media-libs/opusfile/opusfile-0.12-r1.ebuild b/media-libs/opusfile/opusfile-0.12-r1.ebuild new file mode 100644 index 000000000000..0aab5f8e89cc --- /dev/null +++ b/media-libs/opusfile/opusfile-0.12-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="A high-level decoding and seeking API for .opus files" +HOMEPAGE="https://www.opus-codec.org/" +SRC_URI="https://downloads.xiph.org/releases/opus/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="doc fixed-point +float +http static-libs" + +RDEPEND=" + media-libs/libogg + media-libs/opus + http? ( + dev-libs/openssl:= + ) +" +DEPEND="${RDEPEND}" +BDEPEND="doc? ( app-doc/doxygen )" + +REQUIRED_USE="^^ ( fixed-point float )" + +PATCHES=( + "${FILESDIR}"/${PN}-0.12-configure-clang16.patch +) + +src_prepare() { + default + + # Drop once configure patch merged + eautoreconf +} + +src_configure() { + local myeconfargs=( + $(use_enable doc) + $(use_enable fixed-point)\ + $(use_enable float) + $(use_enable http) + $(use_enable static-libs static) + ) + econf "${myeconfargs[@]}" +} + +src_install() { + default + find "${ED}" -type f -name "*.la" -delete || die +} |