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.

73 lines
2.0 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
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_RELEASE:=7
  10. PKG_SOURCE_PROTO:=git
  11. PKG_SOURCE_URL:=https://git.code.sf.net/p/minidlna/git
  12. PKG_SOURCE_DATE:=2019-12-09
  13. PKG_SOURCE_VERSION:=0763719f2776f91114bc5564919896f28e078c77
  14. PKG_MIRROR_HASH:=93030a80eff44c0ec13f54daf3b2ba345b70ef8645e0343a34092f37d6f9e8dd
  15. PKG_MAINTAINER:=
  16. PKG_LICENSE:=GPL-2.0-or-later BSD-3-Clause
  17. PKG_LICENSE_FILES:=COPYING LICENCE.miniupnpd
  18. PKG_FIXUP:=autoreconf
  19. PKG_INSTALL:=1
  20. PKG_BUILD_PARALLEL:=1
  21. PKG_BUILD_DEPENDS:=util-linux
  22. include $(INCLUDE_DIR)/package.mk
  23. include $(INCLUDE_DIR)/nls.mk
  24. define Package/minidlna
  25. SECTION:=multimedia
  26. CATEGORY:=Multimedia
  27. TITLE:=UPnP A/V & DLNA Media Server
  28. URL:=http://minidlna.sourceforge.net/
  29. DEPENDS:= +libpthread +libexif +libjpeg +libsqlite3 +libffmpeg \
  30. +libid3tag +libflac +libvorbis +libuuid \
  31. $(ICONV_DEPENDS) $(INTL_DEPENDS)
  32. USERID:=minidlna:minidlna
  33. endef
  34. define Package/minidlna/description
  35. MiniDLNA (aka ReadyDLNA) is server software with the aim of
  36. being fully compliant with DLNA/UPnP-AV clients.
  37. endef
  38. define Package/minidlna/conffiles
  39. /etc/config/minidlna
  40. endef
  41. CONFIGURE_ARGS += \
  42. --with-libiconv-prefix="$(ICONV_PREFIX)" \
  43. --with-libintl-prefix="$(INTL_PREFIX)" \
  44. --with-os-name="OpenWrt Linux" \
  45. --with-os-version="$(LINUX_VERSION)" \
  46. --with-os-url="https://openwrt.org/" \
  47. --with-db-path="/var/run/minidlna" \
  48. --with-log-path="/var/log"
  49. TARGET_CFLAGS += -DHAVE_CLOCK_GETTIME
  50. define Package/minidlna/install
  51. $(INSTALL_DIR) $(1)/usr/sbin
  52. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/minidlnad $(1)/usr/sbin/minidlnad
  53. $(INSTALL_DIR) $(1)/etc/init.d
  54. $(INSTALL_BIN) ./files/minidlna.init $(1)/etc/init.d/minidlna
  55. $(INSTALL_DIR) $(1)/etc/config
  56. $(INSTALL_CONF) ./files/minidlna.config $(1)/etc/config/minidlna
  57. $(INSTALL_DIR) $(1)/etc/sysctl.d
  58. $(INSTALL_CONF) ./files/minidlna.sysctl $(1)/etc/sysctl.d/30-minidlna.conf
  59. endef
  60. $(eval $(call BuildPackage,minidlna))