1
0

Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #
  2. # Copyright (C) 2006-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:=udpxy
  9. PKG_SOURCE_VERSION:=53e4672a7522311c40e9f6110ff256041c52c8b4
  10. PKG_VERSION:=2016-09-18-$(PKG_SOURCE_VERSION)
  11. PKG_RELEASE:=1
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_URL:=https://github.com/pcherenkov/udpxy.git
  14. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  16. PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
  17. PKG_LICENSE:=GPL-3.0
  18. PKG_LICENSE_FILES:=gpl.txt
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. MAKE_PATH:=chipmunk
  22. define Package/udpxy
  23. SECTION:=net
  24. CATEGORY:=Network
  25. TITLE:=Convert UDP IPTV streams into HTTP streams
  26. URL:=https://github.com/pcherenkov/udpxy
  27. endef
  28. define Package/udpxy/description
  29. udproxy makes it possible to convert UDP IPTV streams into HTTP
  30. streams which can be viewed even over WLANs. HTTP streams do
  31. not generate huge amounts of multicast traffic, so a sd stream
  32. only takes about 300k. Interesting for peoply who have IPTV at
  33. home and do not want to rent multiple decoders from their
  34. provider but just use their own streaming client (for example
  35. popcornhour/mediatomb/vlc).
  36. endef
  37. define Package/udpxy/conffiles
  38. /etc/config/udpxy
  39. endef
  40. MAKE_FLAGS += \
  41. INSTALLROOT="$(PKG_INSTALL_DIR)/usr" \
  42. ALL_CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)"
  43. define Package/udpxy/install
  44. $(INSTALL_DIR) $(1)/etc/init.d $(1)/etc/config
  45. $(INSTALL_CONF) ./files/udpxy.conf $(1)/etc/config/udpxy
  46. $(INSTALL_BIN) ./files/udpxy.init $(1)/etc/init.d/udpxy
  47. $(INSTALL_DIR) $(1)/usr/bin
  48. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/udpxy $(1)/usr/bin/
  49. ln -sf udpxy $(1)/usr/bin/udpxrec
  50. endef
  51. $(eval $(call BuildPackage,udpxy))