f82594cc4019846875978b00834f897c7d996dbc
[feed/packages.git] / multimedia / xupnpd / Makefile
1 #
2 # Copyright (C) 2013-2017 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:=xupnpd
11 PKG_REV:=e4e542d9b6d0043d470fda283e2cd325bbb91950
12 PKG_VERSION:=2018-11-20
13 PKG_RELEASE:=1
14
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)
19
20 PKG_LICENSE:=GPLv2
21 PKG_LICENSE_FILES:=LICENSE
22
23 PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
24
25 include $(INCLUDE_DIR)/package.mk
26
27 LUA_FLAGS:=-llua -lssl -lcrypto
28
29 define Build/Compile
30 (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)
31 endef
32
33 define Package/xupnpd
34 SECTION:=multimedia
35 CATEGORY:=Multimedia
36 DEPENDS:=+liblua +libopenssl
37 TITLE:=eXtensible UPnP agent
38 URL:=http://xupnpd.org/
39 endef
40
41 define Package/xupnpd/conffiles
42 /usr/share/xupnpd/xupnpd.lua
43 /usr/share/xupnpd/config
44 /usr/share/xupnpd/playlists
45 endef
46
47 define Package/xupnpd/description
48 xupnpd - eXtensible UPnP agent
49 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).
50 The program shares UTF8-encoded M3U playlists with links over local area network as content of the directory.
51 You can watch HDTV broadcasts (multicast or unicast) and listen Internet Radio in IP network without transcoding and PC.
52 endef
53
54 define Package/xupnpd/install
55 $(INSTALL_DIR) $(1)/usr/bin
56 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/xupnpd $(1)/usr/bin
57 $(INSTALL_DIR) $(1)/etc/init.d
58 $(INSTALL_BIN) ./files/xupnpd.init $(1)/etc/init.d/xupnpd
59 $(INSTALL_DIR) $(1)/usr/share/xupnpd
60 $(CP) $(PKG_BUILD_DIR)/src/*.lua $(1)/usr/share/xupnpd
61 $(INSTALL_DIR) $(1)/usr/share/xupnpd/ui
62 $(CP) $(PKG_BUILD_DIR)/src/ui/* $(1)/usr/share/xupnpd/ui
63 $(INSTALL_DIR) $(1)/usr/share/xupnpd/www
64 $(CP) $(PKG_BUILD_DIR)/src/www/* $(1)/usr/share/xupnpd/www
65 $(INSTALL_DIR) $(1)/usr/share/xupnpd/playlists
66 $(INSTALL_DIR) $(1)/usr/share/xupnpd/plugins
67 $(CP) $(PKG_BUILD_DIR)/src/plugins/* $(1)/usr/share/xupnpd/plugins
68 $(INSTALL_DIR) $(1)/usr/share/xupnpd/config
69 $(INSTALL_DIR) $(1)/etc/xupnpd
70 (cd $(1)/etc/xupnpd; ln -s ../../usr/share/xupnpd/config ./; ln -s ../../usr/share/xupnpd/xupnpd.lua ./)
71 $(INSTALL_DIR) $(1)/usr/share/xupnpd/localmedia
72 endef
73
74 $(eval $(call BuildPackage,xupnpd))