1
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-11-25 10:46:19 +00:00
Lakka-LibreELEC/packages/addons/addon-depends/snapcast-depends/snapcast/package.mk

28 lines
966 B
Makefile

# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="snapcast"
PKG_VERSION="0.27.0"
PKG_SHA256="c662c6eafbaa42a4797a4ed6ba4a7602332abf99f6ba6ea88ff8ae59978a86ba"
PKG_LICENSE="GPLv3"
PKG_SITE="https://github.com/badaix/snapcast"
PKG_URL="https://github.com/badaix/snapcast/archive/v${PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain aixlog alsa-lib asio avahi flac libvorbis popl pulseaudio boost opus"
PKG_LONGDESC="Synchronous multi-room audio player."
PKG_TOOLCHAIN="make"
PKG_BUILD_FLAGS="-sysroot"
pre_configure_target() {
cd ..
rm -rf .${TARGET_NAME}
CXXFLAGS="${CXXFLAGS} -pthread \
-I$(get_install_dir aixlog)/usr/include \
-I$(get_install_dir asio)/usr/include \
-I$(get_install_dir popl)/usr/include"
}
makeinstall_target() {
mkdir -p ${INSTALL}/usr/bin
cp -p server/snapserver client/snapclient ${INSTALL}/usr/bin
}