mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-11-28 06:14:38 +00:00
c16def7032
* 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.
44 lines
1.4 KiB
Makefile
44 lines
1.4 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-lib"
|
|
PKG_VERSION="1.2.4"
|
|
PKG_SHA256="f7554be1a56cdff468b58fc1c29b95b64864c590038dd309c7a978c7116908f7"
|
|
PKG_LICENSE="GPL"
|
|
PKG_SITE="http://www.alsa-project.org/"
|
|
PKG_URL="ftp://ftp.alsa-project.org/pub/lib/alsa-lib-${PKG_VERSION}.tar.bz2"
|
|
PKG_DEPENDS_TARGET="toolchain"
|
|
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} \
|
|
--disable-dependency-tracking \
|
|
--with-plugindir=/usr/lib/alsa \
|
|
--disable-python"
|
|
|
|
post_configure_target() {
|
|
sed -i 's/.*PKGLIBDIR.*/#define PKGLIBDIR ""/' include/config.h
|
|
}
|
|
|
|
post_makeinstall_target() {
|
|
rm -rf ${INSTALL}/usr/bin
|
|
|
|
mkdir -p ${INSTALL}/usr/config
|
|
cp -PR ${PKG_DIR}/config/modprobe.d ${INSTALL}/usr/config
|
|
}
|
|
|
|
post_install() {
|
|
if [ "${DISTRO}" = "Lakka" ] && [ "${DEVICE}" = "RPi4-RetroDreamer" ]; then
|
|
sed -e "s|^options snd-usb-audio index=.*$|options snd-usb-audio index=0|g" \
|
|
-i ${INSTALL}/usr/lib/modprobe.d/alsa-base.conf
|
|
fi
|
|
}
|