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.

57 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2013 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=shairport
  9. PKG_VERSION:=2014-05-08
  10. PKG_RELEASE:=$(PKG_SOURCE_VERSION)
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=git://github.com/abrasive/shairport.git
  13. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  14. PKG_SOURCE_VERSION:=078b21043cdcef6ffad7452db27f036770b23b0c
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/shairport
  18. SECTION:=multimedia
  19. CATEGORY:=Multimedia
  20. DEPENDS:=+libpthread +avahi-utils +libopenssl +libao +libavahi-client \
  21. +alsa-utils
  22. TITLE:=ShairPort AirPort Express emulator
  23. endef
  24. define Package/shairport/description
  25. This program emulates an AirPort Express for the purpose of streaming
  26. music from iTunes and compatible iPods. It implements a server for the
  27. Apple RAOP protocol.
  28. ShairPort does not support AirPlay v2 (video and photo streaming).
  29. It supports multiple simultaneous streams, if your audio output chain
  30. (as detected by libao) does so.
  31. endef
  32. TARGET_CFLAGS += $(FPIC)
  33. LIBS:=-lao -lm -lcrypto -lpthread -lavahi-common -lavahi-client -lasound
  34. MAKE_FLAGS += \
  35. CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
  36. LDFLAGS="$(TARGET_LDFLAGS) $(LIBS)"
  37. define Package/shairport/install
  38. $(INSTALL_DIR) $(1)/usr/sbin
  39. $(INSTALL_BIN) $(PKG_BUILD_DIR)/shairport $(1)/usr/sbin/
  40. $(INSTALL_DIR) $(1)/etc/init.d/
  41. $(INSTALL_BIN) files/shairport.init $(1)/etc/init.d/shairport
  42. $(INSTALL_DIR) $(1)/etc/config
  43. $(INSTALL_CONF) files/shairport.config $(1)/etc/config/shairport
  44. endef
  45. $(eval $(call BuildPackage,shairport))