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
|
|
|
|
2021-07-21 22:09:30 +02:00
|
|
|
ALSA_LIB_VERSION = 1.2.5.1
|
2009-02-23 14:37:48 +01:00
|
|
|
ALSA_LIB_SOURCE = alsa-lib-$(ALSA_LIB_VERSION).tar.bz2
|
2020-01-04 20:46:00 +01:00
|
|
|
ALSA_LIB_SITE = https://www.alsa-project.org/files/pub/lib
|
2017-03-30 15:43:34 +02:00
|
|
|
ALSA_LIB_LICENSE = LGPL-2.1+ (library), GPL-2.0+ (aserver)
|
2016-07-05 09:15:38 +02:00
|
|
|
ALSA_LIB_LICENSE_FILES = COPYING aserver/COPYING
|
2021-01-21 14:36:27 +01:00
|
|
|
ALSA_LIB_CPE_ID_VENDOR = alsa-project
|
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)
|
2016-01-20 16:21:18 +01:00
|
|
|
ALSA_LIB_CONF_OPTS += \
|
|
|
|
--enable-shared=no \
|
|
|
|
--without-libdl
|
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
|
2019-12-22 14:18:17 +01:00
|
|
|
ifneq ($(BR2_PACKAGE_ALSA_LIB_UCM),y)
|
|
|
|
ALSA_LIB_CONF_OPTS += --disable-ucm
|
|
|
|
endif
|
2010-01-28 19:07:27 +01:00
|
|
|
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
|
|
|
|
|
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))
|