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.

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