2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-01-11 14:45:30 +01:00
|
|
|
#
|
|
|
|
# libao
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-01-11 14:45:30 +01:00
|
|
|
|
2011-09-02 16:04:55 +02:00
|
|
|
LIBAO_VERSION = 1.1.0
|
2011-01-11 14:45:30 +01:00
|
|
|
LIBAO_SITE = http://downloads.xiph.org/releases/ao
|
2012-10-22 17:47:52 +02:00
|
|
|
LIBAO_DEPENDENCIES = host-pkgconf
|
2011-01-11 14:45:30 +01:00
|
|
|
LIBAO_INSTALL_STAGING = YES
|
2013-01-21 12:29:48 +01:00
|
|
|
LIBAO_LICENSE = GPLv2+
|
|
|
|
LIBAO_LICENSE_FILES = COPYING
|
2011-01-11 14:45:30 +01:00
|
|
|
LIBAO_CONF_OPT = --disable-esd --disable-wmm --disable-arts \
|
2014-04-08 19:45:07 +02:00
|
|
|
--disable-nas --disable-pulse --disable-broken-oss
|
2011-01-11 14:45:30 +01:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
|
|
|
|
LIBAO_DEPENDENCIES += alsa-lib
|
|
|
|
LIBAO_CONF_OPT += --enable-alsa --enable-alsa-mmap
|
2014-04-08 19:45:07 +02:00
|
|
|
|
|
|
|
# Remove the OSS plugin if ALSA is enabled, as libao will prefer ALSA anyway
|
|
|
|
define LIBAO_REMOVE_OSS_PLUGIN
|
|
|
|
rm -f $(TARGET_DIR)/usr/lib/ao/plugins-4/liboss.so
|
|
|
|
endef
|
|
|
|
LIBAO_POST_INSTALL_TARGET_HOOKS += LIBAO_REMOVE_OSS_PLUGIN
|
2011-01-11 14:45:30 +01:00
|
|
|
else
|
|
|
|
LIBAO_CONF_OPT += --disable-alsa
|
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|