blob: ab6b7eac6dc45ee8e7ebcf7d69371c33cfadf07d (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit meson multilib-minimal
DESCRIPTION="An audio time-stretching and pitch-shifting library and utility program"
HOMEPAGE="https://www.breakfastquay.com/rubberband/"
SRC_URI="https://breakfastquay.com/files/releases/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~sparc x86"
IUSE="ladspa jni static-libs +programs vamp"
BDEPEND="
virtual/pkgconfig
"
CDEPEND="
media-libs/libsamplerate[${MULTILIB_USEDEP}]
sci-libs/fftw:3.0[${MULTILIB_USEDEP}]
jni? ( >=virtual/jdk-1.8:* )
ladspa? ( media-libs/ladspa-sdk )
programs? ( media-libs/libsndfile )
vamp? ( media-libs/vamp-plugin-sdk[${MULTILIB_USEDEP}] )
"
RDEPEND="${CDEPEND}"
DEPEND="${CDEPEND}"
PATCHES=(
"${FILESDIR}/${P}-build.patch"
)
multilib_src_configure() {
local emesonargs=(
--buildtype=release
-Dfft=fftw
-Dresampler=libsamplerate
-Dstatic=$(usex static-libs true false)
$(meson_use ladspa)
$(meson_use jni)
$(meson_use programs)
$(meson_use vamp)
)
use jni && emesonargs+=(
-Dextra_include_dirs="$(java-config -g JAVA_HOME)/include,$(java-config -g JAVA_HOME)/include/linux"
)
meson_src_configure
}
multilib_src_compile() {
meson_src_compile
}
multilib_src_install() {
meson_src_install
}
multilib_src_install_all() {
! use jni && find "${ED}" -name "*.a" -delete
einstalldocs
}
|