2 # Copyright (C) 2010-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@SF
/minidlna
16 PKG_HASH
:=47d9b06b4c48801a4c1112ec23d24782728b5495e95ec2195bbe5c81bc2d3c63
19 PKG_LICENSE
:=GPL-2.0
-or-later BSD-3-Clause
20 PKG_LICENSE_FILES
:=COPYING LICENCE.miniupnpd
26 include $(INCLUDE_DIR
)/package.mk
27 include $(INCLUDE_DIR
)/nls.mk
29 define Package
/minidlna
32 TITLE
:=UPnP A
/V
& DLNA Media Server
33 URL
:=http
://minidlna.sourceforge.net
/
34 DEPENDS
:= +libpthread
+libexif
+libjpeg
+libsqlite3
+libffmpeg \
35 +libid3tag
+libflac
+libvorbis
$(ICONV_DEPENDS
) $(INTL_DEPENDS
)
36 USERID
:=minidlna
:minidlna
39 define Package
/minidlna
/description
40 MiniDLNA
(aka ReadyDLNA
) is server software with the aim of
41 being fully compliant with DLNA
/UPnP-AV clients.
44 define Package
/minidlna
/conffiles
49 --with-libiconv-prefix
="$(ICONV_PREFIX)" \
50 --with-libintl-prefix
="$(INTL_PREFIX)" \
51 --with-os-name
="OpenWrt Linux" \
52 --with-os-version
="$(LINUX_VERSION)" \
53 --with-os-url
="https://openwrt.org/" \
54 --with-db-path
="/var/run/minidlna" \
55 --with-log-path
="/var/log"
57 define Package
/minidlna
/install
58 $(INSTALL_DIR
) $(1)/usr
/sbin
59 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/minidlnad
$(1)/usr
/sbin
/minidlnad
60 $(INSTALL_DIR
) $(1)/etc
/init.d
61 $(INSTALL_BIN
) .
/files
/minidlna.init
$(1)/etc
/init.d
/minidlna
62 $(INSTALL_DIR
) $(1)/etc
/config
63 $(INSTALL_CONF
) .
/files
/minidlna.config
$(1)/etc
/config
/minidlna
64 $(INSTALL_DIR
) $(1)/etc
/sysctl.d
65 $(INSTALL_CONF
) .
/files
/minidlna.sysctl
$(1)/etc
/sysctl.d
/30-minidlna.conf
68 $(eval
$(call BuildPackage
,minidlna
))