@@ -, +, @@ (#617322) --- media-libs/speex/metadata.xml | 1 - media-libs/speex/speex-1.2.0-r1.ebuild | 19 +++++++++++++++---- 2 files changed, 15 insertions(+), 5 deletions(-) --- a/media-libs/speex/metadata.xml +++ a/media-libs/speex/metadata.xml @@ -9,7 +9,6 @@ cpe:/a:xiph:speex - Enables optimizations for armv5te processors. Enables speex commandline utilities (speexenc, speexdec). Enable VBR support. --- a/media-libs/speex/speex-1.2.0-r1.ebuild +++ a/media-libs/speex/speex-1.2.0-r1.ebuild @@ -14,7 +14,7 @@ SRC_URI="http://downloads.xiph.org/releases/speex/${MY_P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" -IUSE="armv5te cpu_flags_x86_sse static-libs utils +vbr" +IUSE="cpu_flags_arm_v4 cpu_flags_arm_v5 cpu_flags_arm_v6 cpu_flags_x86_sse static-libs utils +vbr" RDEPEND=" utils? ( @@ -41,16 +41,27 @@ src_prepare() { multilib_src_configure() { append-lfs-flags + local \ + ARM4_ARG=--disable-arm4-asm \ + ARM5_ARG=--disable-arm5e-asm + + if use arm && ! use cpu_flags_arm_v6; then + if use cpu_flags_arm_v5; then + ARM5_ARG=--enable-arm5e-asm + elif use cpu_flags_arm_v4; then + ARM4_ARG=--enable-arm4-asm + fi + fi + # Can also be configured without floating point # --enable-fixed-point ECONF_SOURCE="${S}" econf \ $(use_enable static-libs static) \ - $(usex arm $(usex armv5te '--disable-arm4-asm' '--enable-arm4-asm') '--disable-arm4-asm') \ - $(use_enable armv5te arm5e-asm) \ $(use_enable cpu_flags_x86_sse sse) \ $(use_enable vbr) \ $(use_with utils speexdsp) \ - $(use_enable utils binaries) + $(use_enable utils binaries) \ + ${ARM4_ARG} ${ARM5_ARG} } multilib_src_install_all() { --