package/dhcp/S80dhcp-server: allow empty INTERFACES
[buildroot-gz.git] / package / alsa-lib / alsa-lib.mk
blobea2351c93a9e4a905f0018afed2f6ac7a2066a6b
1 ################################################################################
3 # alsa-lib
5 ################################################################################
7 ALSA_LIB_VERSION = 1.1.0
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))" \
19 --without-versioned
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 += --enable-shared=no
24 else
25 ALSA_LIB_CONF_OPTS += --enable-static=no
26 endif
28 ifneq ($(BR2_PACKAGE_ALSA_LIB_ALOAD),y)
29 ALSA_LIB_CONF_OPTS += --disable-aload
30 endif
31 ifneq ($(BR2_PACKAGE_ALSA_LIB_MIXER),y)
32 ALSA_LIB_CONF_OPTS += --disable-mixer
33 endif
34 ifneq ($(BR2_PACKAGE_ALSA_LIB_PCM),y)
35 ALSA_LIB_CONF_OPTS += --disable-pcm
36 endif
37 ifneq ($(BR2_PACKAGE_ALSA_LIB_RAWMIDI),y)
38 ALSA_LIB_CONF_OPTS += --disable-rawmidi
39 endif
40 ifneq ($(BR2_PACKAGE_ALSA_LIB_HWDEP),y)
41 ALSA_LIB_CONF_OPTS += --disable-hwdep
42 endif
43 ifneq ($(BR2_PACKAGE_ALSA_LIB_SEQ),y)
44 ALSA_LIB_CONF_OPTS += --disable-seq
45 endif
46 ifneq ($(BR2_PACKAGE_ALSA_LIB_ALISP),y)
47 ALSA_LIB_CONF_OPTS += --disable-alisp
48 endif
49 ifneq ($(BR2_PACKAGE_ALSA_LIB_OLD_SYMBOLS),y)
50 ALSA_LIB_CONF_OPTS += --disable-old-symbols
51 endif
53 ifeq ($(BR2_PACKAGE_ALSA_LIB_PYTHON),y)
54 ALSA_LIB_CONF_OPTS += \
55 --with-pythonlibs=-lpython$(PYTHON_VERSION_MAJOR) \
56 --with-pythonincludes=$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)
57 ALSA_LIB_CFLAGS += -I$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)
58 ALSA_LIB_DEPENDENCIES = python
59 else
60 ALSA_LIB_CONF_OPTS += --disable-python
61 endif
63 ifeq ($(BR2_SOFT_FLOAT),y)
64 ALSA_LIB_CONF_OPTS += --with-softfloat
65 endif
67 ifeq ($(BR2_bfin),y)
68 # blackfin external toolchains don't have versionsort. Fake it using alphasort
69 # instead
70 ALSA_LIB_CFLAGS += -Dversionsort=alphasort
71 endif
73 ALSA_LIB_CONF_ENV = \
74 CFLAGS="$(ALSA_LIB_CFLAGS)" \
75 LDFLAGS="$(TARGET_LDFLAGS) -lm"
77 $(eval $(autotools-package))