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.

65 lines
1.9 KiB

  1. #
  2. # Copyright (C) 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:=upmpdcli
  9. PKG_VERSION:=1.4.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://www.lesbonscomptes.com/upmpdcli/downloads
  13. PKG_HASH:=1d4489e76416b9cff2e98a68243d56bf46303890752ac18db382be2859b62bc3
  14. PKG_MAINTAINER:=Petko Bordjukov <bordjukov@gmail.com>
  15. PKG_LICENSE:=LGPL-2.1-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/upmpdcli
  21. SECTION:=sound
  22. CATEGORY:=Sound
  23. URL:=https://www.lesbonscomptes.com/upmpdcli
  24. DEPENDS:=+libupnpp +libmpdclient +libmicrohttpd +jsoncpp
  25. TITLE:=A UPnP front-end to MPD, the Music Player Daemon
  26. USERID:=upmpdcli=89:upmpdcli=89
  27. MENU:=1
  28. endef
  29. define Package/upmpdcli/description
  30. upmpdcli implements an UPnP Media Renderer, using MPD to perform the real work.
  31. endef
  32. define Package/upmpdcli/config
  33. source "$(SOURCE)/Config.in"
  34. endef
  35. define Package/upmpdcli/install
  36. $(INSTALL_DIR) $(1)/etc
  37. $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/upmpdcli.conf $(1)/etc/
  38. $(INSTALL_DIR) $(1)/etc/config
  39. $(INSTALL_CONF) ./files/upmpdcli.config $(1)/etc/config/upmpdcli
  40. $(INSTALL_DIR) $(1)/usr/bin
  41. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/upmpdcli $(1)/usr/bin/
  42. ifeq ($(CONFIG_PACKAGE_UPMPDCLI_SCCTL),y)
  43. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/scctl $(1)/usr/bin/
  44. endif
  45. $(INSTALL_DIR) $(1)/usr/share/upmpdcli
  46. ifneq ($(CONFIG_PACKAGE_UPMPDCLI_SC_WEB_INTERFACE),y)
  47. $(RM) -rf $(PKG_INSTALL_DIR)/usr/share/upmpdcli/web
  48. endif
  49. $(CP) $(PKG_INSTALL_DIR)/usr/share/upmpdcli $(1)/usr/share/
  50. $(INSTALL_DATA) ./files/upmpdcli.png $(1)/usr/share/upmpdcli/icon.png
  51. $(INSTALL_DIR) $(1)/etc/init.d
  52. $(INSTALL_BIN) ./files/upmpdcli.init $(1)/etc/init.d/upmpdcli
  53. endef
  54. $(eval $(call BuildPackage,upmpdcli))