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.

83 lines
2.2 KiB

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.2.1
  10. PKG_RELEASE:=3
  11. PKG_SOURCE_URL:=@SF/minidlna
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_HASH:=67388ba23ab0c7033557a32084804f796aa2a796db7bb2b770fb76ac2a742eec
  14. PKG_LICENSE:=GPL-2.0 BSD-3-Clause
  15. PKG_LICENSE_FILES:=COPYING LICENCE.miniupnpd
  16. PKG_MAINTAINER:=Knyazkov Dmitry <medavedik@gmail.com>
  17. PKG_FIXUP:=autoreconf
  18. PKG_BUILD_PARALLEL:=0
  19. PKG_BUILD_DEPENDS:=util-linux
  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 +libuuid \
  29. $(ICONV_DEPENDS) $(INTL_DEPENDS)
  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. TARGET_CPPFLAGS += \
  39. -I$(ICONV_PREFIX)/include \
  40. -I$(INTL_PREFIX)/include \
  41. -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 \
  42. TARGET_LDFLAGS += \
  43. -L$(ICONV_PREFIX)/lib \
  44. -L$(INTL_PREFIX)/lib \
  45. -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
  46. MAKE_FLAGS +=\
  47. CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
  48. LDFLAGS="$(TARGET_LDFLAGS)" \
  49. ICONV_LIBS="-liconv $(if $(INTL_FULL),-lintl)" \
  50. CONFIGURE_ARGS +=\
  51. --with-libiconv-prefix="$(ICONV_PREFIX)" \
  52. --with-libintl-prefix="$(INTL_PREFIX)" \
  53. --with-os-name="OpenWrt Linux" \
  54. --with-os-version="$(LINUX_VERSION)" \
  55. --with-os-url="http://openwrt.org/" \
  56. --with-db-path="/var/run/minidlna" \
  57. --with-log-path="/var/log" \
  58. define Package/minidlna/install
  59. $(INSTALL_DIR) $(1)/usr/bin
  60. $(INSTALL_BIN) $(PKG_BUILD_DIR)/minidlnad $(1)/usr/bin/minidlna
  61. $(INSTALL_DIR) $(1)/etc/init.d
  62. $(INSTALL_BIN) ./files/minidlna.init $(1)/etc/init.d/minidlna
  63. $(INSTALL_DIR) $(1)/etc/config
  64. $(INSTALL_CONF) ./files/minidlna.config $(1)/etc/config/minidlna
  65. endef
  66. $(eval $(call BuildPackage,minidlna))