1################################################################################ 2# 3# bluez-alsa 4# 5################################################################################ 6 7BLUEZ_ALSA_VERSION = 4.0.0 8BLUEZ_ALSA_SITE = $(call github,Arkq,bluez-alsa,v$(BLUEZ_ALSA_VERSION)) 9BLUEZ_ALSA_LICENSE = MIT 10BLUEZ_ALSA_LICENSE_FILES = LICENSE 11BLUEZ_ALSA_DEPENDENCIES = alsa-lib bluez5_utils libglib2 sbc host-pkgconf 12 13# git repo, no configure 14BLUEZ_ALSA_AUTORECONF = YES 15 16BLUEZ_ALSA_CONF_OPTS = \ 17 --enable-a2dpconf \ 18 --enable-aplay \ 19 --disable-debug-time \ 20 --with-alsaplugindir=/usr/lib/alsa-lib \ 21 --with-alsaconfdir=/etc/alsa/conf.d 22 23ifeq ($(BR2_PACKAGE_FDK_AAC),y) 24BLUEZ_ALSA_DEPENDENCIES += fdk-aac 25BLUEZ_ALSA_CONF_OPTS += --enable-aac 26else 27BLUEZ_ALSA_CONF_OPTS += --disable-aac 28endif 29 30ifeq ($(BR2_PACKAGE_LAME),y) 31BLUEZ_ALSA_DEPENDENCIES += lame 32BLUEZ_ALSA_CONF_OPTS += --enable-mp3lame 33else 34BLUEZ_ALSA_CONF_OPTS += --disable-mp3lame 35endif 36 37ifeq ($(BR2_PACKAGE_MPG123),y) 38BLUEZ_ALSA_DEPENDENCIES += mpg123 39BLUEZ_ALSA_CONF_OPTS += --enable-mpg123 40else 41BLUEZ_ALSA_CONF_OPTS += --disable-mpg123 42endif 43 44# no build dependency, disables internal HFP in favor of oFonos HFP profile 45ifeq ($(BR2_PACKAGE_OFONO),y) 46BLUEZ_ALSA_CONF_OPTS += --enable-ofono 47else 48BLUEZ_ALSA_CONF_OPTS += --disable-ofono 49endif 50 51# no build dependency, enables integration with UPower D-Bus service 52ifeq ($(BR2_PACKAGE_UPOWER),y) 53BLUEZ_ALSA_CONF_OPTS += --enable-upower 54else 55BLUEZ_ALSA_CONF_OPTS += --disable-upower 56endif 57 58ifeq ($(BR2_PACKAGE_BLUEZ_ALSA_HCITOP),y) 59BLUEZ_ALSA_DEPENDENCIES += libbsd ncurses 60BLUEZ_ALSA_CONF_OPTS += --enable-hcitop 61else 62BLUEZ_ALSA_CONF_OPTS += --disable-hcitop 63endif 64 65ifeq ($(BR2_PACKAGE_BLUEZ_ALSA_RFCOMM),y) 66BLUEZ_ALSA_DEPENDENCIES += readline 67BLUEZ_ALSA_CONF_OPTS += --enable-rfcomm 68else 69BLUEZ_ALSA_CONF_OPTS += --disable-rfcomm 70endif 71 72ifeq ($(BR2_PACKAGE_LIBOPENAPTX),y) 73BLUEZ_ALSA_DEPENDENCIES += libopenaptx 74BLUEZ_ALSA_CONF_OPTS += --with-libopenaptx --enable-aptx --enable-aptx-hd 75else 76BLUEZ_ALSA_CONF_OPTS += --without-libopenaptx --disable-aptx --disable-aptx-hd 77endif 78 79$(eval $(autotools-package)) 80