| 1 |
|
# Copyright 1999-2026 Gentoo Authors
|
|
1 |
# Copyright 1999-2025 Gentoo Authors
|
| 2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
3 |
|
| 4 |
4 |
EAPI=8
|
| 5 |
5 |
|
| 6 |
|
PYTHON_COMPAT=( python3_{10..13} )
|
|
6 |
PYTHON_COMPAT=( python3_{11..14} )
|
| 7 |
7 |
|
| 8 |
8 |
inherit cmake multibuild python-any-r1 toolchain-funcs
|
| 9 |
9 |
|
| 10 |
|
DESCRIPTION="A Fast Fourier Transform (FFT) library that tries to Keep it Simple, Stupid"
|
|
10 |
DESCRIPTION="Fast Fourier Transform (FFT) library that tries to Keep it Simple, Stupid"
|
| 11 |
11 |
HOMEPAGE="https://github.com/mborgerding/kissfft"
|
| 12 |
12 |
|
| 13 |
13 |
if [[ ${PV} == *9999 ]] ; then
|
| ... | ... | |
| 15 |
15 |
inherit git-r3
|
| 16 |
16 |
else
|
| 17 |
17 |
SRC_URI="https://github.com/mborgerding/kissfft/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
| 18 |
|
KEYWORDS="amd64 ~arm arm64 ~riscv x86"
|
|
18 |
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
|
| 19 |
19 |
fi
|
| 20 |
20 |
|
| 21 |
21 |
LICENSE="BSD"
|
| ... | ... | |
| 23 |
23 |
IUSE="alloca cpu_flags_x86_sse double int16 int32 openmp test tools"
|
| 24 |
24 |
RESTRICT="!test? ( test )"
|
| 25 |
25 |
|
|
26 |
RDEPEND="tools? ( media-libs/libpng:= )"
|
| 26 |
27 |
DEPEND="
|
|
28 |
${RDEPEND}
|
| 27 |
29 |
test? (
|
| 28 |
30 |
sci-libs/fftw:3.0
|
| 29 |
31 |
$(python_gen_any_dep '
|
| ... | ... | |
| 33 |
35 |
"
|
| 34 |
36 |
|
| 35 |
37 |
PATCHES=(
|
| 36 |
|
"${FILESDIR}"/${PN}-131.1.0-cross.patch
|
| 37 |
|
"${FILESDIR}"/${PN}-131.1.0-cmake{,4}.patch # bug #957670, PR pending
|
|
38 |
# PR pending https://github.com/mborgerding/kissfft/pull/92
|
|
39 |
"${FILESDIR}"/${PN}-131.1.0-cmake.patch
|
| 38 |
40 |
)
|
| 39 |
41 |
|
| 40 |
42 |
python_check_deps() {
|
| ... | ... | |
| 84 |
86 |
|
| 85 |
87 |
src_install() {
|
| 86 |
88 |
multibuild_foreach_variant cmake_src_install
|
| 87 |
|
|
| 88 |
|
# Add kissfft.pc so pkgconfig kissft --libs is ok
|
| 89 |
|
local float_pc
|
| 90 |
|
float_pc=$(basename "${ED}"/usr/$(get_libdir)/pkgconfig/kissfft-float*.pc)
|
| 91 |
|
[[ -f "${ED}/usr/$(get_libdir)/pkgconfig/${float_pc}" ]] || die
|
| 92 |
|
dosym ${float_pc} /usr/$(get_libdir)/pkgconfig/kissfft.pc
|
| 93 |
89 |
}
|