2007-07-23 09:54:13 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# alsa-lib
|
|
|
|
#
|
|
|
|
#############################################################
|
2009-02-23 14:37:48 +01:00
|
|
|
ALSA_LIB_VERSION = 1.0.18
|
|
|
|
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 \
|
|
|
|
--without-versioned
|
|
|
|
|
|
|
|
ifeq ($(BR2_ENABLE_DEBUG),y)
|
|
|
|
# install-exec doesn't install the config files
|
|
|
|
ALSA_LIB_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
|
|
|
|
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)
|
2009-02-23 14:37:48 +01:00
|
|
|
ALSA_LIB_CONF_OPT += --with-pythonlibs=-lpython$(PYTHON_VERSION_MAJOR)
|
2009-02-05 00:15:42 +01:00
|
|
|
ALSA_LIB_CFLAGS+=-I$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)
|
2009-09-02 17:02:02 +02:00
|
|
|
ALSA_LIB_DEPENDENCIES = libpython
|
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"
|
2009-11-23 13:03:59 +01:00
|
|
|
# the above doesn't work with shared config.cache
|
|
|
|
ALSA_LIB_USE_CONFIG_CACHE = NO
|
2007-07-23 09:54:13 +02:00
|
|
|
|
2009-02-23 14:37:48 +01:00
|
|
|
$(eval $(call AUTOTARGETS,package/multimedia,alsa-lib))
|
2007-07-23 09:54:13 +02:00
|
|
|
|