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.

86 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
  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.1.6+git-8a996b
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL=http://git.code.sf.net/p/minidlna/git
  13. PKG_SOURCE_SUBDIR=$(PKG_NAME)-$(PKG_VERSION)
  14. PKG_SOURCE_VERSION:=8a996b4b624ef45538a5de10730b8e94c55e7768
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  16. PKG_MIRROR_HASH:=fddbb7c96b40e335a251b919ff5c674519f266a59b8a43011761ba952c0df1b6
  17. PKG_LICENSE:=GPL-2.0 BSD-3-Clause
  18. PKG_LICENSE_FILES:=COPYING LICENCE.miniupnpd
  19. PKG_MAINTAINER:=Knyazkov Dmitry <medavedik@gmail.com>
  20. PKG_FIXUP:=autoreconf
  21. PKG_BUILD_PARALLEL:=0
  22. PKG_BUILD_DEPENDS:=util-linux
  23. include $(INCLUDE_DIR)/package.mk
  24. include $(INCLUDE_DIR)/nls.mk
  25. define Package/minidlna
  26. SECTION:=multimedia
  27. CATEGORY:=Multimedia
  28. TITLE:=UPnP A/V & DLNA Media Server
  29. URL:=http://minidlna.sourceforge.net/
  30. DEPENDS:= +libpthread +libexif +libjpeg +libsqlite3 +libffmpeg \
  31. +libid3tag +libflac +libvorbis +libuuid \
  32. $(ICONV_DEPENDS) $(INTL_DEPENDS)
  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. TARGET_CPPFLAGS += \
  42. -I$(ICONV_PREFIX)/include \
  43. -I$(INTL_PREFIX)/include \
  44. -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 \
  45. TARGET_LDFLAGS += \
  46. -L$(ICONV_PREFIX)/lib \
  47. -L$(INTL_PREFIX)/lib \
  48. -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
  49. MAKE_FLAGS +=\
  50. CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
  51. LDFLAGS="$(TARGET_LDFLAGS)" \
  52. ICONV_LIBS="-liconv $(if $(INTL_FULL),-lintl)" \
  53. CONFIGURE_ARGS +=\
  54. --with-libiconv-prefix="$(ICONV_PREFIX)" \
  55. --with-libintl-prefix="$(INTL_PREFIX)" \
  56. --with-os-name="OpenWrt Linux" \
  57. --with-os-version="$(LINUX_VERSION)" \
  58. --with-os-url="http://openwrt.org/" \
  59. --with-db-path="/var/run/minidlna" \
  60. --with-log-path="/var/log" \
  61. define Package/minidlna/install
  62. $(INSTALL_DIR) $(1)/usr/bin
  63. $(INSTALL_BIN) $(PKG_BUILD_DIR)/minidlnad $(1)/usr/bin/minidlna
  64. $(INSTALL_DIR) $(1)/etc/init.d
  65. $(INSTALL_BIN) ./files/minidlna.init $(1)/etc/init.d/minidlna
  66. $(INSTALL_DIR) $(1)/etc/config
  67. $(INSTALL_CONF) ./files/minidlna.config $(1)/etc/config/minidlna
  68. endef
  69. $(eval $(call BuildPackage,minidlna))