2007-07-23 09:54:13 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# alsa-lib
|
|
|
|
#
|
|
|
|
#############################################################
|
2012-03-11 22:48:08 +01:00
|
|
|
|
2012-11-17 03:28:00 +01:00
|
|
|
ALSA_LIB_VERSION = 1.0.26
|
2009-02-23 14:37:48 +01:00
|
|
|
ALSA_LIB_SOURCE = alsa-lib-$(ALSA_LIB_VERSION).tar.bz2
|
2012-11-17 03:28:00 +01:00
|
|
|
ALSA_LIB_SITE = http://alsa.cybermirror.org/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
|
2009-02-01 20:37:14 +01:00
|
|
|
ALSA_LIB_CFLAGS=$(TARGET_CFLAGS)
|
2013-03-09 09:21:27 +01:00
|
|
|
ALSA_LIB_AUTORECONF = YES
|
2011-05-30 23:57:03 +02:00
|
|
|
ALSA_LIB_CONF_OPT = --with-alsa-devdir=$(call qstrip,$(BR2_PACKAGE_ALSA_LIB_DEVDIR)) \
|
2010-01-28 19:07:27 +01:00
|
|
|
--with-pcm-plugins="$(call qstrip,$(BR2_PACKAGE_ALSA_LIB_PCM_PLUGINS))" \
|
|
|
|
--with-ctl-plugins="$(call qstrip,$(BR2_PACKAGE_ALSA_LIB_CTL_PLUGINS))" \
|
2009-02-23 14:37:48 +01:00
|
|
|
--without-versioned
|
|
|
|
|
2012-03-11 22:48:08 +01:00
|
|
|
# Can't build with static & shared at the same time (1.0.25+)
|
2012-11-30 08:05:44 +01:00
|
|
|
ifeq ($(BR2_PREFER_STATIC_LIB),y)
|
2012-03-11 22:48:08 +01:00
|
|
|
ALSA_LIB_CONF_OPT += --enable-shared=no
|
|
|
|
else
|
|
|
|
ALSA_LIB_CONF_OPT += --enable-static=no
|
|
|
|
endif
|
|
|
|
|
2010-01-28 19:07:27 +01:00
|
|
|
ifneq ($(BR2_PACKAGE_ALSA_LIB_ALOAD),y)
|
|
|
|
ALSA_LIB_CONF_OPT += --disable-aload
|
|
|
|
endif
|
|
|
|
ifneq ($(BR2_PACKAGE_ALSA_LIB_MIXER),y)
|
|
|
|
ALSA_LIB_CONF_OPT += --disable-mixer
|
|
|
|
endif
|
|
|
|
ifneq ($(BR2_PACKAGE_ALSA_LIB_PCM),y)
|
|
|
|
ALSA_LIB_CONF_OPT += --disable-pcm
|
|
|
|
endif
|
|
|
|
ifneq ($(BR2_PACKAGE_ALSA_LIB_RAWMIDI),y)
|
|
|
|
ALSA_LIB_CONF_OPT += --disable-rawmidi
|
|
|
|
endif
|
|
|
|
ifneq ($(BR2_PACKAGE_ALSA_LIB_HWDEP),y)
|
|
|
|
ALSA_LIB_CONF_OPT += --disable-hwdep
|
|
|
|
endif
|
|
|
|
ifneq ($(BR2_PACKAGE_ALSA_LIB_SEQ),y)
|
|
|
|
ALSA_LIB_CONF_OPT += --disable-seq
|
|
|
|
endif
|
|
|
|
ifneq ($(BR2_PACKAGE_ALSA_LIB_ALISP),y)
|
|
|
|
ALSA_LIB_CONF_OPT += --disable-alisp
|
|
|
|
endif
|
|
|
|
ifneq ($(BR2_PACKAGE_ALSA_LIB_OLD_SYMBOLS),y)
|
|
|
|
ALSA_LIB_CONF_OPT += --disable-old-symbols
|
|
|
|
endif
|
|
|
|
|
2009-02-23 14:37:48 +01:00
|
|
|
ifeq ($(BR2_ENABLE_DEBUG),y)
|
|
|
|
ALSA_LIB_CONF_OPT += --enable-debug
|
|
|
|
endif
|
|
|
|
|
2009-01-31 11:18:23 +01:00
|
|
|
ifeq ($(BR2_avr32),y)
|
2009-02-01 20:37:14 +01:00
|
|
|
ALSA_LIB_CFLAGS+=-DAVR32_INLINE_BUG
|
2007-11-28 10:13:41 +01:00
|
|
|
endif
|
|
|
|
|
2009-01-17 01:19:06 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_ALSA_LIB_PYTHON),y)
|
2010-07-18 23:26:25 +02:00
|
|
|
ALSA_LIB_CONF_OPT += \
|
|
|
|
--with-pythonlibs=-lpython$(PYTHON_VERSION_MAJOR) \
|
|
|
|
--with-pythonincludes=$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)
|
2009-02-05 00:15:42 +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
|
2009-02-23 14:37:48 +01:00
|
|
|
ALSA_LIB_CONF_OPT += --disable-python
|
2009-01-11 21:10:57 +01:00
|
|
|
endif
|
|
|
|
|
2008-03-06 20:48:39 +01:00
|
|
|
ifeq ($(BR2_SOFT_FLOAT),y)
|
2009-02-23 14:37:48 +01:00
|
|
|
ALSA_LIB_CONF_OPT += --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
|
|
|
|
|
2009-02-23 14:37:48 +01:00
|
|
|
ALSA_LIB_CONF_ENV = CFLAGS="$(ALSA_LIB_CFLAGS)" \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS) -lm"
|
2007-07-23 09:54:13 +02:00
|
|
|
|
2010-09-01 23:19:39 +02:00
|
|
|
define ALSA_LIB_UNINSTALL_TARGET_CMDS
|
2010-01-28 19:07:27 +01:00
|
|
|
-rm -f $(TARGET_DIR)/usr/lib/libasound.so*
|
|
|
|
-rm -rf $(TARGET_DIR)/usr/lib/alsa-lib
|
|
|
|
-rm -rf $(TARGET_DIR)/usr/share/alsa
|
2010-09-01 23:19:39 +02:00
|
|
|
endef
|
2010-01-28 19:07:27 +01:00
|
|
|
|
2010-09-01 23:19:39 +02:00
|
|
|
define ALSA_LIB_UNINSTALL_STAGING_CMDS
|
2010-01-28 19:07:27 +01:00
|
|
|
-rm -f $(STAGING_DIR)/usr/lib/libasound.*
|
|
|
|
-rm -rf $(STAGING_DIR)/usr/lib/alsa-lib
|
|
|
|
-rm -rf $(STAGING_DIR)/usr/share/alsa
|
2010-09-01 23:19:39 +02:00
|
|
|
endef
|
2010-01-28 19:07:27 +01:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|