You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-libs/rubberband/rubberband-1.8.1.ebuild

45 lines
1.2 KiB

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/rubberband/rubberband-1.8.1.ebuild,v 1.2 2013/07/21 13:08:10 ago Exp $
EAPI=5
inherit multilib
DESCRIPTION="An audio time-stretching and pitch-shifting library and utility program"
HOMEPAGE="http://www.breakfastquay.com/rubberband/"
SRC_URI="http://code.breakfastquay.com/attachments/download/34/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc ~x86"
IUSE="static-libs"
RDEPEND="media-libs/vamp-plugin-sdk
media-libs/libsamplerate
media-libs/libsndfile
media-libs/ladspa-sdk
sci-libs/fftw:3.0"
DEPEND="${RDEPEND}
virtual/pkgconfig"
src_prepare() {
if ! use static-libs ; then
sed -e '/^all:/s/$(STATIC_TARGET)//' \
-e '/^\tcp $(STATIC_TARGET)/d' \
-i Makefile.in || die
fi
}
src_install() {
emake INSTALL_BINDIR="${D}/usr/bin" \
INSTALL_INCDIR="${D}/usr/include/rubberband" \
INSTALL_LIBDIR="${D}/usr/$(get_libdir)" \
INSTALL_VAMPDIR="${D}/usr/$(get_libdir)/vamp" \
INSTALL_LADSPADIR="${D}/usr/$(get_libdir)/ladspa" \
INSTALL_LRDFDIR="${D}/usr/share/ladspa/rdf" \
INSTALL_PKGDIR="${D}/usr/$(get_libdir)/pkgconfig" \
install
dodoc CHANGELOG README.txt
}