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.

71 lines
2.4 KiB

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