source: tools/xupnpd/xupnpd/src/contrib/OpenWrt/Makefile @ 34374

Last change on this file since 34374 was 34374, checked in by Stephan, 9 years ago

add xupnpd

File size: 2.5 KB
Line 
1# Copyright (C) 2012 Igor Drach
2# leaigor@gmail.com
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:=xupnpd
10PKG_REV:=325
11PKG_VERSION:=$(PKG_REV)
12PKG_RELEASE:=5
13
14PKG_SOURCE_PROTO:=svn
15PKG_SOURCE_VERSION:=$(PKG_REV)
16PKG_SOURCE_SUBDIR:=xupnpd-$(PKG_VERSION)
17PKG_SOURCE_URL:=http://tsdemuxer.googlecode.com/svn/trunk/xupnpd/src/
18PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
19
20
21include $(INCLUDE_DIR)/package.mk
22
23#LUA_FLAGS:=-I$(STAGING_DIR)/usr/include/luajit-2.0 -lluajit
24LUA_FLAGS:=-llua
25
26define Build/Compile
27        (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)
28endef
29
30define Package/xupnpd
31  SECTION:=multimedia
32  CATEGORY:=Multimedia
33  DEPENDS:=+liblua
34  TITLE:=eXtensible UPnP agent
35  URL:=http://xupnpd.org/
36endef
37
38define Package/xupnpd/conffiles
39/usr/share/xupnpd/xupnpd.lua
40/usr/share/xupnpd/config
41/usr/share/xupnpd/playlists
42endef
43
44define Package/xupnpd/description
45xupnpd - eXtensible UPnP agent
46This 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).
47The program shares UTF8-encoded M3U playlists with links over local area network as content of the directory.
48You can watch HDTV broadcasts (multicast or unicast) and listen Internet Radio in IP network without transcoding and PC.
49endef
50
51define Package/xupnpd/install
52        $(INSTALL_DIR) $(1)/usr/bin
53        $(INSTALL_BIN) $(PKG_BUILD_DIR)/xupnpd $(1)/usr/bin
54        $(INSTALL_DIR) $(1)/etc/init.d
55        $(INSTALL_BIN) ./files/xupnpd.init $(1)/etc/init.d/xupnpd
56        $(INSTALL_DIR) $(1)/usr/share/xupnpd
57        $(CP) $(PKG_BUILD_DIR)/*.lua $(1)/usr/share/xupnpd
58        $(INSTALL_DIR) $(1)/usr/share/xupnpd/ui
59        $(CP) $(PKG_BUILD_DIR)/ui/* $(1)/usr/share/xupnpd/ui
60        $(INSTALL_DIR) $(1)/usr/share/xupnpd/www
61        $(CP) $(PKG_BUILD_DIR)/www/* $(1)/usr/share/xupnpd/www
62        $(INSTALL_DIR) $(1)/usr/share/xupnpd/playlists
63#       $(CP) $(PKG_BUILD_DIR)/playlists/* $(1)/usr/share/xupnpd/playlists
64        $(INSTALL_DIR) $(1)/usr/share/xupnpd/plugins
65        $(CP) $(PKG_BUILD_DIR)/plugins/* $(1)/usr/share/xupnpd/plugins
66        $(INSTALL_DIR) $(1)/usr/share/xupnpd/config
67        $(INSTALL_DIR) $(1)/etc/xupnpd
68        (cd $(1)/etc/xupnpd; ln -s ../../usr/share/xupnpd/config ./; ln -s ../../usr/share/xupnpd/xupnpd.lua ./)
69        $(INSTALL_DIR) $(1)/usr/share/xupnpd/localmedia
70endef
71
72$(eval $(call BuildPackage,xupnpd))
Note: See TracBrowser for help on using the repository browser.