2007-07-23 09:54:13 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# alsa-lib
|
|
|
|
#
|
|
|
|
#############################################################
|
2010-10-18 22:42:59 +02:00
|
|
|
ALSA_LIB_VERSION = 1.0.23
|
2009-02-23 14:37:48 +01:00
|
|
|
ALSA_LIB_SOURCE = alsa-lib-$(ALSA_LIB_VERSION).tar.bz2
|
|
|
|
ALSA_LIB_SITE = ftp://ftp.alsa-project.org/pub/lib
|
|
|
|
ALSA_LIB_INSTALL_STAGING = YES
|
|
|
|
ALSA_LIB_INSTALL_TARGET = YES
|
2007-07-23 09:54:13 +02:00
|
|
|
|
2009-02-01 20:37:14 +01:00
|
|
|
ALSA_LIB_CFLAGS=$(TARGET_CFLAGS)
|
|
|
|
|
2009-02-23 14:37:48 +01:00
|
|
|
ALSA_LIB_CONF_OPT = --enable-shared \
|
|
|
|
--enable-static \
|
2010-01-28 19:07:27 +01:00
|
|
|
--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))" \
|
2009-02-23 14:37:48 +01:00
|
|
|
--without-versioned
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
2010-09-01 23:19:39 +02:00
|
|
|
$(eval $(call AUTOTARGETS,package/multimedia,alsa-lib))
|