summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/vamp-plugin-sdk')
-rw-r--r--media-libs/vamp-plugin-sdk/Manifest1
-rw-r--r--media-libs/vamp-plugin-sdk/vamp-plugin-sdk-2.10.ebuild74
-rw-r--r--media-libs/vamp-plugin-sdk/vamp-plugin-sdk-2.7.1-r1.ebuild (renamed from media-libs/vamp-plugin-sdk/vamp-plugin-sdk-2.7.1.ebuild)3
3 files changed, 78 insertions, 0 deletions
diff --git a/media-libs/vamp-plugin-sdk/Manifest b/media-libs/vamp-plugin-sdk/Manifest
index 23958ef312e6..1d04e052359b 100644
--- a/media-libs/vamp-plugin-sdk/Manifest
+++ b/media-libs/vamp-plugin-sdk/Manifest
@@ -1 +1,2 @@
DIST vamp-plugin-sdk-2.7.1.tar.gz 306956 BLAKE2B d8e765f54cb3544efcca4b08241afc070026adeaa4c0273cc01dae26e0ad60a976bc443184cc83413c6e32f4cf6fbee6590954e7ab12872993abb78c2541653f SHA512 91dd7cae72334718dcbdac06b1ffa3f3ba76e977b82b928ab634d9982aa15ca4e30978a7778215753c61e56831077d7634d24e65e468ab6a8a87a5957fb09bf3
+DIST {P}.tar.gz 316165 BLAKE2B ba206443d4a6f94f56c1e3b7e8f47b7c8f893d2df6601f9d26a613d56bf58fee7d0a4a996964aa0690ecf69fd1d686db28165e73a0d37880a7891c67ecaaae5f SHA512 67a71e5396eab5ce9503e9111b4cfc16fc9755cf6ae2d8dfc99ed29fd91e75eaf0de9a9c55ce8f7751f04c235eb86430856eff18f02adde54f1850a87c917ef0
diff --git a/media-libs/vamp-plugin-sdk/vamp-plugin-sdk-2.10.ebuild b/media-libs/vamp-plugin-sdk/vamp-plugin-sdk-2.10.ebuild
new file mode 100644
index 000000000000..146ca3611ef4
--- /dev/null
+++ b/media-libs/vamp-plugin-sdk/vamp-plugin-sdk-2.10.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs multilib-minimal
+
+DESCRIPTION="Audio processing system for plugins to extract information from audio data"
+HOMEPAGE="https://www.vamp-plugins.org"
+SRC_URI="https://github.com/c4dm/${PN}/archive/${PN}-v${PV}.tar.gz -> {P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="doc"
+
+RDEPEND="media-libs/libsndfile:0=[${MULTILIB_USEDEP}]"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen )
+"
+
+S="${WORKDIR}/${PN}-${PN}-v${PV}"
+
+src_prepare() {
+ default
+ multilib_copy_sources
+}
+
+multilib_src_configure() {
+ # multilib for default search paths
+ sed -i -e "s:/usr/lib/vamp:${EPREFIX}/usr/$(get_libdir)/vamp:" \
+ src/vamp-hostsdk/PluginHostAdapter.cpp || die
+ econf
+}
+
+multilib_src_compile() {
+ emake \
+ AR="$(tc-getAR)" \
+ RANLIB="$(tc-getRANLIB)"
+
+ if multilib_is_native_abi && use doc; then
+ cd build || die
+ doxygen || die "creating doxygen doc failed"
+ HTML_DOCS=( "${BUILD_DIR}"/build/doc/html/. )
+ fi
+}
+
+multilib_src_install() {
+ emake \
+ DESTDIR="${D}" \
+ INSTALL_SDK_LIBS="${EPREFIX}"/usr/$(get_libdir) \
+ INSTALL_PKGCONFIG="${EPREFIX}"/usr/$(get_libdir)/pkgconfig \
+ INSTALL_PLUGINS="${EPREFIX}"/usr/$(get_libdir)/vamp \
+ install
+
+ # fix .pc files
+ sed -Ei "s/lib$/$(get_libdir)/g" "${D}"/usr/$(get_libdir)/pkgconfig/*.pc
+}
+
+multilib_src_install_all() {
+ einstalldocs
+
+ # don't want static archives, #474768
+ find "${D}" -name '*.a' -delete || die
+}
+
+pkg_postinst() {
+ elog
+ elog "You might also want to install some Vamp plugins."
+ elog "See media-plugins/vamp-*"
+ elog
+}
diff --git a/media-libs/vamp-plugin-sdk/vamp-plugin-sdk-2.7.1.ebuild b/media-libs/vamp-plugin-sdk/vamp-plugin-sdk-2.7.1-r1.ebuild
index 02b99f969116..47ba03d2c003 100644
--- a/media-libs/vamp-plugin-sdk/vamp-plugin-sdk-2.7.1.ebuild
+++ b/media-libs/vamp-plugin-sdk/vamp-plugin-sdk-2.7.1-r1.ebuild
@@ -49,6 +49,9 @@ multilib_src_install() {
INSTALL_PKGCONFIG="${EPREFIX}"/usr/$(get_libdir)/pkgconfig \
INSTALL_PLUGINS="${EPREFIX}"/usr/$(get_libdir)/vamp \
install
+
+ # fix .pc files
+ sed -Ei "s/lib$/$(get_libdir)/g" "${D}"/usr/$(get_libdir)/pkgconfig/*.pc
}
multilib_src_install_all() {