mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
42
package/bluez-alsa/Config.in
Normal file
42
package/bluez-alsa/Config.in
Normal file
@@ -0,0 +1,42 @@
|
||||
config BR2_PACKAGE_BLUEZ_ALSA
|
||||
bool "bluez-alsa"
|
||||
depends on !BR2_STATIC_LIBS # bluez5
|
||||
depends on !BR2_PACKAGE_BLUEZ_UTILS # bluez5
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4 # bluez5
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # bluez5
|
||||
depends on BR2_USE_MMU # bluez5 -> dbus
|
||||
depends on BR2_USE_WCHAR # libglib2
|
||||
select BR2_PACKAGE_ALSA_LIB
|
||||
select BR2_PACKAGE_BLUEZ5_UTILS
|
||||
select BR2_PACKAGE_LIBGLIB2
|
||||
select BR2_PACKAGE_SBC
|
||||
help
|
||||
Bluetooth Audio ALSA Backend.
|
||||
|
||||
https://github.com/Arkq/bluez-alsa
|
||||
|
||||
if BR2_PACKAGE_BLUEZ_ALSA
|
||||
|
||||
config BR2_PACKAGE_BLUEZ_ALSA_HCITOP
|
||||
bool "hcitop"
|
||||
depends on BR2_PACKAGE_LIBBSD_ARCH_SUPPORTS
|
||||
select BR2_PACKAGE_LIBBSD
|
||||
select BR2_PACKAGE_NCURSES
|
||||
help
|
||||
Enable top-like monitoring tool for HCI.
|
||||
|
||||
config BR2_PACKAGE_BLUEZ_ALSA_RFCOMM
|
||||
bool "rfcomm"
|
||||
select BR2_PACKAGE_READLINE
|
||||
help
|
||||
Simple tool for sending RFCOMM commands.
|
||||
|
||||
endif
|
||||
|
||||
comment "bluez-alsa needs a toolchain w/ wchar, NPTL, headers >= 3.4, dynamic library"
|
||||
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
|
||||
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4 || BR2_STATIC_LIBS
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_PACKAGE_BLUEZ_UTILS
|
||||
3
package/bluez-alsa/bluez-alsa.hash
Normal file
3
package/bluez-alsa/bluez-alsa.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated:
|
||||
sha256 6287ae6135795a78470068ef9d9ea660d556cefc409905bd9211fda04d1e1f8e bluez-alsa-1.4.0.tar.gz
|
||||
sha256 45fe8648faa0e735d4aaf60c32ddd37fc7f027d34ccedcf0f69d8aa961b63b25 LICENSE
|
||||
56
package/bluez-alsa/bluez-alsa.mk
Normal file
56
package/bluez-alsa/bluez-alsa.mk
Normal file
@@ -0,0 +1,56 @@
|
||||
################################################################################
|
||||
#
|
||||
# bluez-alsa
|
||||
#
|
||||
################################################################################
|
||||
|
||||
BLUEZ_ALSA_VERSION = 1.4.0
|
||||
BLUEZ_ALSA_SITE = $(call github,Arkq,bluez-alsa,v$(BLUEZ_ALSA_VERSION))
|
||||
BLUEZ_ALSA_LICENSE = MIT
|
||||
BLUEZ_ALSA_LICENSE_FILES = LICENSE
|
||||
BLUEZ_ALSA_DEPENDENCIES = alsa-lib bluez5_utils libglib2 sbc host-pkgconf
|
||||
|
||||
# git repo, no configure
|
||||
BLUEZ_ALSA_AUTORECONF = YES
|
||||
|
||||
# Autoreconf requires an existing m4 directory
|
||||
define BLUEZ_ALSA_MKDIR_M4
|
||||
mkdir -p $(@D)/m4
|
||||
endef
|
||||
BLUEZ_ALSA_POST_PATCH_HOOKS += BLUEZ_ALSA_MKDIR_M4
|
||||
|
||||
BLUEZ_ALSA_CONF_OPTS = \
|
||||
--enable-aplay \
|
||||
--disable-debug-time \
|
||||
--with-alsaplugindir=/usr/lib/alsa-lib \
|
||||
--with-alsaconfdir=/usr/share/alsa
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FDK_AAC),y)
|
||||
BLUEZ_ALSA_DEPENDENCIES += fdk-aac
|
||||
BLUEZ_ALSA_CONF_OPTS += --enable-aac
|
||||
else
|
||||
BLUEZ_ALSA_CONF_OPTS += --disable-aac
|
||||
endif
|
||||
|
||||
# no build dependency, disables internal HFP in favor of oFonos HFP profile
|
||||
ifeq ($(BR2_PACKAGE_OFONO),y)
|
||||
BLUEZ_ALSA_CONF_OPTS += --enable-ofono
|
||||
else
|
||||
BLUEZ_ALSA_CONF_OPTS += --disable-ofono
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_BLUEZ_ALSA_HCITOP),y)
|
||||
BLUEZ_ALSA_DEPENDENCIES += libbsd ncurses
|
||||
BLUEZ_ALSA_CONF_OPTS += --enable-hcitop
|
||||
else
|
||||
BLUEZ_ALSA_CONF_OPTS += --disable-hcitop
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_BLUEZ_ALSA_RFCOMM),y)
|
||||
BLUEZ_ALSA_DEPENDENCIES += readline
|
||||
BLUEZ_ALSA_CONF_OPTS += --enable-rfcomm
|
||||
else
|
||||
BLUEZ_ALSA_CONF_OPTS += --disable-rfcomm
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user