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