Initial Commit
- initial default booting image
This commit is contained in:
92
package/shairport-sync/Config.in
Normal file
92
package/shairport-sync/Config.in
Normal file
@@ -0,0 +1,92 @@
|
||||
config BR2_PACKAGE_SHAIRPORT_SYNC
|
||||
bool "shairport-sync"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
select BR2_PACKAGE_ALSA_LIB
|
||||
select BR2_PACKAGE_ALSA_LIB_MIXER
|
||||
select BR2_PACKAGE_LIBCONFIG
|
||||
select BR2_PACKAGE_OPENSSL if !BR2_PACKAGE_MBEDTLS
|
||||
select BR2_PACKAGE_POPT
|
||||
help
|
||||
Shairport Sync emulates an AirPort Express for the purpose
|
||||
of streaming audio from iTunes, iPods, iPhones, iPads and
|
||||
AppleTVs. Audio played by a Shairport Sync-powered device
|
||||
stays in synchrony with the source and thus with other
|
||||
devices that are playing the same source
|
||||
synchronously. Thus, for example, synchronised multi-room
|
||||
audio is possible without difficulty.
|
||||
|
||||
https://github.com/mikebrady/shairport-sync
|
||||
|
||||
if BR2_PACKAGE_SHAIRPORT_SYNC
|
||||
|
||||
config BR2_PACKAGE_SHAIRPORT_SYNC_CONVOLUTION
|
||||
bool "convolution support"
|
||||
select BR2_PACKAGE_LIBSNDFILE
|
||||
help
|
||||
Enable audio DSP convolution support.
|
||||
|
||||
config BR2_PACKAGE_SHAIRPORT_SYNC_AIRPLAY2
|
||||
bool "AirPlay2 support"
|
||||
depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS # libgcrypt
|
||||
depends on BR2_USE_MMU # nqptp
|
||||
depends on BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS # ffmpeg
|
||||
select BR2_PACKAGE_NQPTP # runtime
|
||||
select BR2_PACKAGE_LIBPLIST
|
||||
select BR2_PACKAGE_LIBSODIUM
|
||||
select BR2_PACKAGE_LIBGCRYPT
|
||||
select BR2_PACKAGE_FFMPEG
|
||||
select BR2_PACKAGE_UTIL_LINUX
|
||||
select BR2_PACKAGE_UTIL_LINUX_LIBUUID
|
||||
help
|
||||
Enable support for the more modern AirPlay2 protocol.
|
||||
This will also require ffmpeg and many other libraries.
|
||||
|
||||
config BR2_PACKAGE_SHAIRPORT_SYNC_DBUS
|
||||
bool "dbus support"
|
||||
depends on BR2_USE_WCHAR # libglib2
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
|
||||
depends on BR2_USE_MMU # libglib2
|
||||
select BR2_PACKAGE_LIBGLIB2
|
||||
help
|
||||
Enable support for support for the MPRIS and native
|
||||
Shairport Sync D-Bus interface.
|
||||
|
||||
comment "shairport-sync dbus support needs a toolchain w/ wchar, threads"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
|
||||
config BR2_PACKAGE_SHAIRPORT_SYNC_LIBSOXR
|
||||
bool "libsoxr support"
|
||||
select BR2_PACKAGE_LIBSOXR
|
||||
help
|
||||
Enable support for libsoxr, the SoX Resampler library.
|
||||
|
||||
Briefly, Shairport Sync keeps in step with the audio source
|
||||
by deleting or inserting frames of audio into the stream as
|
||||
needed. This "interpolation" is normally inaudible, but it
|
||||
can be heard in some circumstances. Libsoxr allows this
|
||||
interpolation to be done much more smoothly and subtly.
|
||||
|
||||
config BR2_PACKAGE_SHAIRPORT_SYNC_MQTT
|
||||
bool "mqtt support"
|
||||
depends on BR2_USE_MMU # avahi
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # avahi
|
||||
depends on !BR2_STATIC_LIBS # avahi
|
||||
select BR2_PACKAGE_AVAHI
|
||||
select BR2_PACKAGE_AVAHI_DAEMON
|
||||
select BR2_PACKAGE_DBUS
|
||||
select BR2_PACKAGE_MOSQUITTO
|
||||
help
|
||||
Enable support for the MQTT, the Message Queuing Telemetry
|
||||
Transport protocol.
|
||||
|
||||
comment "shairport-sync mqtt support needs a toolchain w/ dynamic library, threads"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
|
||||
endif
|
||||
|
||||
comment "shairport-sync needs a toolchain w/ C++, NPTL"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||
27
package/shairport-sync/S99shairport-sync
Normal file
27
package/shairport-sync/S99shairport-sync
Normal file
@@ -0,0 +1,27 @@
|
||||
#! /bin/sh
|
||||
|
||||
# Additional options that are passed to Shairport Sync
|
||||
OPTIONS="-d"
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
printf "Starting shairport-sync: "
|
||||
start-stop-daemon -S -q --exec /usr/bin/shairport-sync -- $OPTIONS
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
;;
|
||||
stop)
|
||||
printf "Stopping shairport-sync: "
|
||||
start-stop-daemon -K -q --exec /usr/bin/shairport-sync \
|
||||
-p /var/run/shairport-sync/shairport-sync.pid
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
sleep 1
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
3
package/shairport-sync/shairport-sync.hash
Normal file
3
package/shairport-sync/shairport-sync.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 a1242d100b61fe1fffbbf706e919ed51d6a341c9fb8293fb42046e32ae2b3338 shairport-sync-4.3.7.tar.gz
|
||||
sha256 1daaa904985807b7f9f2fa91f6b19f3faadf8df4e813f7451a691f89a6965e3f LICENSES
|
||||
106
package/shairport-sync/shairport-sync.mk
Normal file
106
package/shairport-sync/shairport-sync.mk
Normal file
@@ -0,0 +1,106 @@
|
||||
################################################################################
|
||||
#
|
||||
# shairport-sync
|
||||
#
|
||||
################################################################################
|
||||
|
||||
SHAIRPORT_SYNC_VERSION = 4.3.7
|
||||
SHAIRPORT_SYNC_SITE = $(call github,mikebrady,shairport-sync,$(SHAIRPORT_SYNC_VERSION))
|
||||
|
||||
SHAIRPORT_SYNC_LICENSE = MIT, BSD-3-Clause
|
||||
SHAIRPORT_SYNC_LICENSE_FILES = LICENSES
|
||||
SHAIRPORT_SYNC_DEPENDENCIES = alsa-lib libconfig popt host-pkgconf
|
||||
|
||||
# git clone, no configure
|
||||
SHAIRPORT_SYNC_AUTORECONF = YES
|
||||
|
||||
SHAIRPORT_SYNC_CONF_OPTS = --with-alsa \
|
||||
--with-metadata \
|
||||
--with-pipe \
|
||||
--with-stdout
|
||||
|
||||
SHAIRPORT_SYNC_CONF_ENV += LIBS="$(SHAIRPORT_SYNC_CONF_LIBS)"
|
||||
|
||||
# Avahi or tinysvcmdns (shaiport-sync bundles its own version of tinysvcmdns).
|
||||
ifeq ($(BR2_PACKAGE_AVAHI_LIBAVAHI_CLIENT),y)
|
||||
SHAIRPORT_SYNC_DEPENDENCIES += avahi
|
||||
SHAIRPORT_SYNC_CONF_OPTS += --with-avahi --without-tinysvcmdns
|
||||
else
|
||||
SHAIRPORT_SYNC_CONF_OPTS += --without-avahi --with-tinysvcmdns
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBDAEMON),y)
|
||||
SHAIRPORT_SYNC_DEPENDENCIES += libdaemon
|
||||
SHAIRPORT_SYNC_CONF_OPTS += --with-libdaemon
|
||||
else
|
||||
SHAIRPORT_SYNC_CONF_OPTS += --without-libdaemon
|
||||
endif
|
||||
|
||||
# OpenSSL or mbedTLS
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
SHAIRPORT_SYNC_DEPENDENCIES += openssl
|
||||
SHAIRPORT_SYNC_CONF_OPTS += --with-ssl=openssl
|
||||
else
|
||||
SHAIRPORT_SYNC_DEPENDENCIES += mbedtls
|
||||
SHAIRPORT_SYNC_CONF_OPTS += --with-ssl=mbedtls
|
||||
SHAIRPORT_SYNC_CONF_LIBS += -lmbedx509 -lmbedcrypto
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SHAIRPORT_SYNC_CONVOLUTION),y)
|
||||
SHAIRPORT_SYNC_DEPENDENCIES += libsndfile
|
||||
SHAIRPORT_SYNC_CONF_OPTS += --with-convolution
|
||||
else
|
||||
SHAIRPORT_SYNC_CONF_OPTS += --without-convolution
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SHAIRPORT_SYNC_AIRPLAY2),y)
|
||||
# host-vim needed for xxd
|
||||
SHAIRPORT_SYNC_DEPENDENCIES += libplist libsodium libgcrypt ffmpeg util-linux host-vim
|
||||
SHAIRPORT_SYNC_CONF_OPTS += --with-airplay-2
|
||||
else
|
||||
SHAIRPORT_SYNC_CONF_OPTS += --without-airplay-2
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SHAIRPORT_SYNC_DBUS),y)
|
||||
SHAIRPORT_SYNC_DEPENDENCIES += libglib2
|
||||
SHAIRPORT_SYNC_CONF_OPTS += --with-dbus-interface --with-mpris-interface
|
||||
define SHAIRPORT_SYNC_INSTALL_DBUS
|
||||
$(INSTALL) -m 0644 -D \
|
||||
$(@D)/scripts/shairport-sync-dbus-policy.conf \
|
||||
$(TARGET_DIR)/etc/dbus-1/system.d/shairport-sync-dbus.conf
|
||||
$(INSTALL) -m 0644 -D \
|
||||
$(@D)/scripts/shairport-sync-mpris-policy.conf \
|
||||
$(TARGET_DIR)/etc/dbus-1/system.d/shairport-sync-mpris.conf
|
||||
endef
|
||||
else
|
||||
SHAIRPORT_SYNC_CONF_OPTS += --without-dbus-interface --without-mpris-interface
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SHAIRPORT_SYNC_LIBSOXR),y)
|
||||
SHAIRPORT_SYNC_DEPENDENCIES += libsoxr
|
||||
SHAIRPORT_SYNC_CONF_OPTS += --with-soxr
|
||||
else
|
||||
SHAIRPORT_SYNC_CONF_OPTS += --without-soxr
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SHAIRPORT_SYNC_MQTT),y)
|
||||
SHAIRPORT_SYNC_DEPENDENCIES += avahi dbus mosquitto
|
||||
SHAIRPORT_SYNC_CONF_OPTS += --with-mqtt-client
|
||||
else
|
||||
SHAIRPORT_SYNC_CONF_OPTS += --without-mqtt-client
|
||||
endif
|
||||
|
||||
define SHAIRPORT_SYNC_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -D -m 0755 $(@D)/shairport-sync \
|
||||
$(TARGET_DIR)/usr/bin/shairport-sync
|
||||
$(INSTALL) -D -m 0644 $(@D)/scripts/shairport-sync.conf \
|
||||
$(TARGET_DIR)/etc/shairport-sync.conf
|
||||
$(SHAIRPORT_SYNC_INSTALL_DBUS)
|
||||
endef
|
||||
|
||||
define SHAIRPORT_SYNC_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -D -m 0755 package/shairport-sync/S99shairport-sync \
|
||||
$(TARGET_DIR)/etc/init.d/S99shairport-sync
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user