2 # Copyright (C) 2013-2017 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
11 PKG_REV
:=e4e542d9b6d0043d470fda283e2cd325bbb91950
12 PKG_VERSION
:=2018-11-20
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=https
://codeload.github.com
/clark15b
/xupnpd
/tar.gz
/$(PKG_REV
)?
17 PKG_HASH
:=9177b7d5615172fe64f1b6120e5239c0b818ba4bff1f26916fe39fb69eefee4f
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_REV
)
21 PKG_LICENSE_FILES
:=LICENSE
23 PKG_MAINTAINER
:=Álvaro Fernández Rojas
<noltari@gmail.com
>
25 include $(INCLUDE_DIR
)/package.mk
27 LUA_FLAGS
:=-llua
-lssl
-lcrypto
29 ifneq ($(CONFIG_USE_MUSL
),)
30 TARGET_CFLAGS
+= -D_LARGEFILE64_SOURCE
34 (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)
40 DEPENDS
:=+liblua
+libopenssl
41 TITLE
:=eXtensible UPnP agent
42 URL
:=http
://xupnpd.org
/
45 define Package
/xupnpd
/conffiles
46 /usr
/share
/xupnpd
/xupnpd.lua
47 /usr
/share
/xupnpd
/config
48 /usr
/share
/xupnpd
/playlists
51 define Package
/xupnpd
/description
52 xupnpd
- eXtensible UPnP agent
53 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
).
54 The program shares UTF8-encoded M3U playlists with links over local area network
as content of the directory.
55 You can watch HDTV broadcasts
(multicast or unicast
) and listen Internet Radio in IP network without transcoding and PC.
58 define Package
/xupnpd
/install
59 $(INSTALL_DIR
) $(1)/usr
/bin
60 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/xupnpd
$(1)/usr
/bin
61 $(INSTALL_DIR
) $(1)/etc
/init.d
62 $(INSTALL_BIN
) .
/files
/xupnpd.init
$(1)/etc
/init.d
/xupnpd
63 $(INSTALL_DIR
) $(1)/usr
/share
/xupnpd
64 $(CP
) $(PKG_BUILD_DIR
)/src
/*.lua
$(1)/usr
/share
/xupnpd
65 $(INSTALL_DIR
) $(1)/usr
/share
/xupnpd
/ui
66 $(CP
) $(PKG_BUILD_DIR
)/src
/ui
/* $(1)/usr
/share
/xupnpd
/ui
67 $(INSTALL_DIR
) $(1)/usr
/share
/xupnpd
/www
68 $(CP
) $(PKG_BUILD_DIR
)/src
/www
/* $(1)/usr
/share
/xupnpd
/www
69 $(INSTALL_DIR
) $(1)/usr
/share
/xupnpd
/playlists
70 $(INSTALL_DIR
) $(1)/usr
/share
/xupnpd
/plugins
71 $(CP
) $(PKG_BUILD_DIR
)/src
/plugins
/* $(1)/usr
/share
/xupnpd
/plugins
72 $(INSTALL_DIR
) $(1)/usr
/share
/xupnpd
/config
73 $(INSTALL_DIR
) $(1)/etc
/xupnpd
74 (cd
$(1)/etc
/xupnpd
; ln
-s ..
/..
/usr
/share
/xupnpd
/config .
/; ln
-s ..
/..
/usr
/share
/xupnpd
/xupnpd.lua .
/)
75 $(INSTALL_DIR
) $(1)/usr
/share
/xupnpd
/localmedia
78 $(eval
$(call BuildPackage
,xupnpd
))