mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
41
package/upmpdcli/upmpdcli.mk
Normal file
41
package/upmpdcli/upmpdcli.mk
Normal file
@@ -0,0 +1,41 @@
|
||||
################################################################################
|
||||
#
|
||||
# upmpdcli
|
||||
#
|
||||
################################################################################
|
||||
|
||||
UPMPDCLI_VERSION = 1.4.2
|
||||
UPMPDCLI_SITE = http://www.lesbonscomptes.com/upmpdcli/downloads
|
||||
UPMPDCLI_LICENSE = LGPL-2.1+
|
||||
UPMPDCLI_LICENSE_FILES = COPYING
|
||||
UPMPDCLI_DEPENDENCIES = host-pkgconf libmpdclient libupnpp libmicrohttpd jsoncpp
|
||||
|
||||
# Disable spotify plugin which requires dlfcn.h
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
UPMPDCLI_CONF_OPTS = --disable-spotify
|
||||
endif
|
||||
|
||||
# Upmpdcli only runs if user upmpdcli exists
|
||||
define UPMPDCLI_USERS
|
||||
upmpdcli -1 upmpdcli -1 * - - audio Upmpdcli MPD UPnP Renderer Front-End
|
||||
endef
|
||||
|
||||
define UPMPDCLI_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -D -m 0755 package/upmpdcli/S99upmpdcli $(TARGET_DIR)/etc/init.d/S99upmpdcli
|
||||
endef
|
||||
|
||||
define UPMPDCLI_INSTALL_INIT_SYSTEMD
|
||||
$(INSTALL) -D -m 644 $(@D)/systemd/upmpdcli.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/upmpdcli.service
|
||||
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
||||
ln -sf ../../../../usr/lib/systemd/system/upmpdcli.service \
|
||||
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/upmpdcli.service
|
||||
endef
|
||||
|
||||
define UPMPDCLI_INSTALL_CONF_FILE
|
||||
$(INSTALL) -D -m 0755 $(@D)/src/upmpdcli.conf-dist $(TARGET_DIR)/etc/upmpdcli.conf
|
||||
endef
|
||||
|
||||
UPMPDCLI_POST_INSTALL_TARGET_HOOKS += UPMPDCLI_INSTALL_CONF_FILE
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user