| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/vamp-plugin-sdk/vamp-plugin-sdk-2.3.ebuild,v 1.8 2012/08/11 14:05:28 maekke Exp $
|
| 4 |
|
| 5 |
inherit toolchain-funcs eutils multilib
|
| 6 |
|
| 7 |
DESCRIPTION="Audio processing plugin system for plugins that extract descriptive information from audio data"
|
| 8 |
HOMEPAGE="http://www.vamp-plugins.org"
|
| 9 |
SRC_URI="http://code.soundsoftware.ac.uk/attachments/download/224/${P}.tar.gz"
|
| 10 |
|
| 11 |
LICENSE="BSD"
|
| 12 |
SLOT="0"
|
| 13 |
KEYWORDS="amd64 ~arm hppa ~mips ppc ppc64 x86"
|
| 14 |
IUSE="doc"
|
| 15 |
|
| 16 |
RDEPEND="media-libs/libsndfile"
|
| 17 |
DEPEND="${RDEPEND}
|
| 18 |
doc? ( app-doc/doxygen )"
|
| 19 |
|
| 20 |
src_unpack() {
|
| 21 |
unpack ${A}
|
| 22 |
cd "${S}"
|
| 23 |
# epatch "${FILESDIR}"/${PN}-2.0-gcc44.patch
|
| 24 |
# multilib for default search paths
|
| 25 |
sed -i -e "s:/usr/lib/vamp:/usr/$(get_libdir)/vamp:" src/vamp-hostsdk/PluginHostAdapter.cpp || die "sed failed"
|
| 26 |
}
|
| 27 |
|
| 28 |
src_compile() {
|
| 29 |
tc-export CXX AR RANLIB
|
| 30 |
econf
|
| 31 |
emake || die "emake failed"
|
| 32 |
if use doc; then
|
| 33 |
cd build
|
| 34 |
doxygen || die "creating doxygen doc failed"
|
| 35 |
fi
|
| 36 |
}
|
| 37 |
|
| 38 |
src_install() {
|
| 39 |
emake DESTDIR="${D}" INSTALL_SDK_LIBS="/usr/$(get_libdir)" INSTALL_PKGCONFIG="/usr/$(get_libdir)/pkgconfig" INSTALL_PLUGINS="/usr/$(get_libdir)/vamp" install || die "emake install failed"
|
| 40 |
dodoc README* CHANGELOG
|
| 41 |
use doc && dohtml -r build/doc/html/*
|
| 42 |
}
|
| 43 |
|
| 44 |
pkg_postinst() {
|
| 45 |
elog ""
|
| 46 |
elog "You might also want to install some Vamp plugins."
|
| 47 |
elog "See media-plugins/vamp-*"
|
| 48 |
elog ""
|
| 49 |
}
|