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
|
|
|
|
2014-08-30 01:01:23 +02:00
|
|
|
LIBAO_VERSION = 1.2.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
|
2017-03-30 15:43:32 +02:00
|
|
|
LIBAO_LICENSE = GPL-2.0+
|
2013-01-21 12:29:48 +01:00
|
|
|
LIBAO_LICENSE_FILES = COPYING
|
2021-01-17 14:56:27 +01:00
|
|
|
LIBAO_CPE_ID_VENDOR = xiph
|
2014-12-24 08:54:24 +01:00
|
|
|
LIBAO_CONF_OPTS = \
|
|
|
|
--disable-esd \
|
|
|
|
--disable-wmm \
|
|
|
|
--disable-arts \
|
|
|
|
--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
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBAO_CONF_OPTS += --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
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBAO_CONF_OPTS += --disable-alsa
|
2011-01-11 14:45:30 +01:00
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|