Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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:=https://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_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))