aboutsummaryrefslogtreecommitdiffstats
path: root/package/rings
diff options
context:
space:
mode:
Diffstat (limited to 'package/rings')
-rw-r--r--package/rings/Config.in7
-rw-r--r--package/rings/rings.mk29
2 files changed, 36 insertions, 0 deletions
diff --git a/package/rings/Config.in b/package/rings/Config.in
new file mode 100644
index 000000000..2fe14aa0f
--- /dev/null
+++ b/package/rings/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_RINGS
+ bool "rings"
+ depends on BR2_PACKAGE_LUA_SHARED_LIBRARY
+ help
+ Provides a way to create new Lua states from within Lua.
+
+ http://github.com/keplerproject/rings
diff --git a/package/rings/rings.mk b/package/rings/rings.mk
new file mode 100644
index 000000000..36fe666d6
--- /dev/null
+++ b/package/rings/rings.mk
@@ -0,0 +1,29 @@
+#############################################################
+#
+# rings
+#
+#############################################################
+
+RINGS_VERSION = 1.2.3
+RINGS_SITE = http://github.com/downloads/keplerproject/rings
+RINGS_DEPENDENCIES = lua
+
+define RINGS_BUILD_CMDS
+ $(MAKE) -C $(@D) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS) -fPIC"
+endef
+
+define RINGS_INSTALL_TARGET_CMDS
+ $(MAKE) -C $(@D) LUA_LIBDIR="$(TARGET_DIR)/usr/lib/lua" \
+ LUA_DIR="$(TARGET_DIR)/usr/share/lua" install
+endef
+
+define RINGS_UNINSTALL_TARGET_CMDS
+ rm -f "$(TARGET_DIR)/usr/lib/lua/rings.so"
+ rm -f "$(TARGET_DIR)/usr/share/lua/stable.lua"
+endef
+
+define RINGS_CLEAN_CMDS
+ $(MAKE) -C $(@D) clean
+endef
+
+$(eval $(call GENTARGETS,package,rings))