OLD | NEW |
(Empty) | |
| 1 # Copyright 1999-2011 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.2
4.ebuild,v 1.2 2011/04/10 20:21:10 scarabeus 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}[alsa_pcm_plugins_ioplug] |
| 21 ffmpeg? ( virtual/ffmpeg |
| 22 media-libs/alsa-lib[alsa_pcm_plugins_rate,alsa_pcm_plugins_plug]
) |
| 23 jack? ( >=media-sound/jack-audio-connection-kit-0.98 ) |
| 24 libsamplerate? ( |
| 25 media-libs/libsamplerate |
| 26 media-libs/alsa-lib[alsa_pcm_plugins_rate,alsa_pcm_plugins_plug]
) |
| 27 pulseaudio? ( media-sound/pulseaudio ) |
| 28 speex? ( media-libs/speex |
| 29 media-libs/alsa-lib[alsa_pcm_plugins_rate,alsa_pcm_plugins_plug]
) |
| 30 !media-plugins/alsa-jack" |
| 31 |
| 32 DEPEND="${RDEPEND} |
| 33 dev-util/pkgconfig" |
| 34 |
| 35 PATCHES=( |
| 36 "${FILESDIR}/${PN}-1.0.19-missing-avutil.patch" |
| 37 "${FILESDIR}/${PN}-1.0.23-automagic.patch" |
| 38 ) |
| 39 |
| 40 S="${WORKDIR}/${MY_P}" |
| 41 |
| 42 src_prepare() { |
| 43 base_src_prepare |
| 44 |
| 45 # For some reasons the polyp/pulse plugin does fail with alsaplayer with
a |
| 46 # failed assert. As the code works just fine with asserts disabled, for
now |
| 47 # disable them waiting for a better solution. |
| 48 sed -i -e '/AM_CFLAGS/s:-Wall:-DNDEBUG -Wall:' \ |
| 49 "${S}/pulse/Makefile.am" |
| 50 |
| 51 eautoreconf |
| 52 } |
| 53 |
| 54 src_configure() { |
| 55 use debug || append-flags -DNDEBUG |
| 56 |
| 57 local myspeex |
| 58 |
| 59 if use speex; then |
| 60 myspeex=lib |
| 61 else |
| 62 myspeex=no |
| 63 fi |
| 64 |
| 65 econf \ |
| 66 --disable-dependency-tracking \ |
| 67 $(use_enable ffmpeg avcodec) \ |
| 68 $(use_enable jack) \ |
| 69 $(use_enable libsamplerate samplerate) \ |
| 70 $(use_enable pulseaudio) \ |
| 71 --with-speex=${myspeex} |
| 72 } |
| 73 |
| 74 src_install() { |
| 75 emake DESTDIR="${D}" install |
| 76 |
| 77 cd "${S}/doc" |
| 78 dodoc upmix.txt vdownmix.txt README-pcm-oss |
| 79 use jack && dodoc README-jack |
| 80 use libsamplerate && dodoc samplerate.txt |
| 81 use ffmpeg && dodoc lavcrate.txt a52.txt |
| 82 |
| 83 if use pulseaudio; then |
| 84 dodoc README-pulse |
| 85 # install ALSA configuration files |
| 86 # making PA to be used by alsa clients |
| 87 insinto /usr/share/alsa |
| 88 doins "${FILESDIR}"/pulse*.conf |
| 89 fi |
| 90 |
| 91 } |
OLD | NEW |