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