diff --git a/packages/addons/addon-depends/snapcast-depends/shairport-sync/package.mk b/packages/addons/addon-depends/snapcast-depends/shairport-sync/package.mk index dfa9db0e20..e06ddf97f4 100644 --- a/packages/addons/addon-depends/snapcast-depends/shairport-sync/package.mk +++ b/packages/addons/addon-depends/snapcast-depends/shairport-sync/package.mk @@ -2,12 +2,12 @@ # Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv) PKG_NAME="shairport-sync" -PKG_VERSION="3.3.8" -PKG_SHA256="c92f9a2d86dd1138673abc66e0010c94412ad6a46da8f36c3d538f4fa6b9faca" +PKG_VERSION="4.1" +PKG_SHA256="951fc9f33a631736fe49d2ed040b27a417c93ffdf05a2d13116c6dda7628ea86" PKG_LICENSE="OSS" PKG_SITE="https://github.com/mikebrady/shairport-sync" PKG_URL="https://github.com/mikebrady/shairport-sync/archive/${PKG_VERSION}.tar.gz" -PKG_DEPENDS_TARGET="toolchain alsa-lib avahi libconfig libdaemon libsndfile openssl popt pulseaudio soxr" +PKG_DEPENDS_TARGET="toolchain alsa-lib avahi ffmpeg libconfig libdaemon libgcrypt libplist libsndfile libsodium nqptp openssl popt pulseaudio soxr util-linux" PKG_LONGDESC="AirPlay audio player." PKG_TOOLCHAIN="autotools" PKG_BUILD_FLAGS="-sysroot" @@ -22,4 +22,5 @@ PKG_CONFIGURE_OPTS_TARGET="--with-alsa \ --with-soxr \ --with-ssl=openssl \ --with-stdout \ - --without-configfiles" + --without-configfiles \ + --with-airplay-2" diff --git a/packages/addons/addon-depends/snapcast-depends/shairport-sync/patches/0001-configure.ac-fix-build-with-automake-1.16.5.patch b/packages/addons/addon-depends/snapcast-depends/shairport-sync/patches/0001-configure.ac-fix-build-with-automake-1.16.5.patch deleted file mode 100644 index 2ee8f59fee..0000000000 --- a/packages/addons/addon-depends/snapcast-depends/shairport-sync/patches/0001-configure.ac-fix-build-with-automake-1.16.5.patch +++ /dev/null @@ -1,48 +0,0 @@ -From ad22edb303a470b6f9eda9fd9d3f588bb2eff8cb Mon Sep 17 00:00:00 2001 -From: Fabrice Fontaine -Date: Fri, 15 Oct 2021 08:02:23 +0200 -Subject: [PATCH] configure.ac: fix build with automake 1.16.5 - -Fix the following build failure with convolution raised since automake -1.16.5 and -https://git.savannah.gnu.org/cgit/automake.git/commit/?id=f4a3a70f69e1dbccb6578f39ef47835098a04624: - -configure.ac:305: error: AM_INIT_AUTOMAKE expanded multiple times -/home/giuliobenetti/autobuild/run/instance-1/output-1/host/share/aclocal-1.16/init.m4:29: AM_INIT_AUTOMAKE is expanded from... -configure.ac:6: the top level -/home/giuliobenetti/autobuild/run/instance-1/output-1/host/share/aclocal-1.16/init.m4:29: AM_INIT_AUTOMAKE is expanded from... -configure.ac:305: the top level - -Fixes: - - http://autobuild.buildroot.org/results/464148bdccb705d8992dc860262bfdeb01b7e2a1 - -Signed-off-by: Fabrice Fontaine -[Upstream status: https://github.com/mikebrady/shairport-sync/pull/1314] ---- - configure.ac | 3 +-- - 1 file changed, 1 insertion(+), 2 deletions(-) - -diff --git a/configure.ac b/configure.ac -index f77087c5..aa533a2d 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -3,7 +3,7 @@ - - AC_PREREQ([2.50]) - AC_INIT([shairport-sync], [3.3.8], [4265913+mikebrady@users.noreply.github.com]) --AM_INIT_AUTOMAKE -+AM_INIT_AUTOMAKE([subdir-objects]) - AC_CONFIG_SRCDIR([shairport.c]) - AC_CONFIG_HEADERS([config.h]) - AC_PROG_RANLIB -@@ -302,7 +302,6 @@ AM_CONDITIONAL([USE_PA], [test "x$with_pa" = "xyes"]) - # Look for Convolution flag - AC_ARG_WITH(convolution, [AS_HELP_STRING([--with-convolution],[choose audio DSP convolution support])]) - if test "x$with_convolution" = "xyes" ; then -- AM_INIT_AUTOMAKE([subdir-objects]) - AC_DEFINE([CONFIG_CONVOLUTION], 1, [Include audio DSP convolution support.]) - AC_CHECK_LIB([sndfile], [sf_open], , AC_MSG_ERROR(Convolution support requires the sndfile library -- libsndfile1-dev suggested!)) - fi --- -2.33.0 - diff --git a/packages/addons/addon-depends/snapcast-depends/shairport-sync/patches/0002-fix-libsnfile-dependencies.patch b/packages/addons/addon-depends/snapcast-depends/shairport-sync/patches/0002-fix-libsnfile-dependencies.patch deleted file mode 100644 index 81b2a93351..0000000000 --- a/packages/addons/addon-depends/snapcast-depends/shairport-sync/patches/0002-fix-libsnfile-dependencies.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- a/configure.ac 2021-04-26 20:35:11.000000000 +1000 -+++ b/configure.ac 2021-09-29 20:31:32.372329878 +1000 -@@ -302,9 +302,16 @@ - # Look for Convolution flag - AC_ARG_WITH(convolution, [AS_HELP_STRING([--with-convolution],[choose audio DSP convolution support])]) - if test "x$with_convolution" = "xyes" ; then -+ if test "x${with_pkg_config}" = "xyes" ; then -+ PKG_CHECK_MODULES( -+ [sndfile], [sndfile], -+ [CFLAGS="${sndfile_CFLAGS} ${CFLAGS}" -+ LIBS="${sndfile_LIBS} ${LIBS}"], AC_MSG_ERROR(Convolution support requires the sndfile library.)) -+ else -+ AC_CHECK_LIB([sndfile], [sf_open], , AC_MSG_ERROR(Convolution support requires the sndfile library -- libsndfile1-dev suggested!)) -+ fi - AC_DEFINE([CONFIG_CONVOLUTION], 1, [Include audio DSP convolution support.]) -- AC_CHECK_LIB([sndfile], [sf_open], , AC_MSG_ERROR(Convolution support requires the sndfile library -- libsndfile1-dev suggested!)) - fi - AM_CONDITIONAL([USE_CONVOLUTION], [test "x$with_convolution" = "xyes"]) - - # Look for dns_sd flag