# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit cvs linux-info linux-mod eutils DESCRIPTION="BlueTooth headset driver for ALSA (snd-bt-sco)" HOMEPAGE="http://bluetooth-alsa.sourceforge.net/" SRC_URI="" LICENSE="GPL-2" IUSE="" SLOT="0" KEYWORDS="-* ~x86" DEPEND="virtual/linux-sources" RDEPEND="" ECVS_SERVER="cvs.sourceforge.net:/cvsroot/bluetooth-alsa" ECVS_MODULE="btsco/kernel" S="${WORKDIR}/${ECVS_MODULE}" pkg_setup() { if ! kernel_is 2 6 then eerror eerror "You need 2.6.x kernel to use this package." eerror exit 1 fi CONFIG_CHECK="BT_SCO SND_HWDEP" ERROR_BT_SCO="BT_SCO is not set! Plese select 'SCO links support' under \ Drivers|Networking|Bluetooth|L2CAP" ERROR_SND_HWDEP="SND_HWDEP is not set! Plese select a config like \ SND_USB_AUDIO or SND_EMU10K1; see under Drivers|Sound|ALSA, see \ inside PCI or USB" linux-mod_pkg_setup } src_unpack() { cvs_src_unpack || die } src_compile() { MODULE_NAMES="snd-bt-sco()" BUILD_PARAMS="-j1" BUILD_TARGETS="default" linux-mod_src_compile } src_install() { linux-mod_src_install } pkg_postinst() { linux-mod_pkg_postinst }