sysklogd: fix build on musl
[buildroot-gz.git] / package / minidlna / minidlna.mk
blob0e765e80f79fe2f25ce6f724c9f9897581731e14
1 ################################################################################
3 # minidlna
5 ################################################################################
7 MINIDLNA_VERSION = 1.1.5
8 MINIDLNA_SITE = http://downloads.sourceforge.net/project/minidlna/minidlna/$(MINIDLNA_VERSION)
9 MINIDLNA_LICENSE = GPLv2, BSD-3c
10 MINIDLNA_LICENSE_FILES = COPYING LICENCE.miniupnpd
12 MINIDLNA_DEPENDENCIES = \
13 $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) host-gettext \
14 ffmpeg flac libvorbis libogg libid3tag libexif jpeg sqlite \
15 host-xutil_makedepend
17 MINIDLNA_CONF_OPTS = \
18 --disable-static
20 define MINIDLNA_INSTALL_CONF
21 $(INSTALL) -D -m 644 $(@D)/minidlna.conf $(TARGET_DIR)/etc/minidlna.conf
22 endef
24 MINIDLNA_POST_INSTALL_TARGET_HOOKS += MINIDLNA_INSTALL_CONF
26 define MINIDLNA_INSTALL_INIT_SYSV
27 $(INSTALL) -D -m 0755 package/minidlna/S60minidlnad \
28 $(TARGET_DIR)/etc/init.d/S60minidlnad
29 endef
31 define MINIDLNA_INSTALL_INIT_SYSTEMD
32 $(INSTALL) -D -m 0755 package/minidlna/minidlnad.service \
33 $(TARGET_DIR)/usr/lib/systemd/system/minidlnad.service
35 mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
37 ln -fs ../../../../usr/lib/systemd/system/minidlnad.service \
38 $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/minidlnad.service
39 endef
41 $(eval $(autotools-package))