|
#
|
|
# Copyright (C) 2010-2014 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=minidlna
|
|
PKG_RELEASE:=8
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL:=https://git.code.sf.net/p/minidlna/git
|
|
PKG_SOURCE_DATE:=2019-12-09
|
|
PKG_SOURCE_VERSION:=0763719f2776f91114bc5564919896f28e078c77
|
|
PKG_MIRROR_HASH:=93030a80eff44c0ec13f54daf3b2ba345b70ef8645e0343a34092f37d6f9e8dd
|
|
|
|
PKG_MAINTAINER:=
|
|
PKG_LICENSE:=GPL-2.0-or-later BSD-3-Clause
|
|
PKG_LICENSE_FILES:=COPYING LICENCE.miniupnpd
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
PKG_INSTALL:=1
|
|
PKG_BUILD_PARALLEL:=1
|
|
PKG_BUILD_DEPENDS:=util-linux
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/nls.mk
|
|
|
|
define Package/minidlna
|
|
SECTION:=multimedia
|
|
CATEGORY:=Multimedia
|
|
TITLE:=UPnP A/V & DLNA Media Server
|
|
URL:=http://minidlna.sourceforge.net/
|
|
DEPENDS:= +libpthread +libexif +libjpeg +libsqlite3 +libffmpeg \
|
|
+libid3tag +libflac +libvorbis +libuuid \
|
|
$(ICONV_DEPENDS) $(INTL_DEPENDS)
|
|
USERID:=minidlna:minidlna
|
|
endef
|
|
|
|
define Package/minidlna/description
|
|
MiniDLNA (aka ReadyDLNA) is server software with the aim of
|
|
being fully compliant with DLNA/UPnP-AV clients.
|
|
endef
|
|
|
|
define Package/minidlna/conffiles
|
|
/etc/config/minidlna
|
|
endef
|
|
|
|
CONFIGURE_ARGS += \
|
|
--with-libiconv-prefix="$(ICONV_PREFIX)" \
|
|
--with-libintl-prefix="$(INTL_PREFIX)" \
|
|
--with-os-name="OpenWrt Linux" \
|
|
--with-os-version="$(LINUX_VERSION)" \
|
|
--with-os-url="https://openwrt.org/" \
|
|
--with-db-path="/var/run/minidlna" \
|
|
--with-log-path="/var/log"
|
|
|
|
TARGET_CFLAGS += -DHAVE_CLOCK_GETTIME
|
|
|
|
define Package/minidlna/install
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/minidlnad $(1)/usr/sbin/minidlnad
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./files/minidlna.init $(1)/etc/init.d/minidlna
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
$(INSTALL_CONF) ./files/minidlna.config $(1)/etc/config/minidlna
|
|
$(INSTALL_DIR) $(1)/etc/sysctl.d
|
|
$(INSTALL_CONF) ./files/minidlna.sysctl $(1)/etc/sysctl.d/30-minidlna.conf
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,minidlna))
|