Merge pull request #12342 from PolynomialDivision/feature/add_dawn_node_exporter
[feed/packages.git] / sound / upmpdcli / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=upmpdcli
11 PKG_VERSION:=1.4.12
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://www.lesbonscomptes.com/upmpdcli/downloads
16 PKG_HASH:=bffc78c140ad688987894ea5a1e162e6dcbc7dcae7d2cc322a894f5ea2a2f53b
17
18 PKG_MAINTAINER:=Petko Bordjukov <bordjukov@gmail.com>
19 PKG_LICENSE:=LGPL-2.1-or-later
20 PKG_LICENSE_FILES:=COPYING
21
22 PKG_INSTALL:=1
23 PKG_BUILD_PARALLEL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/upmpdcli
28 SECTION:=sound
29 CATEGORY:=Sound
30 URL:=https://www.lesbonscomptes.com/upmpdcli
31 DEPENDS:=+libupnpp +libmpdclient +jsoncpp
32 TITLE:=A UPnP front-end to MPD, the Music Player Daemon
33 USERID:=upmpdcli=89:upmpdcli=89
34 MENU:=1
35 endef
36
37 define Package/upmpdcli/description
38 upmpdcli implements an UPnP Media Renderer, using MPD to perform the real work.
39 endef
40
41 define Package/upmpdcli/config
42 source "$(SOURCE)/Config.in"
43 endef
44
45 TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lm)
46
47 define Package/upmpdcli/conffiles
48 /etc/config/upmpdcli
49 endef
50
51 define Package/upmpdcli/install
52 $(INSTALL_DIR) $(1)/etc
53 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/upmpdcli.conf $(1)/etc/
54 $(INSTALL_DIR) $(1)/etc/config
55 $(INSTALL_CONF) ./files/upmpdcli.config $(1)/etc/config/upmpdcli
56 $(INSTALL_DIR) $(1)/usr/bin
57 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/upmpdcli $(1)/usr/bin/
58 ifeq ($(CONFIG_PACKAGE_UPMPDCLI_SCCTL),y)
59 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/scctl $(1)/usr/bin/
60 endif
61 $(INSTALL_DIR) $(1)/usr/share/upmpdcli
62 ifneq ($(CONFIG_PACKAGE_UPMPDCLI_SC_WEB_INTERFACE),y)
63 $(RM) -rf $(PKG_INSTALL_DIR)/usr/share/upmpdcli/web
64 endif
65 $(CP) $(PKG_INSTALL_DIR)/usr/share/upmpdcli $(1)/usr/share/
66 $(INSTALL_DATA) ./files/upmpdcli.png $(1)/usr/share/upmpdcli/icon.png
67 $(INSTALL_DIR) $(1)/etc/init.d
68 $(INSTALL_BIN) ./files/upmpdcli.init $(1)/etc/init.d/upmpdcli
69 endef
70
71 $(eval $(call BuildPackage,upmpdcli))