lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (2575B)


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