/[gentoo-x86]/media-plugins/alsa-plugins/alsa-plugins-1.0.25-r1.ebuild
Gentoo

Contents of /media-plugins/alsa-plugins/alsa-plugins-1.0.25-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Feb 29 15:28:16 2012 UTC (8 years, 2 months ago) by ago
Branch: MAIN
Changes since 1.2: +2 -2 lines
Stable for amd64, wrt bug #406101

(Portage version: 2.1.10.44/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-plugins/alsa-plugins/alsa-plugins-1.0.25-r1.ebuild,v 1.2 2012/02/29 01:57:32 jer Exp $
4
5 EAPI=3
6
7 MY_P="${P/_/}"
8
9 inherit autotools base flag-o-matic
10
11 DESCRIPTION="ALSA extra plugins"
12 HOMEPAGE="http://www.alsa-project.org/"
13 SRC_URI="mirror://alsaproject/plugins/${MY_P}.tar.bz2"
14
15 LICENSE="GPL-2 LGPL-2.1"
16 SLOT="0"
17 KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86"
18 IUSE="debug ffmpeg jack libsamplerate pulseaudio speex"
19
20 RDEPEND=">=media-libs/alsa-lib-${PV}
21 ffmpeg? ( virtual/ffmpeg
22 media-libs/alsa-lib )
23 jack? ( >=media-sound/jack-audio-connection-kit-0.98 )
24 libsamplerate? (
25 media-libs/libsamplerate
26 media-libs/alsa-lib )
27 pulseaudio? ( media-sound/pulseaudio )
28 speex? ( media-libs/speex
29 media-libs/alsa-lib )"
30
31 DEPEND="${RDEPEND}
32 dev-util/pkgconfig"
33
34 PATCHES=(
35 "${FILESDIR}/${PN}-1.0.19-missing-avutil.patch"
36 "${FILESDIR}/${PN}-1.0.23-automagic.patch"
37 )
38
39 S="${WORKDIR}/${MY_P}"
40
41 src_prepare() {
42 base_src_prepare
43
44 # For some reasons the polyp/pulse plugin does fail with alsaplayer with a
45 # failed assert. As the code works just fine with asserts disabled, for now
46 # disable them waiting for a better solution.
47 sed -i -e '/AM_CFLAGS/s:-Wall:-DNDEBUG -Wall:' \
48 "${S}/pulse/Makefile.am"
49
50 eautoreconf
51 }
52
53 src_configure() {
54 use debug || append-flags -DNDEBUG
55
56 local myspeex
57
58 if use speex; then
59 myspeex=lib
60 else
61 myspeex=no
62 fi
63
64 econf \
65 --disable-dependency-tracking \
66 $(use_enable ffmpeg avcodec) \
67 $(use_enable jack) \
68 $(use_enable libsamplerate samplerate) \
69 $(use_enable pulseaudio) \
70 --with-speex=${myspeex}
71 }
72
73 src_install() {
74 emake DESTDIR="${D}" install
75
76 cd "${S}/doc"
77 dodoc upmix.txt vdownmix.txt README-pcm-oss
78 use jack && dodoc README-jack
79 use libsamplerate && dodoc samplerate.txt
80 use ffmpeg && dodoc lavcrate.txt a52.txt
81
82 if use pulseaudio; then
83 dodoc README-pulse
84 # install ALSA configuration files
85 # making PA to be used by alsa clients
86 insinto /usr/share/alsa
87 doins "${FILESDIR}"/pulse-default.conf
88 insinto /usr/share/alsa/alsa.conf.d
89 doins "${FILESDIR}"/51-pulseaudio-probe.conf
90 fi
91
92 }
93
94 pkg_postinst() {
95 if use pulseaudio; then
96 einfo "The PulseAudio device is now set as the default device if the"
97 einfo "PulseAudio server is found to be running. Any custom"
98 einfo "configuration in /etc/asound.conf or ~/.asoundrc for this"
99 einfo "purpose should now be unnecessary."
100 fi
101 }

  ViewVC Help
Powered by ViewVC 1.1.20