aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Francois Perrad <fperrad@gmail.com>2014-02-24 08:34:51 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-03-01 16:15:04 +0100
commitf21def8f635980d588271f180d120d26b9918785 (patch)
tree5fa5ec4ffc15b69c6acae2b381e1d4ef4617e3f5
parentd1f33db65bd6a9e91819b1389cd5150746ad23a8 (diff)
downloadbuildroot-f21def8f635980d588271f180d120d26b9918785.tar.gz
buildroot-f21def8f635980d588271f180d120d26b9918785.tar.bz2
lrandom: new package
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/Config.in1
-rw-r--r--package/lrandom/Config.in8
-rw-r--r--package/lrandom/lrandom.mk15
3 files changed, 24 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index 932015b07c..684d75662f 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -376,6 +376,7 @@ source "package/dado/Config.in"
source "package/lbase64/Config.in"
source "package/ljsyscall/Config.in"
source "package/lpeg/Config.in"
+source "package/lrandom/Config.in"
source "package/lua-cjson/Config.in"
source "package/lua-ev/Config.in"
source "package/lua-msgpack-native/Config.in"
diff --git a/package/lrandom/Config.in b/package/lrandom/Config.in
new file mode 100644
index 0000000000..661707d7fb
--- /dev/null
+++ b/package/lrandom/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_LRANDOM
+ bool "lrandom"
+ depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
+ help
+ A library for generating random numbers
+ based on the Mersenne Twister
+
+ http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lrandom
diff --git a/package/lrandom/lrandom.mk b/package/lrandom/lrandom.mk
new file mode 100644
index 0000000000..003579180a
--- /dev/null
+++ b/package/lrandom/lrandom.mk
@@ -0,0 +1,15 @@
+################################################################################
+#
+# lrandom
+#
+################################################################################
+
+ifeq ($(BR2_PACKAGE_LUA_5_2),y)
+LRANDOM_VERSION = 20120430.52-1
+else
+LRANDOM_VERSION = 20120430.51-1
+endif
+LRANDOM_SUBDIR = random
+LRANDOM_LICENSE = Public domain
+
+$(eval $(luarocks-package))