Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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_VERSION:=2016-01-01
  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:=ce80e005908f41d0e6fde1c4a21e9cb8ee54007b
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  16. PKG_MIRROR_HASH:=55fe50e21ab5998d745626bd3f98fdbbf2f670b87c26823f5654537a29e7f6c9
  17. PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
  18. PKG_LICENSE:=MIT
  19. PKG_LICENSE_FILES:=LICENSE
  20. PKG_FIXUP:=autoreconf
  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))