2 # Copyright (C) 2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://www.lesbonscomptes.com
/upmpdcli
/downloads
16 PKG_HASH
:=55e3d27bea5bef4560f319137f1a5c7d08abbba5a9aae90ee3240903fdb8c3e4
19 PKG_LICENSE
:=LGPL-2.1
-or-later
20 PKG_LICENSE_FILES
:=COPYING
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/upmpdcli
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
37 define Package
/upmpdcli
/description
38 upmpdcli implements an UPnP Media Renderer
, using MPD to perform the real work.
41 define Package
/upmpdcli
/config
42 source
"$(SOURCE)/Config.in"
45 define Package
/upmpdcli
/conffiles
49 define Package
/upmpdcli
/install
50 $(INSTALL_DIR
) $(1)/etc
51 $(INSTALL_CONF
) $(PKG_INSTALL_DIR
)/etc
/upmpdcli.conf
$(1)/etc
/
52 $(INSTALL_DIR
) $(1)/etc
/config
53 $(INSTALL_CONF
) .
/files
/upmpdcli.config
$(1)/etc
/config
/upmpdcli
54 $(INSTALL_DIR
) $(1)/usr
/bin
55 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/upmpdcli
$(1)/usr
/bin
/
56 ifeq ($(CONFIG_PACKAGE_UPMPDCLI_SCCTL
),y
)
57 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/scctl
$(1)/usr
/bin
/
59 $(INSTALL_DIR
) $(1)/usr
/share
/upmpdcli
60 ifneq ($(CONFIG_PACKAGE_UPMPDCLI_SC_WEB_INTERFACE
),y
)
61 $(RM
) -rf
$(PKG_INSTALL_DIR
)/usr
/share
/upmpdcli
/web
63 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/upmpdcli
$(1)/usr
/share
/
64 $(INSTALL_DATA
) .
/files
/upmpdcli.png
$(1)/usr
/share
/upmpdcli
/icon.png
65 $(INSTALL_DIR
) $(1)/etc
/init.d
66 $(INSTALL_BIN
) .
/files
/upmpdcli.init
$(1)/etc
/init.d
/upmpdcli
69 $(eval
$(call BuildPackage
,upmpdcli
))