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.

85 lines
2.3 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
  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:=1
  10. PKG_SOURCE_URL=git://minidlna.git.sourceforge.net/gitroot/minidlna/minidlna
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_DATE:=2018-04-10
  13. PKG_SOURCE_VERSION:=799e6cf505ec470b2bf0ae4118143380aa16b837
  14. PKG_MIRROR_HASH:=67cc817e671de99e5a3f5ed237f89e22470f1de94819bcaba86c0ba821104af5
  15. PKG_LICENSE:=GPL-2.0 BSD-3-Clause
  16. PKG_LICENSE_FILES:=COPYING LICENCE.miniupnpd
  17. PKG_MAINTAINER:=Knyazkov Dmitry <medavedik@gmail.com>
  18. PKG_FIXUP:=autoreconf
  19. PKG_BUILD_PARALLEL:=0
  20. PKG_BUILD_DEPENDS:=util-linux
  21. include $(INCLUDE_DIR)/package.mk
  22. include $(INCLUDE_DIR)/nls.mk
  23. define Package/minidlna
  24. SECTION:=multimedia
  25. CATEGORY:=Multimedia
  26. TITLE:=UPnP A/V & DLNA Media Server
  27. URL:=http://minidlna.sourceforge.net/
  28. DEPENDS:= +libpthread +libexif +libjpeg +libsqlite3 +libffmpeg \
  29. +libid3tag +libflac +libvorbis +libuuid \
  30. $(ICONV_DEPENDS) $(INTL_DEPENDS)
  31. USERID:=minidlna:minidlna
  32. endef
  33. define Package/minidlna/description
  34. MiniDLNA (aka ReadyDLNA) is server software with the aim of
  35. being fully compliant with DLNA/UPnP-AV clients.
  36. endef
  37. define Package/minidlna/conffiles
  38. /etc/config/minidlna
  39. endef
  40. TARGET_CPPFLAGS += \
  41. -I$(ICONV_PREFIX)/include \
  42. -I$(INTL_PREFIX)/include \
  43. -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 \
  44. TARGET_LDFLAGS += \
  45. -L$(ICONV_PREFIX)/lib \
  46. -L$(INTL_PREFIX)/lib \
  47. -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
  48. MAKE_FLAGS +=\
  49. CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
  50. LDFLAGS="$(TARGET_LDFLAGS)" \
  51. ICONV_LIBS="-liconv $(if $(INTL_FULL),-lintl)" \
  52. CONFIGURE_ARGS +=\
  53. --with-libiconv-prefix="$(ICONV_PREFIX)" \
  54. --with-libintl-prefix="$(INTL_PREFIX)" \
  55. --with-os-name="OpenWrt Linux" \
  56. --with-os-version="$(LINUX_VERSION)" \
  57. --with-os-url="http://openwrt.org/" \
  58. --with-db-path="/var/run/minidlna" \
  59. --with-log-path="/var/log" \
  60. define Package/minidlna/install
  61. $(INSTALL_DIR) $(1)/usr/bin
  62. $(INSTALL_BIN) $(PKG_BUILD_DIR)/minidlnad $(1)/usr/bin/minidlna
  63. $(INSTALL_DIR) $(1)/etc/init.d
  64. $(INSTALL_BIN) ./files/minidlna.init $(1)/etc/init.d/minidlna
  65. $(INSTALL_DIR) $(1)/etc/config
  66. $(INSTALL_CONF) ./files/minidlna.config $(1)/etc/config/minidlna
  67. endef
  68. $(eval $(call BuildPackage,minidlna))