summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2015-09-23 16:17:21 +0200
committerAlexis Ballier <aballier@gentoo.org>2015-09-23 16:23:22 +0200
commitd05671f5c4950295e3a11d5e37a851c1b181a290 (patch)
tree09abc5dbed83fab82b1812820612c42aa793e793 /media-libs/rubberband
parentmedia-libs/vamp-plugin-sdk: Convert to multilib. (diff)
downloadgentoo-d05671f5c4950295e3a11d5e37a851c1b181a290.tar.gz
gentoo-d05671f5c4950295e3a11d5e37a851c1b181a290.tar.bz2
gentoo-d05671f5c4950295e3a11d5e37a851c1b181a290.zip
media-libs/rubberband: Convert to multilib.
Package-Manager: portage-2.2.21
Diffstat (limited to 'media-libs/rubberband')
-rw-r--r--media-libs/rubberband/rubberband-1.8.1-r1.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/media-libs/rubberband/rubberband-1.8.1-r1.ebuild b/media-libs/rubberband/rubberband-1.8.1-r1.ebuild
new file mode 100644
index 000000000000..45423a7e7449
--- /dev/null
+++ b/media-libs/rubberband/rubberband-1.8.1-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit multilib multilib-minimal
+
+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="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~x86"
+IUSE="static-libs"
+
+RDEPEND="media-libs/vamp-plugin-sdk[${MULTILIB_USEDEP}]
+ media-libs/libsamplerate[${MULTILIB_USEDEP}]
+ media-libs/libsndfile
+ media-libs/ladspa-sdk
+ sci-libs/fftw:3.0[${MULTILIB_USEDEP}]"
+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
+ multilib_copy_sources
+}
+
+multilib_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
+}
+
+multilib_src_install_all() {
+ dodoc CHANGELOG README.txt
+}