shairport-sync: update to latest version

- update to latest (2.4.1) version
- add support for config files
- switch uci to config files
- based on https://github.com/openwrt/packages/pull/1815
- merge maintainers
- add openssl/polarssl build variants

Signed-off-by: Mike Brady <mikebrady@eircom.net>
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
This commit is contained in:
Álvaro Fernández Rojas
2015-09-30 16:33:37 +02:00
parent 52e2f0e80b
commit 855c3e4c61
3 changed files with 212 additions and 99 deletions
+53 -15
View File
@@ -9,7 +9,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=shairport-sync
PKG_VERSION:=2.1.15
PKG_VERSION:=2.4.1
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
@@ -17,13 +17,12 @@ PKG_SOURCE_URL:=git://github.com/mikebrady/shairport-sync.git
PKG_SOURCE_VERSION:=$(PKG_VERSION)
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>, Mike Brady <mikebrady@eircom.net>
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=COPYING LICENSES shairport.c
PKG_BUILD_PARALLEL:=1
PKG_FIXUP:=autoreconf
include $(INCLUDE_DIR)/package.mk
@@ -32,31 +31,70 @@ CONFIGURE_ARGS+= \
--with-alsa \
--with-avahi \
--with-soxr \
--with-ssl=openssl
--with-metadata
ifeq ($(BUILD_VARIANT),openssl)
CONFIGURE_ARGS+= --with-ssl=openssl
endif
ifeq ($(BUILD_VARIANT),polarssl)
CONFIGURE_ARGS+= --with-ssl=polarssl
endif
define Package/shairport-sync
define Package/shairport-sync/default
SECTION:=sound
CATEGORY:=Sound
TITLE:=iPhone/iTunes compatible audio player
DEPENDS:= +libpthread +libopenssl +libavahi-client +alsa-lib +libdaemon +libsoxr +libpopt
MAINTAINER:=Mike Brady <mikebrady@eircom.net>
TITLE:=iPhone/iTunes/AirPlay/Quicktime Player compatible Audio Player
DEPENDS:=@AUDIO_SUPPORT +libpthread +libavahi-client +alsa-lib +libconfig +libdaemon +libsoxr +libpopt
URL:=http://github.com/mikebrady/shairport-sync
endef
define Package/shairport-sync/description
Shairport Sync is server software that implements the Apple-originated RAOP protocol for
playback of audio from a compatible remote client such as the iPhone, iTunes, Apple TV, Quicktime Player or forked-daapd.
Shairport Sync implements audio synchronisation, supporting multi-room use.
Shairport Sync supports audio only.
define Package/shairport-sync-openssl
$(Package/shairport-sync/default)
TITLE+= (openssl)
DEPENDS+= +PACKAGE_shairport-sync-openssl:libopenssl
VARIANT:=openssl
endef
define Package/shairport-sync/install
define Package/shairport-sync-polarssl
$(Package/shairport-sync/default)
TITLE+= (polarssl)
DEPENDS+= +PACKAGE_shairport-sync-polarssl:libpolarssl
VARIANT:=polarssl
DEFAULT_VARIANT:=1
endef
define Package/shairport-sync/default/description
Shairport Sync plays audio from iTunes and AirPlay sources, including
iOS devices, Quicktime Player and third party sources such as forkedDaapd.
Audio played by a Shairport Sync-powered device stays synchronised with the source
and hence with similar devices playing the same source.
Thus, for example, synchronised multi-room audio is possible without difficulty.
(Hence the name Shairport Sync, BTW.)
Shairport Sync does not support AirPlay video or photo streaming.
Ensure Kernel Modules > Sound Support > kmod-sound-core is selected.
Also select kmod-usb-audio if you want to use USB-connected sound cards.
endef
Package/shairport-sync-openssl/description = $(Package/shairport-sync/default/description)
Package/shairport-sync-polarssl/description = $(Package/shairport-sync/default/description)
define Package/shairport-sync/default/conffiles
/etc/shairport-sync.conf
endef
Package/shairport-sync-openssl/conffiles = $(Package/shairport-sync/default/conffiles)
Package/shairport-sync-polarssl/conffiles = $(Package/shairport-sync/default/conffiles)
define Package/shairport-sync/default/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/shairport-sync $(1)/usr/bin/
$(INSTALL_DIR) $(1)/etc
$(INSTALL_DATA) $(PKG_BUILD_DIR)/scripts/shairport-sync.conf $(1)/etc/shairport-sync.conf
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/shairport-sync.init $(1)/etc/init.d/shairport-sync
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_DATA) ./files/shairport-sync.config $(1)/etc/config/shairport-sync
endef
Package/shairport-sync-openssl/install = $(Package/shairport-sync/default/install)
Package/shairport-sync-polarssl/install = $(Package/shairport-sync/default/install)
$(eval $(call BuildPackage,shairport-sync))
$(eval $(call BuildPackage,shairport-sync-openssl))
$(eval $(call BuildPackage,shairport-sync-polarssl))