Added upstream patch to fix a missing include, autobuild did not record any build errors but Arch Linux provides the patch: https://gitlab.archlinux.org/archlinux/packaging/packages/libao/-/commit/bad3196d4e3030d31b01eb3bd41fff8afc8ca113 Switched to gitlab tarball because the previous site does not provide a tarball for version 1.2.2 which was tagged in 2016: https://gitlab.xiph.org/xiph/libao/-/tags/1.2.2 Added autoreconf due to usage of gitlab tarball which does not contain a configure script. Signed-off-by: Bernd Kuhls <bernd@kuhls.net> Signed-off-by: Julien Olivain <ju.o@free.fr>
37 lines
987 B
Makefile
37 lines
987 B
Makefile
################################################################################
|
|
#
|
|
# libao
|
|
#
|
|
################################################################################
|
|
|
|
LIBAO_VERSION = 1.2.2
|
|
LIBAO_SITE = https://gitlab.xiph.org/xiph/libao/-/archive/$(LIBAO_VERSION)
|
|
LIBAO_DEPENDENCIES = host-pkgconf
|
|
LIBAO_INSTALL_STAGING = YES
|
|
LIBAO_LICENSE = GPL-2.0+
|
|
LIBAO_LICENSE_FILES = COPYING
|
|
LIBAO_CPE_ID_VENDOR = xiph
|
|
LIBAO_AUTORECONF = YES
|
|
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))
|