0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-12-15 15:39:56 +00:00
GavinDarkglider c16def7032
Lakka-v5.x Switch Support Fixes (#1753)
* Switch: it builds

* Switch: Use udev to finalize usb gadget to save from systemd looping service restart until cable connected.

* Switch: Update kernel stuff again

* Switch: Downgrade Alsa packages to version in 4.x tree

* Joycond: Update Switch version

* Switch: Minor fixes

* LibreELEC: Fix a few broken files from upstream pull

* Switch: Fix LibreELEC build.

* Switch: Update bootloader stuff

* L4T: FFMPEG: Add support for nvv4l2 decoder/encoder

* FFMPEG: Add back encoder support for game recording in retroarch

* FFMPEG: revert a few changes, and add support for vulkan.
2023-01-21 18:40:08 +01:00

43 lines
1.7 KiB
Makefile

# 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-utils"
PKG_VERSION="1.2.4"
PKG_SHA256="98ffc2d599de0577d423a48fa5f20a992ca0b82d812ed1f2e58ade49ac6da426"
PKG_LICENSE="GPL"
PKG_SITE="http://www.alsa-project.org/"
PKG_URL="ftp://ftp.alsa-project.org/pub/utils/alsa-utils-${PKG_VERSION}.tar.bz2"
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."
PKG_CONFIGURE_OPTS_TARGET="--disable-alsaconf \
--disable-alsaloop \
--enable-alsatest \
--disable-bat \
--disable-dependency-tracking \
--disable-nls \
--disable-rst2man \
--disable-xmlto"
post_makeinstall_target() {
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
# remove default udev rule to restore mixer configs, we install our own.
# so we avoid resetting our soundconfig
rm -rf ${INSTALL}/usr/lib/udev/rules.d/90-alsa-restore.rules
if [ "${DISTRO}" != "Lakka" ]; then # keep the utils for Lakka
mkdir -p ${INSTALL}/.noinstall
for i in aconnect alsamixer amidi aplaymidi arecord arecordmidi aseqdump aseqnet iecset; do
mv ${INSTALL}/usr/bin/${i} ${INSTALL}/.noinstall
done
fi
mkdir -p ${INSTALL}/usr/lib/udev
cp ${PKG_DIR}/scripts/soundconfig ${INSTALL}/usr/lib/udev
}