2013-05-06 09:13:10 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# minidlna
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2015-10-02 19:24:14 +02:00
|
|
|
MINIDLNA_VERSION = 1.1.5
|
2013-05-06 09:13:10 +02:00
|
|
|
MINIDLNA_SITE = http://downloads.sourceforge.net/project/minidlna/minidlna/$(MINIDLNA_VERSION)
|
|
|
|
MINIDLNA_LICENSE = GPLv2 BSD-3c
|
2014-01-03 21:20:45 +01:00
|
|
|
MINIDLNA_LICENSE_FILES = COPYING LICENCE.miniupnpd
|
2013-05-06 09:13:10 +02:00
|
|
|
|
|
|
|
MINIDLNA_DEPENDENCIES = \
|
2014-06-12 08:06:36 +02:00
|
|
|
$(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) host-gettext \
|
2013-05-06 09:13:10 +02:00
|
|
|
ffmpeg flac libvorbis libogg libid3tag libexif libjpeg sqlite \
|
|
|
|
host-xutil_makedepend
|
|
|
|
|
2014-12-03 22:41:29 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
2014-01-08 09:00:11 +01:00
|
|
|
# the configure script / Makefile forgets to link with some of the dependent
|
|
|
|
# libraries breaking static linking, so help it along
|
2015-11-19 00:31:06 +01:00
|
|
|
MINIDLNA_PKGCONFIG_DEPS = libavcodec libexif vorbis sqlite3
|
|
|
|
MINIDLNA_STATIC_LIBS += `$(PKG_CONFIG_HOST_BINARY) --libs $(MINIDLNA_PKGCONFIG_DEPS)`
|
2015-07-24 20:38:27 +02:00
|
|
|
MINIDLNA_STATIC_LIBS += $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),-lintl)
|
|
|
|
MINIDLNA_CONF_ENV += LIBS="$(MINIDLNA_STATIC_LIBS)"
|
2014-01-08 09:00:11 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
MINIDLNA_CONF_OPTS = \
|
2014-01-03 21:20:45 +01:00
|
|
|
--disable-static
|
2014-01-08 09:00:11 +01:00
|
|
|
endif
|
2013-05-06 09:13:10 +02:00
|
|
|
|
2015-02-24 00:39:23 +01: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 00:39:22 +01: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-13 20:38:44 +02:00
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/minidlnad.service
|
2015-02-24 00:39:22 +01:00
|
|
|
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
|
|
|
2015-07-13 20:38:44 +02:00
|
|
|
ln -fs ../../../../usr/lib/systemd/system/minidlnad.service \
|
2015-02-24 00:39:22 +01:00
|
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/minidlnad.service
|
|
|
|
endef
|
|
|
|
|
2014-01-03 21:20:45 +01:00
|
|
|
$(eval $(autotools-package))
|