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.

91 lines
2.3 KiB

11 years ago
11 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.3
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/minidlna
  13. PKG_MD5SUM:=879027192C89E5376CDD2AE2D1AA33B4
  14. PKG_BUILD_PARALLEL:=0
  15. PKG_BUILD_DEPENDS:=util-linux
  16. include $(INCLUDE_DIR)/kernel.mk
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/nls.mk
  19. define Package/minidlna
  20. SECTION:=multimedia
  21. CATEGORY:=Multimedia
  22. TITLE:=UPnP A/V & DLNA Media Server
  23. URL:=http://minidlna.sourceforge.net/
  24. DEPENDS:= +libpthread +libexif +libjpeg +libsqlite3 +libffmpeg \
  25. +libid3tag +libflac +libvorbis +libuuid \
  26. $(ICONV_DEPENDS) $(INTL_DEPENDS)
  27. endef
  28. define Package/minidlna/description
  29. MiniDLNA (aka ReadyDLNA) is server software with the aim of
  30. being fully compliant with DLNA/UPnP-AV clients.
  31. endef
  32. define Package/minidlna/conffiles
  33. /etc/minidlna.conf
  34. endef
  35. TARGET_CPPFLAGS += \
  36. -I$(STAGING_DIR)/usr/include \
  37. -I$(STAGING_DIR)/usr/include/FLAC \
  38. -I$(STAGING_DIR)/usr/include/libavcodec \
  39. -I$(STAGING_DIR)/usr/include/libavformat \
  40. -I$(STAGING_DIR)/usr/include/libavutil \
  41. -I$(STAGING_DIR)/usr/include/libexif \
  42. -I$(STAGING_DIR)/usr/include/uuid \
  43. -I$(STAGING_DIR)/usr/include/vorbis \
  44. -I$(ICONV_PREFIX)/include \
  45. -I$(INTL_PREFIX)/include \
  46. -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 \
  47. TARGET_LDFLAGS += \
  48. -L$(ICONV_PREFIX)/lib \
  49. -L$(INTL_PREFIX)/lib \
  50. -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
  51. MAKE_FLAGS +=\
  52. CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
  53. LDFLAGS="$(TARGET_LDFLAGS)" \
  54. ICONV_LIBS="-liconv $(if $(INTL_FULL),-lintl)" \
  55. MAKE_VARS +=\
  56. PREFIX="$(STAGING_DIR)/usr" \
  57. ICONV_PREFIX="$(ICONV_PREFIX)" \
  58. INTL_PREFIX="$(INTL_PREFIX)" \
  59. OS_NAME="OpenWrt Linux" \
  60. OS_VERSION="$(LINUX_VERSION)" \
  61. OS_URL="http://openwrt.org/" \
  62. DB_PATH="/var/run/minidlna" \
  63. LOG_PATH="/var/log" \
  64. define Package/minidlna/install
  65. $(INSTALL_DIR) $(1)/usr/bin
  66. $(INSTALL_BIN) $(PKG_BUILD_DIR)/minidlna $(1)/usr/bin/
  67. $(INSTALL_DIR) $(1)/etc/init.d
  68. $(INSTALL_BIN) ./files/minidlna.init $(1)/etc/init.d/minidlna
  69. $(INSTALL_DIR) $(1)/etc/config
  70. $(INSTALL_CONF) ./files/minidlna.config $(1)/etc/config/minidlna
  71. endef
  72. define Package/minidlna/conffiles
  73. /etc/config/minidlna
  74. endef
  75. $(eval $(call BuildPackage,minidlna))