a5c6370fd5ab80d072a76eb88ac28de48ae72b74
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / upmpdcli / upmpdcli.mk
1 ################################################################################
2 #
3 # upmpdcli
4 #
5 ################################################################################
6
7 UPMPDCLI_VERSION = 0.8.6
8 UPMPDCLI_SITE = http://www.lesbonscomptes.com/upmpdcli/downloads
9 UPMPDCLI_LICENSE = GPLv2+
10 UPMPDCLI_LICENSE_FILES = COPYING
11 UPMPDCLI_DEPENDENCIES = libmpdclient libupnpp
12
13 ifeq ($(BR2_STATIC_LIBS),y)
14 # Upmpdcli forgets to take the dependencies of libupnpp into
15 # consideration, breaking static linking, so help it.
16 # Libupnpp unfortunately doesn't provide a .pc file, so manually
17 # handle the dependencies here.
18 # The build system doesn't expand LIBS from the configure step, so
19 # manually pass it to make.
20 UPMPDCLI_DEPENDENCIES += host-pkgconf
21 UPMPDCLI_MAKE_OPTS = \
22         LIBS='$(shell $(PKG_CONFIG_HOST_BINARY) --libs expat libcurl libupnp)'
23 endif
24
25 # Upmpdcli only runs if user upmpdcli exists
26 define UPMPDCLI_USERS
27         upmpdcli -1 upmpdcli -1 * - - - Upmpdcli MPD UPnP Renderer Front-End
28 endef
29
30 define UPMPDCLI_INSTALL_INIT_SYSV
31         $(INSTALL) -D -m 0755 package/upmpdcli/S99upmpdcli $(TARGET_DIR)/etc/init.d/S99upmpdcli
32 endef
33
34 define UPMPDCLI_INSTALL_CONF_FILE
35         $(INSTALL) -D -m 0755 $(@D)/src/upmpdcli.conf $(TARGET_DIR)/etc/upmpdcli.conf
36 endef
37
38 UPMPDCLI_POST_INSTALL_TARGET_HOOKS += UPMPDCLI_INSTALL_CONF_FILE
39
40 $(eval $(autotools-package))