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.

74 lines
2.6 KiB

  1. #
  2. # Copyright (C) 2013-2017 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:=fe39cdc41c84d5b365e3da766167c7c9551e3b2f
  10. PKG_VERSION:=2018-09-24
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://codeload.github.com/clark15b/xupnpd/tar.gz/$(PKG_REV)?
  14. PKG_HASH:=5ce2f3423b86e8de4dcd5c46da28a51707c21b234a4b356608902534c3160c84
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_REV)
  16. PKG_LICENSE:=GPLv2
  17. PKG_LICENSE_FILES:=LICENSE
  18. PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
  19. include $(INCLUDE_DIR)/package.mk
  20. LUA_FLAGS:=-llua -lssl -lcrypto
  21. define Build/Compile
  22. (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)
  23. endef
  24. define Package/xupnpd
  25. SECTION:=multimedia
  26. CATEGORY:=Multimedia
  27. DEPENDS:=+liblua +libopenssl
  28. TITLE:=eXtensible UPnP agent
  29. URL:=http://xupnpd.org/
  30. endef
  31. define Package/xupnpd/conffiles
  32. /usr/share/xupnpd/xupnpd.lua
  33. /usr/share/xupnpd/config
  34. /usr/share/xupnpd/playlists
  35. endef
  36. define Package/xupnpd/description
  37. xupnpd - eXtensible UPnP agent
  38. 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).
  39. The program shares UTF8-encoded M3U playlists with links over local area network as content of the directory.
  40. You can watch HDTV broadcasts (multicast or unicast) and listen Internet Radio in IP network without transcoding and PC.
  41. endef
  42. define Package/xupnpd/install
  43. $(INSTALL_DIR) $(1)/usr/bin
  44. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/xupnpd $(1)/usr/bin
  45. $(INSTALL_DIR) $(1)/etc/init.d
  46. $(INSTALL_BIN) ./files/xupnpd.init $(1)/etc/init.d/xupnpd
  47. $(INSTALL_DIR) $(1)/usr/share/xupnpd
  48. $(CP) $(PKG_BUILD_DIR)/src/*.lua $(1)/usr/share/xupnpd
  49. $(INSTALL_DIR) $(1)/usr/share/xupnpd/ui
  50. $(CP) $(PKG_BUILD_DIR)/src/ui/* $(1)/usr/share/xupnpd/ui
  51. $(INSTALL_DIR) $(1)/usr/share/xupnpd/www
  52. $(CP) $(PKG_BUILD_DIR)/src/www/* $(1)/usr/share/xupnpd/www
  53. $(INSTALL_DIR) $(1)/usr/share/xupnpd/playlists
  54. $(INSTALL_DIR) $(1)/usr/share/xupnpd/plugins
  55. $(CP) $(PKG_BUILD_DIR)/src/plugins/* $(1)/usr/share/xupnpd/plugins
  56. $(INSTALL_DIR) $(1)/usr/share/xupnpd/config
  57. $(INSTALL_DIR) $(1)/etc/xupnpd
  58. (cd $(1)/etc/xupnpd; ln -s ../../usr/share/xupnpd/config ./; ln -s ../../usr/share/xupnpd/xupnpd.lua ./)
  59. $(INSTALL_DIR) $(1)/usr/share/xupnpd/localmedia
  60. endef
  61. $(eval $(call BuildPackage,xupnpd))