2015-01-01 23:25:38 +03:00
|
|
|
# Copyright 1999-2015 Gentoo Foundation
|
2014-01-29 11:33:47 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-03-01 16:52:06 +03:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/media-libs/libao/libao-1.2.0.ebuild,v 1.11 2015/02/28 13:59:25 ago Exp $
|
2014-01-29 11:33:47 +04:00
|
|
|
|
|
|
|
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"
|
2015-03-01 16:52:06 +03:00
|
|
|
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"
|
2014-01-29 11:33:47 +04:00
|
|
|
IUSE="alsa nas mmap pulseaudio static-libs"
|
|
|
|
|
2014-06-19 11:09:26 +04:00
|
|
|
RDEPEND="alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] )
|
|
|
|
nas? ( >=media-libs/nas-1.9.4[${MULTILIB_USEDEP}] )
|
|
|
|
pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] )
|
2014-01-29 11:33:47 +04:00
|
|
|
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 's:-O20::' configure || die
|
|
|
|
sed -i "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
|
|
|
|
}
|