2014-07-15 17:13:56 +00:00
|
|
|
#
|
2014-07-15 17:18:22 +00:00
|
|
|
# Copyright (C) 2010-2014 OpenWrt.org
|
2014-07-15 17:13:56 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=minidlna
|
2020-11-29 23:58:20 +00:00
|
|
|
PKG_VERSION:=1.3.0
|
|
|
|
PKG_RELEASE:=1
|
2014-07-15 17:13:56 +00:00
|
|
|
|
2020-11-29 23:58:20 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@SF/minidlna
|
|
|
|
PKG_HASH:=47d9b06b4c48801a4c1112ec23d24782728b5495e95ec2195bbe5c81bc2d3c63
|
2017-01-16 17:19:09 +00:00
|
|
|
|
2020-01-13 03:05:26 +00:00
|
|
|
PKG_MAINTAINER:=
|
|
|
|
PKG_LICENSE:=GPL-2.0-or-later BSD-3-Clause
|
2014-07-24 01:43:21 +00:00
|
|
|
PKG_LICENSE_FILES:=COPYING LICENCE.miniupnpd
|
2014-08-04 18:34:04 +00:00
|
|
|
|
2017-01-16 17:19:09 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2020-01-13 03:05:26 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
2014-07-15 17:13:56 +00:00
|
|
|
|
|
|
|
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 \
|
2020-11-29 23:58:20 +00:00
|
|
|
+libid3tag +libflac +libvorbis $(ICONV_DEPENDS) $(INTL_DEPENDS)
|
2019-02-26 13:33:37 +00:00
|
|
|
USERID:=minidlna:minidlna
|
2014-07-15 17:13:56 +00:00
|
|
|
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
|
2014-07-21 12:10:59 +00:00
|
|
|
/etc/config/minidlna
|
2014-07-15 17:13:56 +00:00
|
|
|
endef
|
|
|
|
|
2020-03-20 05:28:15 +00:00
|
|
|
CONFIGURE_ARGS += \
|
2014-07-21 12:10:59 +00:00
|
|
|
--with-libiconv-prefix="$(ICONV_PREFIX)" \
|
|
|
|
--with-libintl-prefix="$(INTL_PREFIX)" \
|
|
|
|
--with-os-name="OpenWrt Linux" \
|
|
|
|
--with-os-version="$(LINUX_VERSION)" \
|
2020-01-13 03:05:26 +00:00
|
|
|
--with-os-url="https://openwrt.org/" \
|
2014-07-21 12:10:59 +00:00
|
|
|
--with-db-path="/var/run/minidlna" \
|
2020-01-13 03:05:26 +00:00
|
|
|
--with-log-path="/var/log"
|
2014-07-15 17:13:56 +00:00
|
|
|
|
|
|
|
define Package/minidlna/install
|
2020-01-13 03:05:26 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/minidlnad $(1)/usr/sbin/minidlnad
|
2014-07-15 17:13:56 +00:00
|
|
|
$(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
|
2020-01-13 03:05:26 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/sysctl.d
|
|
|
|
$(INSTALL_CONF) ./files/minidlna.sysctl $(1)/etc/sysctl.d/30-minidlna.conf
|
2014-07-15 17:13:56 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,minidlna))
|