2013-10-20 15:58:28 +00:00
#
# Copyright (C) 2013 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := xupnpd
2014-05-03 11:29:26 +00:00
PKG_REV := 398
2013-10-20 15:58:28 +00:00
PKG_VERSION := $( PKG_REV)
2014-05-03 11:29:26 +00:00
PKG_RELEASE := 1
2013-10-20 15:58:28 +00:00
PKG_SOURCE_PROTO := svn
PKG_SOURCE_VERSION := $( PKG_REV)
PKG_SOURCE_SUBDIR := xupnpd-$( PKG_VERSION)
PKG_SOURCE_URL := http://tsdemuxer.googlecode.com/svn/trunk/xupnpd/src/
PKG_SOURCE := $( PKG_SOURCE_SUBDIR) .tar.gz
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
LUA_FLAGS := -llua
d e f i n e B u i l d / C o m p i l e
( 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)
e n d e f
d e f i n e P a c k a g e / x u p n p d
SECTION:= multimedia
CATEGORY:= Multimedia
DEPENDS:= +liblua
TITLE:= eXtensible UPnP agent
URL:= http://xupnpd.org/
e n d e f
d e f i n e P a c k a g e / x u p n p d / c o n f f i l e s
/ u s r / s h a r e / x u p n p d / x u p n p d . l u a
/ u s r / s h a r e / x u p n p d / c o n f i g
/ u s r / s h a r e / x u p n p d / p l a y l i s t s
e n d e f
d e f i n e P a c k a g e / x u p n p d / d e s c r i p t i o n
x u p n p d - e X t e n s i b l e U P n P a g e n t
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 ).
T h e p r o g r a m s h a r e s U T F 8 - e n c o d e d M 3 U p l a y l i s t s w i t h l i n k s o v e r l o c a l a r e a n e t w o r k a s c o n t e n t o f t h e d i r e c t o r y .
Y o u c a n w a t c h H D T V b r o a d c a s t s ( m u l t i c a s t o r u n i c a s t ) a n d l i s t e n I n t e r n e t R a d i o i n I P n e t w o r k w i t h o u t t r a n s c o d i n g a n d P C .
e n d e f
d e f i n e P a c k a g e / x u p n p d / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /xupnpd $( 1) /usr/bin
$( INSTALL_DIR) $( 1) /etc/init.d
$( INSTALL_BIN) ./files/xupnpd.init $( 1) /etc/init.d/xupnpd
$( INSTALL_DIR) $( 1) /usr/share/xupnpd
$( CP) $( PKG_BUILD_DIR) /*.lua $( 1) /usr/share/xupnpd
$( INSTALL_DIR) $( 1) /usr/share/xupnpd/ui
$( CP) $( PKG_BUILD_DIR) /ui/* $( 1) /usr/share/xupnpd/ui
$( INSTALL_DIR) $( 1) /usr/share/xupnpd/www
$( CP) $( PKG_BUILD_DIR) /www/* $( 1) /usr/share/xupnpd/www
$( INSTALL_DIR) $( 1) /usr/share/xupnpd/playlists
$( INSTALL_DIR) $( 1) /usr/share/xupnpd/plugins
$( CP) $( PKG_BUILD_DIR) /plugins/* $( 1) /usr/share/xupnpd/plugins
$( INSTALL_DIR) $( 1) /usr/share/xupnpd/config
$( INSTALL_DIR) $( 1) /etc/xupnpd
( cd $( 1) /etc/xupnpd; ln -s ../../usr/share/xupnpd/config ./; ln -s ../../usr/share/xupnpd/xupnpd.lua ./)
$( INSTALL_DIR) $( 1) /usr/share/xupnpd/localmedia
e n d e f
$( eval $ ( call BuildPackage ,xupnpd ) )