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.

51 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2014-2016 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:=shairplay
  9. PKG_SOURCE_DATE:=2018-08-24
  10. PKG_SOURCE_VERSION:=096b61ad14c90169f438e690d096e3fcf87e504e
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_DATE).tar.gz
  13. PKG_SOURCE_URL:=https://codeload.github.com/juhovh/shairplay/tar.gz/$(PKG_SOURCE_VERSION)?
  14. PKG_HASH:=7e2b013ffe75ea2f13fb12b1aa38b8e2e8b1899ac292d57f05d7b352a3a181cf
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_SOURCE_VERSION)
  16. PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
  17. PKG_LICENSE:=MIT
  18. PKG_LICENSE_FILES:=LICENSE
  19. PKG_FIXUP:=autoreconf
  20. PKG_BUILD_PARALLEL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/shairplay
  23. SECTION:=sound
  24. CATEGORY:=Sound
  25. DEPENDS:=+libao +libavahi-compat-libdnssd +libltdl +libpthread
  26. TITLE:=Shairplay
  27. endef
  28. define Package/shairplay/description
  29. Free portable AirPlay server implementation similar to ShairPort.
  30. endef
  31. define Package/shairplay/install
  32. $(INSTALL_DIR) $(1)/usr/bin
  33. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/shairplay $(1)/usr/bin/
  34. $(INSTALL_DIR) $(1)/usr/share/shairplay
  35. $(INSTALL_DATA) $(PKG_BUILD_DIR)/airport.key $(1)/usr/share/shairplay/
  36. $(INSTALL_DIR) $(1)/etc/init.d
  37. $(INSTALL_BIN) files/shairplay.init $(1)/etc/init.d/shairplay
  38. $(INSTALL_DIR) $(1)/etc/config
  39. $(INSTALL_CONF) files/shairplay.config $(1)/etc/config/shairplay
  40. endef
  41. $(eval $(call BuildPackage,shairplay))