summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2013-11-30 17:11:39 +0000
committerMichał Górny <mgorny@gentoo.org>2013-11-30 17:11:39 +0000
commitcee968bae7c382cd4f96049dc7222b24f503a5c0 (patch)
tree01d02c44a2f7e70e56d2551905111738bfb2fde6
parentx86 stable wrt bug #488946 (diff)
downloadgentoo-2-cee968bae7c382cd4f96049dc7222b24f503a5c0.tar.gz
gentoo-2-cee968bae7c382cd4f96049dc7222b24f503a5c0.tar.bz2
gentoo-2-cee968bae7c382cd4f96049dc7222b24f503a5c0.zip
Introduce multilib support.
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
-rw-r--r--media-libs/libao/ChangeLog9
-rw-r--r--media-libs/libao/libao-1.1.0-r2.ebuild51
2 files changed, 58 insertions, 2 deletions
diff --git a/media-libs/libao/ChangeLog b/media-libs/libao/ChangeLog
index 49ad9bb53b66..6b66e8707732 100644
--- a/media-libs/libao/ChangeLog
+++ b/media-libs/libao/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-libs/libao
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libao/ChangeLog,v 1.115 2012/09/18 11:24:38 radhermit Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libao/ChangeLog,v 1.116 2013/11/30 17:11:39 mgorny Exp $
+
+*libao-1.1.0-r2 (30 Nov 2013)
+
+ 30 Nov 2013; Michał Górny <mgorny@gentoo.org> +libao-1.1.0-r2.ebuild:
+ Introduce multilib support.
18 Sep 2012; Tim Harder <radhermit@gentoo.org> -libao-1.0.0-r1.ebuild,
-files/libao-1.0.0-pulseaudio.patch:
diff --git a/media-libs/libao/libao-1.1.0-r2.ebuild b/media-libs/libao/libao-1.1.0-r2.ebuild
new file mode 100644
index 000000000000..e2c1c56085f3
--- /dev/null
+++ b/media-libs/libao/libao-1.1.0-r2.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libao/libao-1.1.0-r2.ebuild,v 1.1 2013/11/30 17:11:39 mgorny Exp $
+
+EAPI=5
+
+inherit libtool multilib multilib-minimal eutils
+
+DESCRIPTION="The Audio Output library"
+HOMEPAGE="http://www.xiph.org/ao/"
+SRC_URI="http://downloads.xiph.org/releases/ao/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
+IUSE="alsa nas mmap pulseaudio static-libs"
+
+RDEPEND="alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
+ nas? ( media-libs/nas[${MULTILIB_USEDEP}] )
+ pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
+ abi_x86_32? ( !<=app-emulation/emul-linux-x86-soundlibs-20131008-r1
+ !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)] )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ sed -i -e 's:-O20::' configure || die
+ sed -i -e "s:/lib:/$(get_libdir):g" ao.m4 || die
+ elibtoolize
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} \
+ econf \
+ $(use_enable static-libs static) \
+ --disable-esd \
+ $(use_enable alsa alsa) \
+ $(use_enable mmap alsa-mmap) \
+ --disable-arts \
+ $(use_enable nas) \
+ $(use_enable pulseaudio pulse)
+}
+
+multilib_src_install() {
+ emake DESTDIR="${D}" docdir="${EPREFIX}/usr/share/doc/${PF}/html" install
+}
+
+multilib_src_install_all() {
+ dodoc AUTHORS CHANGES README TODO
+ prune_libtool_files --all
+}