blob: fecb72dc5eec23e6fbc7d451266227a0f32305fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit meson-multilib
DESCRIPTION="AudioProcessing library from the webrtc.org codebase"
HOMEPAGE="https://www.freedesktop.org/software/pulseaudio/webrtc-audio-processing/"
SRC_URI="https://freedesktop.org/software/pulseaudio/${PN}/${P}.tar.xz"
LICENSE="BSD"
SLOT="1"
KEYWORDS="amd64 ~ppc64 x86 ~amd64-linux"
IUSE="cpu_flags_arm_neon"
RDEPEND="dev-cpp/abseil-cpp:=[${MULTILIB_USEDEP}]"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}/${PN}-1.3-Add-generic-byte-order-and-pointer-size-detection.patch"
"${FILESDIR}/${PN}-1.3-big-endian-support.patch"
"${FILESDIR}/${PN}-1.3-x86-no-sse.patch"
"${FILESDIR}/${PN}-1.3-musl.patch"
"${FILESDIR}/${PN}-1.3-gcc15-cstdint.patch"
)
DOCS=( AUTHORS NEWS README.md )
multilib_src_configure() {
if [[ ${ABI} == x86 ]] ; then
# bug #921140
local -x CPPFLAGS="${CPPFLAGS} -DPFFFT_SIMD_DISABLE"
fi
local emesonargs=(
-Dneon=$(usex cpu_flags_arm_neon yes no)
)
meson_src_configure
}
|