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.

76 lines
2.6 KiB

  1. #
  2. # Copyright (C) 2013-2016 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:=xupnpd
  9. PKG_REV:=5c08c051caa0062cc1c401b2d26d1f36dffe9c55
  10. PKG_VERSION:=2016-07-06
  11. PKG_RELEASE:=1
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_VERSION:=$(PKG_REV)
  14. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_SOURCE_URL:=https://github.com/clark15b/xupnpd.git
  16. PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
  17. PKG_MIRROR_HASH:=333e9938556c9a02b28732b5512626b991c65eaf0eb60d38e29f72ec513d312f
  18. PKG_LICENSE:=GPLv2
  19. PKG_LICENSE_FILES:=LICENSE
  20. PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
  21. include $(INCLUDE_DIR)/package.mk
  22. LUA_FLAGS:=-llua
  23. define Build/Compile
  24. (cd $(PKG_BUILD_DIR)/src; $(TARGET_CC) -v $(LUA_FLAGS) $(TARGET_CFLAGS) -fno-exceptions -fno-rtti -DWITH_URANDOM $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS) -lm -ldl -lcrypt -o xupnpd *.c *.cpp)
  25. endef
  26. define Package/xupnpd
  27. SECTION:=multimedia
  28. CATEGORY:=Multimedia
  29. DEPENDS:=+liblua
  30. TITLE:=eXtensible UPnP agent
  31. URL:=http://xupnpd.org/
  32. endef
  33. define Package/xupnpd/conffiles
  34. /usr/share/xupnpd/xupnpd.lua
  35. /usr/share/xupnpd/config
  36. /usr/share/xupnpd/playlists
  37. endef
  38. define Package/xupnpd/description
  39. xupnpd - eXtensible UPnP agent
  40. This program is a light DLNA Media Server which provides ContentDirectory:1 service for sharing IPTV unicast streams over local area network (with udpxy for multicast to HTTP unicast conversion).
  41. The program shares UTF8-encoded M3U playlists with links over local area network as content of the directory.
  42. You can watch HDTV broadcasts (multicast or unicast) and listen Internet Radio in IP network without transcoding and PC.
  43. endef
  44. define Package/xupnpd/install
  45. $(INSTALL_DIR) $(1)/usr/bin
  46. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/xupnpd $(1)/usr/bin
  47. $(INSTALL_DIR) $(1)/etc/init.d
  48. $(INSTALL_BIN) ./files/xupnpd.init $(1)/etc/init.d/xupnpd
  49. $(INSTALL_DIR) $(1)/usr/share/xupnpd
  50. $(CP) $(PKG_BUILD_DIR)/src/*.lua $(1)/usr/share/xupnpd
  51. $(INSTALL_DIR) $(1)/usr/share/xupnpd/ui
  52. $(CP) $(PKG_BUILD_DIR)/src/ui/* $(1)/usr/share/xupnpd/ui
  53. $(INSTALL_DIR) $(1)/usr/share/xupnpd/www
  54. $(CP) $(PKG_BUILD_DIR)/src/www/* $(1)/usr/share/xupnpd/www
  55. $(INSTALL_DIR) $(1)/usr/share/xupnpd/playlists
  56. $(INSTALL_DIR) $(1)/usr/share/xupnpd/plugins
  57. $(CP) $(PKG_BUILD_DIR)/src/plugins/* $(1)/usr/share/xupnpd/plugins
  58. $(INSTALL_DIR) $(1)/usr/share/xupnpd/config
  59. $(INSTALL_DIR) $(1)/etc/xupnpd
  60. (cd $(1)/etc/xupnpd; ln -s ../../usr/share/xupnpd/config ./; ln -s ../../usr/share/xupnpd/xupnpd.lua ./)
  61. $(INSTALL_DIR) $(1)/usr/share/xupnpd/localmedia
  62. endef
  63. $(eval $(call BuildPackage,xupnpd))