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.

56 lines
1.5 KiB

  1. #
  2. # Copyright (C) 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:=shairplay
  9. PKG_VERSION:=2014-10-27
  10. PKG_RELEASE:=$(PKG_SOURCE_VERSION)
  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:=64d59e3087f829006d091fa0d114efb50972a2bf
  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. include $(INCLUDE_DIR)/package.mk
  20. PKG_FIXUP:=libtool
  21. define Package/shairplay
  22. SECTION:=multimedia
  23. CATEGORY:=Multimedia
  24. DEPENDS:=+avahi-daemon +libao +libavahi-compat-libdnssd +libltdl +libpthread
  25. TITLE:=Shairplay
  26. endef
  27. define Build/Configure
  28. (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
  29. ./autogen.sh;)
  30. $(call Build/Configure/Default)
  31. endef
  32. define Package/shairplay/description
  33. Free portable AirPlay server implementation similar to ShairPort.
  34. endef
  35. define Package/shairplay/install
  36. $(INSTALL_DIR) $(1)/usr/bin
  37. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/shairplay $(1)/usr/bin/
  38. $(INSTALL_DIR) $(1)/usr/share/shairplay
  39. $(INSTALL_DATA) $(PKG_BUILD_DIR)/airport.key $(1)/usr/share/shairplay/
  40. $(INSTALL_DIR) $(1)/etc/init.d
  41. $(INSTALL_BIN) files/shairplay.init $(1)/etc/init.d/shairplay
  42. $(INSTALL_DIR) $(1)/etc/config
  43. $(INSTALL_CONF) files/shairplay.config $(1)/etc/config/shairplay
  44. endef
  45. $(eval $(call BuildPackage,shairplay))