summaryrefslogtreecommitdiffstats
path: root/package/rings/rings.mk
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2010-05-10 14:47:12 -0300
committerPeter Korsgaard <jacmet@sunsite.dk>2010-06-05 21:56:06 +0200
commit50d6f2dde4db8c9d042294a09d5e8e120aec9987 (patch)
treebe3be1cf40e0e384ab2b3c8d7d7f28e3f0444b08 /package/rings/rings.mk
parent13ec21c66c417450a74c173c16aa27ea339de9c3 (diff)
downloadbuildroot-novena-50d6f2dde4db8c9d042294a09d5e8e120aec9987.tar.gz
buildroot-novena-50d6f2dde4db8c9d042294a09d5e8e120aec9987.zip
New lua module: rings
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/rings/rings.mk')
-rw-r--r--package/rings/rings.mk29
1 files changed, 29 insertions, 0 deletions
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))