2014-10-25 00:55:41 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# shairport-sync
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2018-07-18 12:30:20 +02:00
|
|
|
SHAIRPORT_SYNC_VERSION = 3.2.1
|
2014-10-25 00:55:41 +02:00
|
|
|
SHAIRPORT_SYNC_SITE = $(call github,mikebrady,shairport-sync,$(SHAIRPORT_SYNC_VERSION))
|
|
|
|
|
2017-03-30 15:43:38 +02:00
|
|
|
SHAIRPORT_SYNC_LICENSE = MIT, BSD-3-Clause
|
2014-10-25 00:55:41 +02:00
|
|
|
SHAIRPORT_SYNC_LICENSE_FILES = LICENSES
|
2015-09-08 08:49:43 +02:00
|
|
|
SHAIRPORT_SYNC_DEPENDENCIES = alsa-lib libconfig libdaemon popt host-pkgconf
|
2014-11-30 12:42:56 +01:00
|
|
|
|
2015-10-11 23:02:49 +02:00
|
|
|
# git clone, no configure
|
2014-10-25 00:55:41 +02:00
|
|
|
SHAIRPORT_SYNC_AUTORECONF = YES
|
2014-11-30 12:42:56 +01:00
|
|
|
|
2015-09-08 08:49:43 +02:00
|
|
|
SHAIRPORT_SYNC_CONF_OPTS = --with-alsa \
|
|
|
|
--with-metadata \
|
|
|
|
--with-pipe \
|
|
|
|
--with-stdout
|
2014-10-25 00:55:41 +02:00
|
|
|
|
2017-09-05 21:05:25 +02:00
|
|
|
SHAIRPORT_SYNC_CONF_ENV += LIBS="$(SHAIRPORT_SYNC_CONF_LIBS)"
|
|
|
|
|
2014-11-04 14:04:29 +01:00
|
|
|
# Avahi or tinysvcmdns (shaiport-sync bundles its own version of tinysvcmdns).
|
|
|
|
# Avahi support needs libavahi-client, which is built by avahi if avahi-daemon
|
|
|
|
# and dbus is selected. Since there is no BR2_PACKAGE_LIBAVAHI_CLIENT config
|
|
|
|
# option yet, use the avahi-daemon and dbus congig symbols to check for
|
|
|
|
# libavahi-client.
|
|
|
|
ifeq ($(BR2_PACKAGE_AVAHI_DAEMON)$(BR2_PACKAGE_DBUS),yy)
|
2014-10-25 00:55:41 +02:00
|
|
|
SHAIRPORT_SYNC_DEPENDENCIES += avahi
|
|
|
|
SHAIRPORT_SYNC_CONF_OPTS += --with-avahi
|
|
|
|
else
|
|
|
|
SHAIRPORT_SYNC_CONF_OPTS += --with-tinysvcmdns
|
|
|
|
endif
|
|
|
|
|
2017-03-11 09:00:24 +01:00
|
|
|
# OpenSSL or mbedTLS
|
2014-10-25 00:55:41 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
SHAIRPORT_SYNC_DEPENDENCIES += openssl
|
2014-10-30 10:03:09 +01:00
|
|
|
SHAIRPORT_SYNC_CONF_OPTS += --with-ssl=openssl
|
2014-10-25 00:55:41 +02:00
|
|
|
else
|
2017-03-11 09:00:24 +01:00
|
|
|
SHAIRPORT_SYNC_DEPENDENCIES += mbedtls
|
|
|
|
SHAIRPORT_SYNC_CONF_OPTS += --with-ssl=mbedtls
|
2017-09-05 21:05:25 +02:00
|
|
|
SHAIRPORT_SYNC_CONF_LIBS += -lmbedx509 -lmbedcrypto
|
|
|
|
ifeq ($(BR2_PACKAGE_MBEDTLS_COMPRESSION),y)
|
|
|
|
SHAIRPORT_SYNC_CONF_LIBS += -lz
|
|
|
|
endif
|
2014-10-25 00:55:41 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SHAIRPORT_SYNC_LIBSOXR),y)
|
|
|
|
SHAIRPORT_SYNC_DEPENDENCIES += libsoxr
|
|
|
|
SHAIRPORT_SYNC_CONF_OPTS += --with-soxr
|
|
|
|
endif
|
|
|
|
|
|
|
|
define SHAIRPORT_SYNC_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/shairport-sync \
|
|
|
|
$(TARGET_DIR)/usr/bin/shairport-sync
|
2015-09-08 08:49:43 +02:00
|
|
|
$(INSTALL) -D -m 0644 $(@D)/scripts/shairport-sync.conf \
|
|
|
|
$(TARGET_DIR)/etc/shairport-sync.conf
|
2014-10-25 00:55:41 +02:00
|
|
|
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))
|