You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. # updated to work with latest source from abrasive
  7. #
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=shairport-sync
  10. PKG_VERSION:=2.1.15
  11. PKG_RELEASE:=1
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_URL:=git://github.com/mikebrady/shairport-sync.git
  14. PKG_SOURCE_VERSION:=$(PKG_VERSION)
  15. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  16. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  17. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  18. PKG_LICENSE:=MIT
  19. PKG_LICENSE_FILES:=COPYING LICENSES shairport.c
  20. PKG_BUILD_PARALLEL:=1
  21. PKG_FIXUP:=autoreconf
  22. include $(INCLUDE_DIR)/package.mk
  23. CONFIGURE_ARGS+= \
  24. --with-alsa \
  25. --with-avahi \
  26. --with-soxr \
  27. --with-ssl=openssl
  28. define Package/shairport-sync
  29. SECTION:=sound
  30. CATEGORY:=Sound
  31. TITLE:=iPhone/iTunes compatible audio player
  32. DEPENDS:= +libpthread +libopenssl +libavahi-client +alsa-lib +libdaemon +libsoxr +libpopt
  33. MAINTAINER:=Mike Brady <mikebrady@eircom.net>
  34. endef
  35. define Package/shairport-sync/description
  36. Shairport Sync is server software that implements the Apple-originated RAOP protocol for
  37. playback of audio from a compatible remote client such as the iPhone, iTunes, Apple TV, Quicktime Player or forked-daapd.
  38. Shairport Sync implements audio synchronisation, supporting multi-room use.
  39. Shairport Sync supports audio only.
  40. endef
  41. define Package/shairport-sync/install
  42. $(INSTALL_DIR) $(1)/usr/bin
  43. $(INSTALL_BIN) $(PKG_BUILD_DIR)/shairport-sync $(1)/usr/bin/
  44. $(INSTALL_DIR) $(1)/etc/init.d
  45. $(INSTALL_BIN) ./files/shairport-sync.init $(1)/etc/init.d/shairport-sync
  46. $(INSTALL_DIR) $(1)/etc/config
  47. $(INSTALL_DATA) ./files/shairport-sync.config $(1)/etc/config/shairport-sync
  48. endef
  49. $(eval $(call BuildPackage,shairport-sync))