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.

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