blob: 3a6cfca0a2c9665bc22aa3930fa893374a805937 (
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
64
65
66
67
68
69
70
71
72
73
74
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit multilib-minimal toolchain-funcs
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 static-libs +programs vamp"
BDEPEND="
virtual/pkgconfig
"
CDEPEND="
media-libs/libsamplerate[${MULTILIB_USEDEP}]
media-libs/libsndfile
sci-libs/fftw:3.0[${MULTILIB_USEDEP}]
ladspa? ( media-libs/ladspa-sdk )
vamp? ( media-libs/vamp-plugin-sdk[${MULTILIB_USEDEP}] )
"
RDEPEND="${CDEPEND}"
DEPEND="${CDEPEND}"
PATCHES=(
"${FILESDIR}/${P}-makefile.patch"
)
src_prepare() {
default
if ! use static-libs ; then
sed -e '/^all:/s/$(STATIC_TARGET)//' \
-e '/^\tcp $(STATIC_TARGET)/d' \
-i Makefile.in || die
fi
sed -e '/cp -f.*JNI_TARGET/d' -i Makefile.in || die
multilib_copy_sources
}
multilib_src_configure() {
econf \
$(use_enable programs ) \
$(use_enable ladspa ) \
$(use_enable vamp )
}
multilib_src_compile() {
emake AR="$(tc-getAR)"
}
multilib_src_install() {
# fix libdir in .pc file
sed -iE "s%/lib$%/$(get_libdir)%g" "${BUILD_DIR}/rubberband.pc.in" || die "Failed to fix .pc file"
emake INSTALL_BINDIR="${ED}/usr/bin" \
INSTALL_INCDIR="${ED}/usr/include/rubberband" \
INSTALL_LIBDIR="${ED}/usr/$(get_libdir)" \
INSTALL_VAMPDIR="${ED}/usr/$(get_libdir)/vamp" \
INSTALL_LADSPADIR="${ED}/usr/$(get_libdir)/ladspa" \
INSTALL_LRDFDIR="${ED}/usr/share/ladspa/rdf" \
INSTALL_PKGDIR="${ED}/usr/$(get_libdir)/pkgconfig" \
install
}
multilib_src_install_all() {
einstalldocs
}
|