summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2015-09-23 16:10:32 +0200
committerAlexis Ballier <aballier@gentoo.org>2015-09-23 16:23:22 +0200
commit587bae3f04a9bc71ba5f3e30ae326308c6b11082 (patch)
tree9fdc8b76cf7c088c2943c03c052ef66a2eda950f /media-libs
parentmedia-sound/spotify: add missing but used use flag (diff)
downloadgentoo-587bae3f04a9bc71ba5f3e30ae326308c6b11082.tar.gz
gentoo-587bae3f04a9bc71ba5f3e30ae326308c6b11082.tar.bz2
gentoo-587bae3f04a9bc71ba5f3e30ae326308c6b11082.zip
media-libs/vamp-plugin-sdk: Convert to multilib.
Package-Manager: portage-2.2.21
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/vamp-plugin-sdk/vamp-plugin-sdk-2.6-r1.ebuild55
1 files changed, 55 insertions, 0 deletions
diff --git a/media-libs/vamp-plugin-sdk/vamp-plugin-sdk-2.6-r1.ebuild b/media-libs/vamp-plugin-sdk/vamp-plugin-sdk-2.6-r1.ebuild
new file mode 100644
index 000000000000..fe06af2c39e0
--- /dev/null
+++ b/media-libs/vamp-plugin-sdk/vamp-plugin-sdk-2.6-r1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit toolchain-funcs eutils multilib multilib-minimal
+
+DESCRIPTION="Audio processing plugin system for plugins that extract descriptive information from audio data"
+HOMEPAGE="http://www.vamp-plugins.org"
+SRC_URI="https://code.soundsoftware.ac.uk/attachments/download/1514/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86"
+IUSE="doc static-libs"
+
+RDEPEND="media-libs/libsndfile"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+
+src_prepare() {
+ multilib_copy_sources
+}
+
+multilib_src_configure() {
+ # multilib for default search paths
+ sed -i -e "s:/usr/lib/vamp:/usr/$(get_libdir)/vamp:" src/vamp-hostsdk/PluginHostAdapter.cpp || die "sed failed"
+ econf
+}
+
+multilib_src_compile() {
+ emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)"
+
+ if multilib_is_native_abi && use doc; then
+ cd build
+ doxygen || die "creating doxygen doc failed"
+ fi
+}
+
+multilib_src_install() {
+ emake DESTDIR="${D}" INSTALL_SDK_LIBS="/usr/$(get_libdir)" INSTALL_PKGCONFIG="/usr/$(get_libdir)/pkgconfig" INSTALL_PLUGINS="/usr/$(get_libdir)/vamp" install
+ multilib_is_native_abi && use doc && dohtml -r build/doc/html/*
+}
+
+multilib_src_install_all() {
+ dodoc README* CHANGELOG
+}
+
+pkg_postinst() {
+ elog ""
+ elog "You might also want to install some Vamp plugins."
+ elog "See media-plugins/vamp-*"
+ elog ""
+}