diff options
author | Sam James <sam@gentoo.org> | 2022-09-10 09:37:05 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-09-10 09:40:33 +0100 |
commit | 867b93036a4a7886fbe0bdc6c92ea5192b9e602a (patch) | |
tree | 7d5e0579b364709df4c9714029ba5d281e823554 /media-libs | |
parent | media-plugins/gst-plugins-flac: add media-libs/flac subslot dep (diff) | |
download | gentoo-867b93036a4a7886fbe0bdc6c92ea5192b9e602a.tar.gz gentoo-867b93036a4a7886fbe0bdc6c92ea5192b9e602a.tar.bz2 gentoo-867b93036a4a7886fbe0bdc6c92ea5192b9e602a.zip |
media-libs/flac: fix subslot (ABI broken), wire up AVX
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/flac/flac-1.4.0-r1.ebuild (renamed from media-libs/flac/flac-1.4.0.ebuild) | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/media-libs/flac/flac-1.4.0.ebuild b/media-libs/flac/flac-1.4.0-r1.ebuild index 2a50c9496016..c986b3faabfc 100644 --- a/media-libs/flac/flac-1.4.0.ebuild +++ b/media-libs/flac/flac-1.4.0-r1.ebuild @@ -5,14 +5,21 @@ EAPI=8 inherit multilib-minimal -DESCRIPTION="free lossless audio encoder and decoder" +DESCRIPTION="Free lossless audio encoder and decoder" HOMEPAGE="https://xiph.org/flac/" SRC_URI="https://downloads.xiph.org/releases/${PN}/${P}.tar.xz" LICENSE="BSD FDL-1.2 GPL-2 LGPL-2.1" -SLOT="0" +# <libFLAC SONAME>-<libFLAC++ SONAME> +SLOT="0/10-12" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x64-solaris ~x86-solaris" -IUSE="+cxx debug ogg cpu_flags_ppc_altivec cpu_flags_ppc_vsx cpu_flags_x86_sse static-libs" +IUSE="+cxx debug ogg cpu_flags_ppc_altivec cpu_flags_ppc_vsx cpu_flags_x86_avx2 cpu_flags_x86_avx cpu_flags_x86_sse static-libs" + +# AVX configure switch is for both AVX & AVX2 +REQUIRED_USE=" + cpu_flags_x86_avx2? ( cpu_flags_x86_avx ) + cpu_flags_x86_avx? ( cpu_flags_x86_avx2 ) +" RDEPEND="ogg? ( media-libs/libogg[${MULTILIB_USEDEP}] )" DEPEND="${RDEPEND}" @@ -30,6 +37,7 @@ multilib_src_configure() { $([[ ${CHOST} == *-darwin* ]] && echo "--disable-asm-optimizations") $(use_enable cpu_flags_ppc_altivec altivec) $(use_enable cpu_flags_ppc_vsx vsx) + $(use_enable cpu_flags_x86_avx avx) $(use_enable cpu_flags_x86_sse sse) $(use_enable cxx cpplibs) $(use_enable debug) |