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.

67 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.7
  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:=55dec356c98e16f00b1e547f9f4a1c03756317102e91982f93eca8cc4eda115e
  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 +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. TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lm)
  36. define Package/upmpdcli/install
  37. $(INSTALL_DIR) $(1)/etc
  38. $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/upmpdcli.conf $(1)/etc/
  39. $(INSTALL_DIR) $(1)/etc/config
  40. $(INSTALL_CONF) ./files/upmpdcli.config $(1)/etc/config/upmpdcli
  41. $(INSTALL_DIR) $(1)/usr/bin
  42. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/upmpdcli $(1)/usr/bin/
  43. ifeq ($(CONFIG_PACKAGE_UPMPDCLI_SCCTL),y)
  44. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/scctl $(1)/usr/bin/
  45. endif
  46. $(INSTALL_DIR) $(1)/usr/share/upmpdcli
  47. ifneq ($(CONFIG_PACKAGE_UPMPDCLI_SC_WEB_INTERFACE),y)
  48. $(RM) -rf $(PKG_INSTALL_DIR)/usr/share/upmpdcli/web
  49. endif
  50. $(CP) $(PKG_INSTALL_DIR)/usr/share/upmpdcli $(1)/usr/share/
  51. $(INSTALL_DATA) ./files/upmpdcli.png $(1)/usr/share/upmpdcli/icon.png
  52. $(INSTALL_DIR) $(1)/etc/init.d
  53. $(INSTALL_BIN) ./files/upmpdcli.init $(1)/etc/init.d/upmpdcli
  54. endef
  55. $(eval $(call BuildPackage,upmpdcli))