1 ################################################################################
5 ################################################################################
7 ALSA_LIB_VERSION
= 1.1.1
8 ALSA_LIB_SOURCE
= alsa-lib-
$(ALSA_LIB_VERSION
).
tar.bz2
9 ALSA_LIB_SITE
= ftp
://ftp.alsa-project.org
/pub
/lib
10 ALSA_LIB_LICENSE
= LGPLv2.1
+
11 ALSA_LIB_LICENSE_FILES
= COPYING
12 ALSA_LIB_INSTALL_STAGING
= YES
13 ALSA_LIB_CFLAGS
= $(TARGET_CFLAGS
)
14 ALSA_LIB_AUTORECONF
= YES
15 ALSA_LIB_CONF_OPTS
= \
16 --with-alsa-devdir
=$(call qstrip
,$(BR2_PACKAGE_ALSA_LIB_DEVDIR
)) \
17 --with-pcm-plugins
="$(call qstrip,$(BR2_PACKAGE_ALSA_LIB_PCM_PLUGINS))" \
18 --with-ctl-plugins
="$(call qstrip,$(BR2_PACKAGE_ALSA_LIB_CTL_PLUGINS))" \
21 # Can't build with static & shared at the same time (1.0.25+)
22 ifeq ($(BR2_STATIC_LIBS
),y
)
23 ALSA_LIB_CONF_OPTS
+= \
27 ALSA_LIB_CONF_OPTS
+= --enable-static
=no
30 ifneq ($(BR2_PACKAGE_ALSA_LIB_ALOAD
),y
)
31 ALSA_LIB_CONF_OPTS
+= --disable-aload
33 ifneq ($(BR2_PACKAGE_ALSA_LIB_MIXER
),y
)
34 ALSA_LIB_CONF_OPTS
+= --disable-mixer
36 ifneq ($(BR2_PACKAGE_ALSA_LIB_PCM
),y
)
37 ALSA_LIB_CONF_OPTS
+= --disable-pcm
39 ifneq ($(BR2_PACKAGE_ALSA_LIB_RAWMIDI
),y
)
40 ALSA_LIB_CONF_OPTS
+= --disable-rawmidi
42 ifneq ($(BR2_PACKAGE_ALSA_LIB_HWDEP
),y
)
43 ALSA_LIB_CONF_OPTS
+= --disable-hwdep
45 ifneq ($(BR2_PACKAGE_ALSA_LIB_SEQ
),y
)
46 ALSA_LIB_CONF_OPTS
+= --disable-seq
48 ifneq ($(BR2_PACKAGE_ALSA_LIB_ALISP
),y
)
49 ALSA_LIB_CONF_OPTS
+= --disable-alisp
51 ifneq ($(BR2_PACKAGE_ALSA_LIB_OLD_SYMBOLS
),y
)
52 ALSA_LIB_CONF_OPTS
+= --disable-old-symbols
55 ifeq ($(BR2_PACKAGE_ALSA_LIB_PYTHON
),y
)
56 ALSA_LIB_CONF_OPTS
+= \
57 --with-pythonlibs
=-lpython
$(PYTHON_VERSION_MAJOR
) \
58 --with-pythonincludes
=$(STAGING_DIR
)/usr
/include/python
$(PYTHON_VERSION_MAJOR
)
59 ALSA_LIB_CFLAGS
+= -I
$(STAGING_DIR
)/usr
/include/python
$(PYTHON_VERSION_MAJOR
)
60 ALSA_LIB_DEPENDENCIES
= python
62 ALSA_LIB_CONF_OPTS
+= --disable-python
65 ifeq ($(BR2_SOFT_FLOAT
),y
)
66 ALSA_LIB_CONF_OPTS
+= --with-softfloat
70 # blackfin external toolchains don't have versionsort. Fake it using alphasort
72 ALSA_LIB_CFLAGS
+= -Dversionsort
=alphasort
76 CFLAGS
="$(ALSA_LIB_CFLAGS)" \
77 LDFLAGS
="$(TARGET_LDFLAGS) -lm"
79 $(eval
$(autotools-package
))