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

Contents of /media-libs/alsa-lib/alsa-lib-1.0.26.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Sep 9 08:32:27 2012 UTC (2 years, 3 months ago) by ssuominen
Branch: MAIN
Changes since 1.1: +12 -23 lines
Punt base.eclass from inherit because it was never used and PATCHES was ignored because of custom src_prepare(). Remove obsolete pkg_postinst() message wrt #434370 by William Throwe.

(Portage version: 2.2.0_alpha124/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-libs/alsa-lib/alsa-lib-1.0.26.ebuild,v 1.1 2012/09/07 12:57:19 chainsaw Exp $
4
5 EAPI=4
6
7 PYTHON_DEPEND="python? 2:2.6"
8
9 inherit autotools eutils multilib python
10
11 DESCRIPTION="Advanced Linux Sound Architecture Library"
12 HOMEPAGE="http://www.alsa-project.org/"
13 SRC_URI="mirror://alsaproject/lib/${P}.tar.bz2"
14
15 LICENSE="LGPL-2.1"
16 SLOT="0"
17 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
18 IUSE="doc debug alisp python"
19
20 RDEPEND=""
21 DEPEND=">=media-sound/alsa-headers-1.0.25
22 doc? ( >=app-doc/doxygen-1.2.6 )"
23
24 pkg_setup() {
25 if use python; then
26 python_set_active_version 2
27 python_pkg_setup
28 fi
29 }
30
31 src_prepare() {
32 epatch "${FILESDIR}"/1.0.25-extraneous-cflags.diff
33 eautoreconf
34 epunt_cxx
35 }
36
37 src_configure() {
38 local myconf
39 use elibc_uclibc && myconf="--without-versioned"
40
41 econf \
42 --enable-shared \
43 --disable-resmgr \
44 --enable-rawmidi \
45 --enable-seq \
46 --enable-aload \
47 $(use_with debug) \
48 $(use_enable alisp) \
49 $(use_enable python) \
50 ${myconf}
51 }
52
53 src_compile() {
54 emake
55
56 if use doc; then
57 emake doc
58 fgrep -Zrl "${S}" "${S}/doc/doxygen/html" | \
59 xargs -0 sed -i -e "s:${S}::"
60 fi
61 }
62
63 src_install() {
64 emake DESTDIR="${D}" install
65
66 prune_libtool_files --all
67 find "${ED}"/usr/$(get_libdir)/alsa-lib -name '*.a' -exec rm -f {} +
68
69 dodoc ChangeLog TODO
70 use doc && dohtml -r doc/doxygen/html/*
71 }

  ViewVC Help
Powered by ViewVC 1.1.20