1 # Copyright 1999-2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit toolchain-funcs multilib-minimal
8 DESCRIPTION="Audio processing system for plugins to extract information from audio data"
9 HOMEPAGE="https://www.vamp-plugins.org"
10 SRC_URI="https://github.com/c4dm/${PN}/archive/${PN}-v${PV}.tar.gz -> ${P}.tar.gz"
14 KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~sparc x86"
17 RDEPEND="media-libs/libsndfile:0=[${MULTILIB_USEDEP}]"
21 doc? ( app-text/doxygen )
24 S="${WORKDIR}/${PN}-${PN}-v${PV}"
31 multilib_src_configure() {
32 MAKEOPTS+=" -j1" # bug #943866
34 # multilib for default search paths
35 sed -i -e "s:/usr/lib/vamp:${EPREFIX}/usr/$(get_libdir)/vamp:" \
36 src/vamp-hostsdk/PluginHostAdapter.cpp || die
40 multilib_src_compile() {
43 RANLIB="$(tc-getRANLIB)"
45 if multilib_is_native_abi && use doc; then
47 doxygen || die "creating doxygen doc failed"
48 HTML_DOCS=( "${BUILD_DIR}"/build/doc/html/. )
52 multilib_src_install() {
55 INSTALL_SDK_LIBS="${EPREFIX}"/usr/$(get_libdir) \
56 INSTALL_PKGCONFIG="${EPREFIX}"/usr/$(get_libdir)/pkgconfig \
57 INSTALL_PLUGINS="${EPREFIX}"/usr/$(get_libdir)/vamp \
61 sed -Ei "s/lib$/$(get_libdir)/g" "${D}"/usr/$(get_libdir)/pkgconfig/*.pc
64 multilib_src_install_all() {
67 # don't want static archives, #474768
68 find "${D}" -name '*.a' -delete || die
73 elog "You might also want to install some Vamp plugins."
74 elog "See media-plugins/vamp-*"