2013-05-06 15:13:10 +08:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# minidlna
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2015-10-03 01:24:14 +08:00
|
|
|
MINIDLNA_VERSION = 1.1.5
|
2013-05-06 15:13:10 +08:00
|
|
|
MINIDLNA_SITE = http://downloads.sourceforge.net/project/minidlna/minidlna/$(MINIDLNA_VERSION)
|
2017-03-30 21:43:32 +08:00
|
|
|
MINIDLNA_LICENSE = GPL-2.0, BSD-3c
|
2014-01-04 04:20:45 +08:00
|
|
|
MINIDLNA_LICENSE_FILES = COPYING LICENCE.miniupnpd
|
2013-05-06 15:13:10 +08:00
|
|
|
|
|
|
|
MINIDLNA_DEPENDENCIES = \
|
2014-06-12 14:06:36 +08:00
|
|
|
$(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) host-gettext \
|
2015-12-30 19:21:59 +08:00
|
|
|
ffmpeg flac libvorbis libogg libid3tag libexif jpeg sqlite \
|
2013-05-06 15:13:10 +08:00
|
|
|
host-xutil_makedepend
|
|
|
|
|
2014-09-28 03:32:44 +08:00
|
|
|
MINIDLNA_CONF_OPTS = \
|
2014-01-04 04:20:45 +08:00
|
|
|
--disable-static
|
2013-05-06 15:13:10 +08:00
|
|
|
|
2015-02-24 07:39:23 +08:00
|
|
|
define MINIDLNA_INSTALL_CONF
|
|
|
|
$(INSTALL) -D -m 644 $(@D)/minidlna.conf $(TARGET_DIR)/etc/minidlna.conf
|
|
|
|
endef
|
|
|
|
|
|
|
|
MINIDLNA_POST_INSTALL_TARGET_HOOKS += MINIDLNA_INSTALL_CONF
|
|
|
|
|
2015-02-24 07:39:22 +08:00
|
|
|
define MINIDLNA_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -D -m 0755 package/minidlna/S60minidlnad \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S60minidlnad
|
|
|
|
endef
|
|
|
|
|
|
|
|
define MINIDLNA_INSTALL_INIT_SYSTEMD
|
|
|
|
$(INSTALL) -D -m 0755 package/minidlna/minidlnad.service \
|
2015-07-14 02:38:44 +08:00
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/minidlnad.service
|
2015-02-24 07:39:22 +08:00
|
|
|
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
|
|
|
2015-07-14 02:38:44 +08:00
|
|
|
ln -fs ../../../../usr/lib/systemd/system/minidlnad.service \
|
2015-02-24 07:39:22 +08:00
|
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/minidlnad.service
|
|
|
|
endef
|
|
|
|
|
2014-01-04 04:20:45 +08:00
|
|
|
$(eval $(autotools-package))
|