2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
|
|
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
|
|
|
|
PKG_NAME="alsa-lib"
|
2023-01-14 00:24:58 +00:00
|
|
|
PKG_VERSION="1.2.8"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="GPL"
|
|
|
|
PKG_SITE="http://www.alsa-project.org/"
|
2022-12-09 14:19:06 +00:00
|
|
|
PKG_URL="https://www.alsa-project.org/files/pub/lib/alsa-lib-${PKG_VERSION}.tar.bz2"
|
2023-01-14 00:24:58 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain alsa-ucm-conf alsa-topology-conf"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LONGDESC="ALSA (Advanced Linux Sound Architecture) is the next generation Linux Sound API."
|
|
|
|
PKG_TOOLCHAIN="autotools"
|
|
|
|
PKG_BUILD_FLAGS="+pic"
|
|
|
|
|
|
|
|
if build_with_debug; then
|
|
|
|
PKG_ALSA_DEBUG=--with-debug
|
|
|
|
else
|
|
|
|
PKG_ALSA_DEBUG=--without-debug
|
|
|
|
fi
|
|
|
|
|
|
|
|
PKG_CONFIGURE_OPTS_TARGET="${PKG_ALSA_DEBUG} \
|
2023-01-14 00:24:58 +00:00
|
|
|
--enable-ucm \
|
2022-02-05 14:23:32 +00:00
|
|
|
--disable-dependency-tracking \
|
|
|
|
--with-plugindir=/usr/lib/alsa \
|
|
|
|
--disable-python"
|
|
|
|
|
|
|
|
post_configure_target() {
|
|
|
|
sed -i 's/.*PKGLIBDIR.*/#define PKGLIBDIR ""/' include/config.h
|
|
|
|
}
|
|
|
|
|