summaryrefslogtreecommitdiffstats
path: root/package/libao/libao.mk
blob: 501ea0c9f23e73e9a372fa8e3b645d16ff29c9e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
################################################################################
#
# libao
#
################################################################################

LIBAO_VERSION = 1.2.0
LIBAO_SITE = http://downloads.xiph.org/releases/ao
LIBAO_DEPENDENCIES = host-pkgconf
LIBAO_INSTALL_STAGING = YES
LIBAO_LICENSE = GPL-2.0+
LIBAO_LICENSE_FILES = COPYING
LIBAO_CONF_OPTS = \
	--disable-esd \
	--disable-wmm \
	--disable-arts \
	--disable-nas \
	--disable-pulse \
	--disable-broken-oss

ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
LIBAO_DEPENDENCIES += alsa-lib
LIBAO_CONF_OPTS += --enable-alsa --enable-alsa-mmap

# 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
else
LIBAO_CONF_OPTS += --disable-alsa
endif

$(eval $(autotools-package))
OpenPOWER on IntegriCloud