summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2017-08-26 11:14:52 +0100
committerJames Le Cuirot <chewi@gentoo.org>2017-08-30 22:29:24 +0100
commit88db124b3f3ed7eaaead23a888fbb01dad93eeab (patch)
tree188452a592bae4373c712fe7eeb4e63c67829a6e /media-libs/speex/speex-1.2.0-r1.ebuild
parentprofiles: Mask dev-java/javax-mail (diff)
downloadgentoo-88db124b3f3ed7eaaead23a888fbb01dad93eeab.tar.gz
gentoo-88db124b3f3ed7eaaead23a888fbb01dad93eeab.tar.bz2
gentoo-88db124b3f3ed7eaaead23a888fbb01dad93eeab.zip
media-libs/speex: Use CPU_FLAGS_ARM and fix logic on armv6+ (#617322)
Package-Manager: Portage-2.3.8, Repoman-2.3.2
Diffstat (limited to 'media-libs/speex/speex-1.2.0-r1.ebuild')
-rw-r--r--media-libs/speex/speex-1.2.0-r1.ebuild19
1 files changed, 15 insertions, 4 deletions
diff --git a/media-libs/speex/speex-1.2.0-r1.ebuild b/media-libs/speex/speex-1.2.0-r1.ebuild
index 138ae9c759b9..bf424f56d190 100644
--- a/media-libs/speex/speex-1.2.0-r1.ebuild
+++ b/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() {