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)
|
2022-05-27 22:33:28 +00:00
|
|
|
# Copyright (C) 2022-present Fewtarius
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
PKG_NAME="alsa-utils"
|
2023-07-24 22:32:28 +00:00
|
|
|
PKG_VERSION="1.2.9"
|
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/utils/alsa-utils-${PKG_VERSION}.tar.bz2"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain alsa-lib ncurses systemd"
|
|
|
|
PKG_LONGDESC="This package includes the utilities for ALSA, like alsamixer, aplay, arecord, alsactl, iecset and speaker-test."
|
2023-07-24 22:32:28 +00:00
|
|
|
PKG_TOOLCHAIN="autotools"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
PKG_CONFIGURE_OPTS_TARGET="--disable-alsaconf \
|
|
|
|
--disable-alsaloop \
|
|
|
|
--enable-alsatest \
|
|
|
|
--disable-bat \
|
|
|
|
--disable-dependency-tracking \
|
|
|
|
--disable-nls \
|
|
|
|
--disable-rst2man \
|
|
|
|
--disable-xmlto"
|
2023-08-07 02:22:19 +00:00
|
|
|
if [[ ! "${DEVICE}" =~ RK356 ]]
|
|
|
|
then
|
2023-04-27 10:24:41 +00:00
|
|
|
PKG_DEPENDS_TARGET+=" alsa-ucm-conf"
|
2023-08-07 02:22:19 +00:00
|
|
|
fi
|
2023-04-27 10:24:41 +00:00
|
|
|
|
2022-02-05 14:23:32 +00:00
|
|
|
post_makeinstall_target() {
|
2022-04-14 11:56:57 +00:00
|
|
|
rm -rf ${INSTALL}/lib ${INSTALL}/var
|
|
|
|
rm -rf ${INSTALL}/usr/share/alsa/speaker-test
|
|
|
|
rm -rf ${INSTALL}/usr/share/sounds
|
|
|
|
rm -rf ${INSTALL}/usr/lib/systemd/system
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|