Files
sablink-distro/net-wireless/btsco/btsco-0.41.ebuild
T
lxnay 7174dcfe9e mask kpowersave
git-svn-id: http://svn.sabayonlinux.org/overlay@504 d7aec97c-591d-0410-af39-a8856400b30a
2006-12-22 17:46:39 +00:00

70 lines
1.5 KiB
Bash

# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit autotools
SPKG="btsco"
DESCRIPTION="A userspace daemon to send audio to a BT headset via ALSA"
HOMEPAGE="http://bluetooth-alsa.sourceforge.net/"
SRC_URI="mirror://sourceforge/bluetooth-alsa/${SPKG}-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="alsa ao skype"
RDEPEND=">=net-wireless/bluez-utils-2.19
alsa? ( media-sound/alsa-utils )
ao? ( >=media-libs/libao-0.8.5 )
skype? ( net-im/skype
sys-apps/dbus )
>=net-wireless/btsco-kernel-${PV}"
DEPEND="sys-apps/gawk
${RDEPEND}"
S="${WORKDIR}/${SPKG}-${PV}"
MY_S_SKYPE="${S}/contrib/skype_bt_hijacker"
MY_D_SKYPE="/usr/libexec/${PN}"
src_compile() {
local myconf
export WANT_AUTOMAKE="1.9.6"
eautoreconf || die "autotools failed"
econf \
$(use_enable alsa alsaplugin) \
$(use_enable ao ) || die "econf failed"
emake || die "emake failed"
if use skype; then
cd ${MY_S_SKYPE}
emake || die "emake failed"
fi
}
src_install() {
cd ${S}
make install DESTDIR="${D}" || die "make install failed"
dobin btsco btsco2 a2play a2recv avrecv avsnd \
sbc/rcplay sbc/sbcdec sbc/sbcenc sbc/sbcinfo
dodoc AUTHORS COPYING* ChangeLog NEWS README
use ao && dobin sbc/sbcdec_ao
use alsa && newdoc bt/BUILD README.alsaplugin
if use skype; then
cd ${MY_S_SKYPE}
dodir ${MY_D_SKYPE}
make install PREFIX=${D}/${MY_D_SKYPE}
dosym ${MY_D_SKYPE}/skype_bt_hijacker /usr/bin
docinto Skype
dodoc ${MY_S_SKYPE}/README ${MY_S_SKYPE}/ChangeLog
fi
}