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.

69 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.5.13
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://www.lesbonscomptes.com/upmpdcli/downloads
  13. PKG_HASH:=c7726f0d4062ae253159102e499759bd513d3c68bfe16c44997ee3fba35509f8
  14. PKG_MAINTAINER:=
  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 +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/conffiles
  36. /etc/config/upmpdcli
  37. endef
  38. define Package/upmpdcli/install
  39. $(INSTALL_DIR) $(1)/etc
  40. $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/upmpdcli.conf $(1)/etc/
  41. $(INSTALL_DIR) $(1)/etc/config
  42. $(INSTALL_CONF) ./files/upmpdcli.config $(1)/etc/config/upmpdcli
  43. $(INSTALL_DIR) $(1)/usr/bin
  44. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/upmpdcli $(1)/usr/bin/
  45. ifeq ($(CONFIG_PACKAGE_UPMPDCLI_SCCTL),y)
  46. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/scctl $(1)/usr/bin/
  47. endif
  48. $(INSTALL_DIR) $(1)/usr/share/upmpdcli
  49. ifneq ($(CONFIG_PACKAGE_UPMPDCLI_SC_WEB_INTERFACE),y)
  50. $(RM) -rf $(PKG_INSTALL_DIR)/usr/share/upmpdcli/web
  51. endif
  52. $(CP) $(PKG_INSTALL_DIR)/usr/share/upmpdcli $(1)/usr/share/
  53. $(INSTALL_DATA) ./files/upmpdcli.png $(1)/usr/share/upmpdcli/icon.png
  54. $(INSTALL_DIR) $(1)/etc/init.d
  55. $(INSTALL_BIN) ./files/upmpdcli.init $(1)/etc/init.d/upmpdcli
  56. endef
  57. $(eval $(call BuildPackage,upmpdcli))