You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
1.9 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. #
  2. # Copyright (C) 2010-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=minidlna
  9. PKG_VERSION:=1.3.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/minidlna
  13. PKG_HASH:=47d9b06b4c48801a4c1112ec23d24782728b5495e95ec2195bbe5c81bc2d3c63
  14. PKG_MAINTAINER:=
  15. PKG_LICENSE:=GPL-2.0-or-later BSD-3-Clause
  16. PKG_LICENSE_FILES:=COPYING LICENCE.miniupnpd
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/nls.mk
  22. define Package/minidlna
  23. SECTION:=multimedia
  24. CATEGORY:=Multimedia
  25. TITLE:=UPnP A/V & DLNA Media Server
  26. URL:=http://minidlna.sourceforge.net/
  27. DEPENDS:= +libpthread +libexif +libjpeg +libsqlite3 +libffmpeg \
  28. +libid3tag +libflac +libvorbis $(ICONV_DEPENDS) $(INTL_DEPENDS)
  29. USERID:=minidlna:minidlna
  30. endef
  31. define Package/minidlna/description
  32. MiniDLNA (aka ReadyDLNA) is server software with the aim of
  33. being fully compliant with DLNA/UPnP-AV clients.
  34. endef
  35. define Package/minidlna/conffiles
  36. /etc/config/minidlna
  37. endef
  38. CONFIGURE_ARGS += \
  39. --with-libiconv-prefix="$(ICONV_PREFIX)" \
  40. --with-libintl-prefix="$(INTL_PREFIX)" \
  41. --with-os-name="OpenWrt Linux" \
  42. --with-os-version="$(LINUX_VERSION)" \
  43. --with-os-url="https://openwrt.org/" \
  44. --with-db-path="/var/run/minidlna" \
  45. --with-log-path="/var/log"
  46. define Package/minidlna/install
  47. $(INSTALL_DIR) $(1)/usr/sbin
  48. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/minidlnad $(1)/usr/sbin/minidlnad
  49. $(INSTALL_DIR) $(1)/etc/init.d
  50. $(INSTALL_BIN) ./files/minidlna.init $(1)/etc/init.d/minidlna
  51. $(INSTALL_DIR) $(1)/etc/config
  52. $(INSTALL_CONF) ./files/minidlna.config $(1)/etc/config/minidlna
  53. $(INSTALL_DIR) $(1)/etc/sysctl.d
  54. $(INSTALL_CONF) ./files/minidlna.sysctl $(1)/etc/sysctl.d/30-minidlna.conf
  55. endef
  56. $(eval $(call BuildPackage,minidlna))