# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils cvs ECVS_SERVER="bluetooth-alsa.cvs.sourceforge.net:/cvsroot/bluetooth-alsa" ECVS_MODULE="plugz" DESCRIPTION="Bluetooth audio: a2dpd and headsetd daemons" HOMEPAGE="http://bluetooth-alsa.sourceforge.net" SRC_URI="" LICENSE="LGPL-2" SLOT="0" KEYWORDS="~x86" IUSE="doc" RDEPEND="local/libsbc-cvs =net-wireless/bluez-libs-2.25 sys-apps/dbus dev-libs/dbus-glib media-libs/alsa-lib" DEPEND="${RDEPEND} dev-util/cvs sys-devel/automake sys-devel/autoconf sys-devel/libtool" S="${WORKDIR}/${ECVS_MODULE}" src_compile() { # to compile against bluez-libs-2.25 epatch "${FILESDIR}/bluez-libs-2.25.diff" ./bootstrap || die "bootstrap script failed" libtoolize --copy --force econf || die "econf failed" emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" dodoc alsa-plugins/{asound.conf,a2dpd/sample.a2dprc} docinto patches dodoc patches/{*.diff,README} if use doc ; then docinto html dohtml docs/{*.html,*.gif,*.png} fi } pkg_postinst() { echo elog "Copy sample.a2dprc to .a2dprc into your home directory and edit it" elog "Copy asound.conf to .asoundrc into your home directory" elog "Read help on http://bluetooth-alsa.sourceforge.net/build.html" echo }