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

Contents of /media-libs/alsa-lib/alsa-lib-1.0.25-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download)
Sun Apr 1 15:11:43 2012 UTC (2 years, 4 months ago) by armin76
Branch: MAIN
Changes since 1.6: +2 -2 lines
alpha/ia64/sh/sparc stable wrt #406101

(Portage version: 2.1.10.53/cvs/Linux ia64)

1 chainsaw 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 armin76 1.7 # $Header: /var/cvsroot/gentoo-x86/media-libs/alsa-lib/alsa-lib-1.0.25-r1.ebuild,v 1.6 2012/03/15 22:05:38 maekke Exp $
4 chainsaw 1.1
5     EAPI=4
6    
7     PYTHON_DEPEND="python? 2"
8    
9     inherit autotools base python multilib
10    
11     MY_P=${P/_rc/rc}
12     S=${WORKDIR}/${MY_P}
13    
14     DESCRIPTION="Advanced Linux Sound Architecture Library"
15     HOMEPAGE="http://www.alsa-project.org/"
16     SRC_URI="mirror://alsaproject/lib/${MY_P}.tar.bz2"
17    
18     LICENSE="LGPL-2.1"
19     SLOT="0"
20 armin76 1.7 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ~ppc ppc64 sh sparc x86 ~amd64-linux ~x86-linux"
21 chainsaw 1.1 IUSE="doc debug alisp python"
22    
23     DEPEND=">=media-sound/alsa-headers-1.0.25
24     doc? ( >=app-doc/doxygen-1.2.6 )"
25     RDEPEND=""
26     PATCHES=( "${FILESDIR}/${PV}-extraneous-cflags.diff" )
27    
28     pkg_setup() {
29     if use python; then
30     python_set_active_version 2
31     fi
32     }
33    
34     src_prepare() {
35     eautoreconf
36     epunt_cxx
37     }
38    
39     src_configure() {
40     local myconf
41     use elibc_uclibc && myconf="--without-versioned"
42    
43     econf \
44     --enable-shared \
45     --disable-resmgr \
46     --enable-rawmidi \
47     --enable-seq \
48     --enable-aload \
49     $(use_with debug) \
50     $(use_enable alisp) \
51     $(use_enable python) \
52     --disable-dependency-tracking \
53     ${myconf}
54     }
55    
56     src_compile() {
57     emake || die
58    
59     if use doc; then
60     emake doc || die "failed to generate docs"
61     fgrep -Zrl "${S}" "${S}/doc/doxygen/html" | \
62     xargs -0 sed -i -e "s:${S}::"
63     fi
64     }
65    
66     src_install() {
67     emake DESTDIR="${D}" install || die
68    
69     find "${ED}" -name '*.la' -exec rm -f {} +
70     find "${ED}"/usr/$(get_libdir)/alsa-lib -name '*.a' -exec rm -f {} +
71    
72     dodoc ChangeLog TODO || die
73     use doc && dohtml -r doc/doxygen/html/*
74     }
75    
76     pkg_postinst() {
77     elog "Please try in-kernel ALSA drivers instead of the alsa-driver ebuild."
78     elog "If alsa-driver works for you where a *recent* kernel does not, we want "
79     elog "to know about this. Our e-mail address is alsa-bugs@gentoo.org"
80     elog "However, if you notice no sound output or instability, please try to "
81     elog "upgrade your kernel to a newer version first."
82     }

  ViewVC Help
Powered by ViewVC 1.1.20