2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2007-07-23 09:54:13 +02:00
|
|
|
#
|
|
|
|
# alsa-lib
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-03-11 22:48:08 +01:00
|
|
|
|
2015-03-02 23:40:46 +01:00
|
|
|
ALSA_LIB_VERSION = 1.0.29
|
2009-02-23 14:37:48 +01:00
|
|
|
ALSA_LIB_SOURCE = alsa-lib-$(ALSA_LIB_VERSION).tar.bz2
|
2014-10-19 13:31:54 +02:00
|
|
|
ALSA_LIB_SITE = ftp://ftp.alsa-project.org/pub/lib
|
2012-08-19 22:18:23 +02:00
|
|
|
ALSA_LIB_LICENSE = LGPLv2.1+
|
|
|
|
ALSA_LIB_LICENSE_FILES = COPYING
|
2009-02-23 14:37:48 +01:00
|
|
|
ALSA_LIB_INSTALL_STAGING = YES
|
2014-01-16 09:09:30 +01:00
|
|
|
ALSA_LIB_CFLAGS = $(TARGET_CFLAGS)
|
2013-03-09 09:21:27 +01:00
|
|
|
ALSA_LIB_AUTORECONF = YES
|
2015-01-15 08:21:39 +01:00
|
|
|
ALSA_LIB_CONF_OPTS = \
|
|
|
|
--with-alsa-devdir=$(call qstrip,$(BR2_PACKAGE_ALSA_LIB_DEVDIR)) \
|
|
|
|
--with-pcm-plugins="$(call qstrip,$(BR2_PACKAGE_ALSA_LIB_PCM_PLUGINS))" \
|
|
|
|
--with-ctl-plugins="$(call qstrip,$(BR2_PACKAGE_ALSA_LIB_CTL_PLUGINS))" \
|
|
|
|
--without-versioned
|
2009-02-23 14:37:48 +01:00
|
|
|
|
2012-03-11 22:48:08 +01:00
|
|
|
# Can't build with static & shared at the same time (1.0.25+)
|
2014-12-03 22:41:29 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
ALSA_LIB_CONF_OPTS += --enable-shared=no
|
2012-03-11 22:48:08 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
ALSA_LIB_CONF_OPTS += --enable-static=no
|
2012-03-11 22:48:08 +01:00
|
|
|
endif
|
|
|
|
|
2010-01-28 19:07:27 +01:00
|
|
|
ifneq ($(BR2_PACKAGE_ALSA_LIB_ALOAD),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
ALSA_LIB_CONF_OPTS += --disable-aload
|
2010-01-28 19:07:27 +01:00
|
|
|
endif
|
|
|
|
ifneq ($(BR2_PACKAGE_ALSA_LIB_MIXER),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
ALSA_LIB_CONF_OPTS += --disable-mixer
|
2010-01-28 19:07:27 +01:00
|
|
|
endif
|
|
|
|
ifneq ($(BR2_PACKAGE_ALSA_LIB_PCM),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
ALSA_LIB_CONF_OPTS += --disable-pcm
|
2010-01-28 19:07:27 +01:00
|
|
|
endif
|
|
|
|
ifneq ($(BR2_PACKAGE_ALSA_LIB_RAWMIDI),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
ALSA_LIB_CONF_OPTS += --disable-rawmidi
|
2010-01-28 19:07:27 +01:00
|
|
|
endif
|
|
|
|
ifneq ($(BR2_PACKAGE_ALSA_LIB_HWDEP),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
ALSA_LIB_CONF_OPTS += --disable-hwdep
|
2010-01-28 19:07:27 +01:00
|
|
|
endif
|
|
|
|
ifneq ($(BR2_PACKAGE_ALSA_LIB_SEQ),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
ALSA_LIB_CONF_OPTS += --disable-seq
|
2010-01-28 19:07:27 +01:00
|
|
|
endif
|
|
|
|
ifneq ($(BR2_PACKAGE_ALSA_LIB_ALISP),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
ALSA_LIB_CONF_OPTS += --disable-alisp
|
2010-01-28 19:07:27 +01:00
|
|
|
endif
|
|
|
|
ifneq ($(BR2_PACKAGE_ALSA_LIB_OLD_SYMBOLS),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
ALSA_LIB_CONF_OPTS += --disable-old-symbols
|
2010-01-28 19:07:27 +01:00
|
|
|
endif
|
|
|
|
|
2009-01-17 01:19:06 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_ALSA_LIB_PYTHON),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
ALSA_LIB_CONF_OPTS += \
|
2010-07-18 23:26:25 +02:00
|
|
|
--with-pythonlibs=-lpython$(PYTHON_VERSION_MAJOR) \
|
|
|
|
--with-pythonincludes=$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)
|
2014-01-16 09:09:30 +01:00
|
|
|
ALSA_LIB_CFLAGS += -I$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)
|
2011-01-26 11:18:50 +01:00
|
|
|
ALSA_LIB_DEPENDENCIES = python
|
2009-01-12 08:40:08 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
ALSA_LIB_CONF_OPTS += --disable-python
|
2009-01-11 21:10:57 +01:00
|
|
|
endif
|
|
|
|
|
2008-03-06 20:48:39 +01:00
|
|
|
ifeq ($(BR2_SOFT_FLOAT),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
ALSA_LIB_CONF_OPTS += --with-softfloat
|
2008-03-06 20:48:39 +01:00
|
|
|
endif
|
|
|
|
|
2012-12-06 20:39:50 +01:00
|
|
|
ifeq ($(BR2_bfin),y)
|
|
|
|
# blackfin external toolchains don't have versionsort. Fake it using alphasort
|
|
|
|
# instead
|
|
|
|
ALSA_LIB_CFLAGS += -Dversionsort=alphasort
|
|
|
|
endif
|
|
|
|
|
2015-01-15 08:21:39 +01:00
|
|
|
ALSA_LIB_CONF_ENV = \
|
|
|
|
CFLAGS="$(ALSA_LIB_CFLAGS)" \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS) -lm"
|
2007-07-23 09:54:13 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|