lede-packages-rs

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

Makefile (1510B)


      1 #
      2 # Copyright (C) 2015 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:=lua-xavante
     11 PKG_VERSION:=2.3.0
     12 PKG_RELEASE:=1
     13 PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com>
     14 PKG_LICENSE:=MIT
     15 
     16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
     17 PKG_SOURCE_URL:=https://github.com/keplerproject/xavante.git
     18 PKG_SOURCE_PROTO:=git
     19 PKG_SOURCE_VERSION:=9825b905133e14d37a4c179f2d02367ab93f1ef6
     20 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
     21 
     22 PKG_INSTALL:=1
     23 
     24 include $(INCLUDE_DIR)/package.mk
     25 
     26 define Package/lua-xavante
     27   SUBMENU:=Lua
     28   SECTION:=lang
     29   CATEGORY:=Languages
     30   TITLE:=Xavante Web Server
     31   URL:=http://keplerproject.github.io/xavante/
     32   DEPENDS:= +lua
     33 endef
     34 
     35 define Package/lua-xavante/description
     36   Xavante is a Lua HTTP 1.1 Web server that uses a modular architecture based on URI mapped handlers.
     37 endef
     38 
     39 
     40 define Build/Configure
     41 endef
     42 
     43 define Build/Compile
     44 endef
     45 
     46 define Build/Install
     47 endef
     48 
     49 define Package/lua-xavante/install
     50 	$(INSTALL_DIR) $(1)/usr/lib/lua
     51 	$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/sajax/sajax.lua $(1)/usr/lib/lua
     52 	$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/xavante/xavante.lua $(1)/usr/lib/lua
     53 
     54 	$(INSTALL_DIR) $(1)/usr/lib/lua/xavante
     55 	$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/xavante/{cgiluahandler,encoding,filehandler,httpd,mime,patternhandler,redirecthandler,vhostshandler,indexhandler,urlhandler,ruleshandler}.lua $(1)/usr/lib/lua/xavante
     56 endef
     57 
     58 $(eval $(call BuildPackage,lua-xavante))