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.

50 lines
1.4 KiB

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