Merge pull request #53 from heil/prosody
[feed/packages.git] / net / udpxy / Makefile
1 #
2 # Copyright (C) 2006-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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=udpxy
11 PKG_REV:=1.0.23
12 PKG_TAG:=9
13 PKG_VERSION:=$(PKG_REV)-$(PKG_TAG)
14 PKG_RELEASE:=4
15
16 PKG_SOURCE:=$(PKG_NAME).$(PKG_REV)-$(patsubst %,%-prod,$(PKG_TAG)).tar.gz
17 PKG_SOURCE_URL:=http://www.udpxy.com/download/1_23
18 PKG_MD5SUM:=0c953f7dd80329c1a062997afb9b6744
19 PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
20
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/udpxy
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=Convert UDP IPTV streams into HTTP streams
29 URL:=http://www.udpxy.com/index-en.html
30 endef
31
32 define Package/udpxy/description
33 udproxy makes it possible to convert UDP IPTV streams into HTTP
34 streams which can be viewed even over WLANs. HTTP streams do
35 not generate huge amounts of multicast traffic, so a sd stream
36 only takes about 300k. Interesting for peoply who have IPTV at
37 home and do not want to rent multiple decoders from their
38 provider but just use their own streaming client (for example
39 popcornhour/mediatomb/vlc).
40 endef
41
42 define Package/udpxy/conffiles
43 /etc/config/udpxy
44 endef
45
46 MAKE_FLAGS += \
47 INSTALLROOT="$(PKG_INSTALL_DIR)/usr" \
48 ALL_CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)"
49
50 define Package/udpxy/install
51 $(INSTALL_DIR) $(1)/etc/init.d $(1)/etc/config
52 $(INSTALL_CONF) ./files/udpxy.conf $(1)/etc/config/udpxy
53 $(INSTALL_BIN) ./files/udpxy.init $(1)/etc/init.d/udpxy
54 $(INSTALL_DIR) $(1)/usr/bin
55 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/udpxy $(1)/usr/bin/
56 ln -sf udpxy $(1)/usr/bin/udpxrec
57 endef
58
59 $(eval $(call BuildPackage,udpxy))