summaryrefslogtreecommitdiff
path: root/package/cgilua
diff options
context:
space:
mode:
Diffstat (limited to 'package/cgilua')
-rw-r--r--package/cgilua/Config.in10
-rw-r--r--package/cgilua/cgilua.mk20
2 files changed, 30 insertions, 0 deletions
diff --git a/package/cgilua/Config.in b/package/cgilua/Config.in
new file mode 100644
index 000000000..aba4c2422
--- /dev/null
+++ b/package/cgilua/Config.in
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_CGILUA
+ bool "cgilua"
+ depends on BR2_LARGEFILE
+ depends on BR2_PACKAGE_LUA_SHARED_LIBRARY
+ select BR2_PACKAGE_LUAFILESYSTEM
+ help
+ CGILua is a tool for creating dynamic HTML pages
+ and manipulating input data from Web forms.
+
+ http://luaforge.net/projects/cgilua/
diff --git a/package/cgilua/cgilua.mk b/package/cgilua/cgilua.mk
new file mode 100644
index 000000000..9d524cd33
--- /dev/null
+++ b/package/cgilua/cgilua.mk
@@ -0,0 +1,20 @@
+#############################################################
+#
+# cgilua
+#
+#############################################################
+
+CGILUA_VERSION = 5.1.3
+CGILUA_SITE = http://luaforge.net/frs/download.php/3970
+CGILUA_DEPENDENCIES = luafilesystem
+
+define CGILUA_INSTALL_TARGET_CMDS
+ $(MAKE) -C $(@D) install LUA_DIR="$(TARGET_DIR)/usr/share/lua"
+endef
+
+define CGILUA_UNINSTALL_TARGET_CMDS
+ rm -rf "$(TARGET_DIR)/usr/share/lua/cgilua"
+ rm -f "$(TARGET_DIR)/usr/share/lua/cgilua.lua"
+endef
+
+$(eval $(call GENTARGETS,package,cgilua))