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.

60 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2013-2014 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-10-28
  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:=d679d19a4bd66cc220dabfd23ad748c34e95995c
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  16. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  17. PKG_LICENSE:=MIT
  18. PKG_LICENSE_FILES:=LICENSES
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/shairport
  21. SECTION:=multimedia
  22. CATEGORY:=Multimedia
  23. DEPENDS:=+libpthread +libopenssl +libavahi-client +alsa-lib
  24. TITLE:=ShairPort AirPort Express emulator
  25. endef
  26. define Package/shairport/description
  27. This program emulates an AirPort Express for the purpose of streaming
  28. music from iTunes and compatible iPods. It implements a server for the
  29. Apple RAOP protocol.
  30. ShairPort does not support AirPlay v2 (video and photo streaming).
  31. It supports multiple simultaneous streams, if your audio output chain
  32. (as detected by libao) does so.
  33. endef
  34. TARGET_CFLAGS += $(FPIC)
  35. LIBS:=-lm -lcrypto -lpthread -lavahi-common -lavahi-client -lasound
  36. MAKE_FLAGS += \
  37. CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
  38. LDFLAGS="$(TARGET_LDFLAGS) $(LIBS)"
  39. define Package/shairport/install
  40. $(INSTALL_DIR) $(1)/usr/bin
  41. $(INSTALL_BIN) $(PKG_BUILD_DIR)/shairport $(1)/usr/bin/
  42. $(INSTALL_DIR) $(1)/etc/init.d/
  43. $(INSTALL_BIN) files/shairport.init $(1)/etc/init.d/shairport
  44. $(INSTALL_DIR) $(1)/etc/config
  45. $(INSTALL_CONF) files/shairport.config $(1)/etc/config/shairport
  46. endef
  47. $(eval $(call BuildPackage,shairport))