diff options
author | Alastair Tse <liquidx@gentoo.org> | 2006-07-17 09:27:50 +0000 |
---|---|---|
committer | Alastair Tse <liquidx@gentoo.org> | 2006-07-17 09:27:50 +0000 |
commit | 19f7846e0e2808a94d40798d80b0b0b8139e6797 (patch) | |
tree | b68180e93df2db36b5c12d444d7acf32a48f87b0 | |
parent | add digest (diff) | |
download | liquidx-19f7846e0e2808a94d40798d80b0b0b8139e6797.tar.gz liquidx-19f7846e0e2808a94d40798d80b0b0b8139e6797.tar.bz2 liquidx-19f7846e0e2808a94d40798d80b0b0b8139e6797.zip |
adding experimental btsco (audio over bluetooth) drivers for testing
svn path=/; revision=19
-rw-r--r-- | net-wireless/btsco-kernel/Manifest | 8 | ||||
-rw-r--r-- | net-wireless/btsco-kernel/btsco-kernel-0.41.ebuild | 51 | ||||
-rw-r--r-- | net-wireless/btsco-kernel/files/digest-btsco-kernel-0.41 | 3 | ||||
-rw-r--r-- | net-wireless/btsco/Manifest | 8 | ||||
-rw-r--r-- | net-wireless/btsco/btsco-0.41.ebuild | 71 | ||||
-rw-r--r-- | net-wireless/btsco/files/digest-btsco-0.41 | 3 |
6 files changed, 144 insertions, 0 deletions
diff --git a/net-wireless/btsco-kernel/Manifest b/net-wireless/btsco-kernel/Manifest new file mode 100644 index 0000000..3b30e89 --- /dev/null +++ b/net-wireless/btsco-kernel/Manifest @@ -0,0 +1,8 @@ +DIST btsco-0.41.tar.gz 528364 RMD160 4474925c1d64461290ec5d6fd4bb1fdeb32a8fa0 SHA1 9c419f2eefd9e1ae423df99e98aae1e9fb2b6527 SHA256 47d206a511347f0762f4fe02c71d5b3a6122dcf3947947723cdde1d91ebad01b +EBUILD btsco-kernel-0.41.ebuild 1454 RMD160 ba5fc9388d21b44ab312a77e0d97cc8ad3fc41c6 SHA1 fc209edb2d974e0f7185a2ffc6677068f684c72f SHA256 91244d8939986dad65fc7be41b57bda4a49f7f4ca103dd422ac8463726953e7b +MD5 94bfb056f174aac66159eaff12853090 btsco-kernel-0.41.ebuild 1454 +RMD160 ba5fc9388d21b44ab312a77e0d97cc8ad3fc41c6 btsco-kernel-0.41.ebuild 1454 +SHA256 91244d8939986dad65fc7be41b57bda4a49f7f4ca103dd422ac8463726953e7b btsco-kernel-0.41.ebuild 1454 +MD5 2d097a219ae9f4d9b6f184a26453422a files/digest-btsco-kernel-0.41 232 +RMD160 05b85d78751061c00dca956ced6a449125ca9ff1 files/digest-btsco-kernel-0.41 232 +SHA256 1704f9ce103b9f01f60603b9f66f6fb5117d58576a8ee8362c477c99556a39b0 files/digest-btsco-kernel-0.41 232 diff --git a/net-wireless/btsco-kernel/btsco-kernel-0.41.ebuild b/net-wireless/btsco-kernel/btsco-kernel-0.41.ebuild new file mode 100644 index 0000000..cb58e97 --- /dev/null +++ b/net-wireless/btsco-kernel/btsco-kernel-0.41.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils linux-info linux-mod + +SPKG="btsco" + +DESCRIPTION="BlueTooth headset driver for ALSA (snd-bt-sco)" +HOMEPAGE="http://bluetooth-alsa.sourceforge.net/" +SRC_URI="mirror://sourceforge/bluetooth-alsa/${SPKG}-${PV}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* ~x86" +IUSE="" + +DEPEND="" + +S="${WORKDIR}/${SPKG}-${PV}/kernel" + +MODULE_NAMES="snd-bt-sco()" +BUILD_PARAMS="-j1" +BUILD_TARGETS="default" + +pkg_setup() { + + if kernel_is 2 4; then + die "${P} does not support building against kernel 2.4.x" + fi + + # The wording below is checked for linux-2.6.14.4 + CONFIG_CHECK="BT_SCO BT_HCIUSB_SCO SND_HWDEP" + ERROR_BT_SCO="BT_SCO is not set! \n\ + Please select 'L2CAP protocol support' and 'SCO links support' under \n\ + Networking|Bluetooth subsystem support|SCO links support" + ERROR_BT_HCIUSB_SCO="BT_HCIUSB_SCO is not set! \n\ + Please select 'HCI USB driver' under \n\ + Networking|Bluetooth subsystem support|Bluetooth device drivers|SCO (voice) support" + ERROR_SND_HWDEP="SND_HWDEP is not set! \n\ + Please select a config like SND_USB_AUDIO or SND_EMU10K1; \n\ + look under Device drivers|Sound|ALSA|PCI" + + linux-mod_pkg_setup +} + +src_unpack() { + cd ${S} + unpack ${A} + einfo "Patching ${S}/Makefile to use '${KV_DIR}'" + sed -i ${S}/Makefile -e "s,/lib/modules/\`uname -r\`/build,${KV_DIR},g" || die "Unable to patch Makefile" +} diff --git a/net-wireless/btsco-kernel/files/digest-btsco-kernel-0.41 b/net-wireless/btsco-kernel/files/digest-btsco-kernel-0.41 new file mode 100644 index 0000000..eca27a4 --- /dev/null +++ b/net-wireless/btsco-kernel/files/digest-btsco-kernel-0.41 @@ -0,0 +1,3 @@ +MD5 111efb0f7092c92c4dd376eec96aa2e7 btsco-0.41.tar.gz 528364 +RMD160 4474925c1d64461290ec5d6fd4bb1fdeb32a8fa0 btsco-0.41.tar.gz 528364 +SHA256 47d206a511347f0762f4fe02c71d5b3a6122dcf3947947723cdde1d91ebad01b btsco-0.41.tar.gz 528364 diff --git a/net-wireless/btsco/Manifest b/net-wireless/btsco/Manifest new file mode 100644 index 0000000..c269f41 --- /dev/null +++ b/net-wireless/btsco/Manifest @@ -0,0 +1,8 @@ +DIST btsco-0.41.tar.gz 528364 RMD160 4474925c1d64461290ec5d6fd4bb1fdeb32a8fa0 SHA1 9c419f2eefd9e1ae423df99e98aae1e9fb2b6527 SHA256 47d206a511347f0762f4fe02c71d5b3a6122dcf3947947723cdde1d91ebad01b +EBUILD btsco-0.41.ebuild 1620 RMD160 c5e2957bc659bd7aa5ecdbc7da6e34be437b95b3 SHA1 05e0756e62d555ac03eb86fd4ccb065e01187252 SHA256 26bf43c8cb8d1af5cdbd0cf36dc1f00d2162adabf71a818b0446ddaed3a4b945 +MD5 d7a333b4e0b11a72c42ba6da930ccda8 btsco-0.41.ebuild 1620 +RMD160 c5e2957bc659bd7aa5ecdbc7da6e34be437b95b3 btsco-0.41.ebuild 1620 +SHA256 26bf43c8cb8d1af5cdbd0cf36dc1f00d2162adabf71a818b0446ddaed3a4b945 btsco-0.41.ebuild 1620 +MD5 2d097a219ae9f4d9b6f184a26453422a files/digest-btsco-0.41 232 +RMD160 05b85d78751061c00dca956ced6a449125ca9ff1 files/digest-btsco-0.41 232 +SHA256 1704f9ce103b9f01f60603b9f66f6fb5117d58576a8ee8362c477c99556a39b0 files/digest-btsco-0.41 232 diff --git a/net-wireless/btsco/btsco-0.41.ebuild b/net-wireless/btsco/btsco-0.41.ebuild new file mode 100644 index 0000000..72729f2 --- /dev/null +++ b/net-wireless/btsco/btsco-0.41.ebuild @@ -0,0 +1,71 @@ +# 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="-* ~x86" +IUSE="alsa ao skype" + +RDEPEND=">=net-wireless/bluez-utils-2.19 + skype? ( net-im/skype + sys-apps/dbus ) + media-sound/alsa-utils + >=net-wireless/btsco-kernel-${PV}" + +DEPEND=">=net-wireless/bluez-libs-2.19 + alsa? ( media-libs/alsa-lib ) + ao? ( >=media-libs/libao-0.8.5 ) + 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 +} diff --git a/net-wireless/btsco/files/digest-btsco-0.41 b/net-wireless/btsco/files/digest-btsco-0.41 new file mode 100644 index 0000000..eca27a4 --- /dev/null +++ b/net-wireless/btsco/files/digest-btsco-0.41 @@ -0,0 +1,3 @@ +MD5 111efb0f7092c92c4dd376eec96aa2e7 btsco-0.41.tar.gz 528364 +RMD160 4474925c1d64461290ec5d6fd4bb1fdeb32a8fa0 btsco-0.41.tar.gz 528364 +SHA256 47d206a511347f0762f4fe02c71d5b3a6122dcf3947947723cdde1d91ebad01b btsco-0.41.tar.gz 528364 |