diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2023-05-28 21:40:43 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2023-05-29 11:12:17 +0200 |
commit | 340115d0c52eecd278390ed57607f9e8a07dbacb (patch) | |
tree | b0346d92955d1acba6ca69ca5200cd408ff5e45d /media-libs/libao | |
parent | media-gfx/gthumb: Fix ExcessiveLineLength warning (diff) | |
download | gentoo-340115d0c52eecd278390ed57607f9e8a07dbacb.tar.gz gentoo-340115d0c52eecd278390ed57607f9e8a07dbacb.tar.bz2 gentoo-340115d0c52eecd278390ed57607f9e8a07dbacb.zip |
media-libs/libao: update EAPI 7 -> 8, unused multilib, use libpulse
Closes: https://bugs.gentoo.org/881997
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-libs/libao')
-rw-r--r-- | media-libs/libao/libao-1.2.2-r3.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/media-libs/libao/libao-1.2.2-r3.ebuild b/media-libs/libao/libao-1.2.2-r3.ebuild new file mode 100644 index 000000000000..9256d9dd01d7 --- /dev/null +++ b/media-libs/libao/libao-1.2.2-r3.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools multilib-minimal + +DESCRIPTION="The Audio Output library" +HOMEPAGE="https://www.xiph.org/ao/" +#SRC_URI="https://downloads.xiph.org/releases/ao/${P}.tar.gz" +#SRC_URI="https://git.xiph.org/?p=libao.git;a=snapshot;h=refs/tags/${PV};sf=tgz -> ${P}.tar.gz" +SRC_URI="https://github.com/xiph/libao/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos" +IUSE="alsa nas mmap pulseaudio sndio" + +RDEPEND=" + alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) + nas? ( >=media-libs/nas-1.9.4[${MULTILIB_USEDEP}] ) + pulseaudio? ( media-libs/libpulse[${MULTILIB_USEDEP}] ) + sndio? ( media-sound/sndio:= ) +" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${P}-implicit.patch + "${FILESDIR}"/${P}-automagic_sndio_oss.patch +) + +src_prepare() { + default + sed -i "s:/lib:/$(get_libdir):g" ao.m4 || die + eautoreconf +} + +multilib_src_configure() { + local myeconfargs=( + --disable-arts + --disable-esd + $(use_enable alsa alsa) + $(use_enable mmap alsa-mmap) + $(use_enable nas) + $(use_enable pulseaudio pulse) + $(use_enable sndio) + --disable-oss # present only in overlays + ) + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" +} + +multilib_src_install() { + emake DESTDIR="${D}" docdir="${EPREFIX}/usr/share/doc/${PF}/html" install +} + +multilib_src_install_all() { + dodoc AUTHORS CHANGES README TODO + + find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die +} |