diff options
author | Assaf Inbal <shmuelzon@gmail.com> | 2013-06-17 08:28:09 +0300 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2013-06-17 23:13:36 +0200 |
commit | a28ec29a9ed80b36c41dc6c549191e6f2453fe7b (patch) | |
tree | a321a412a6ae022c2c30303f6158e173a53cfe22 | |
parent | 25c3160092d7e542f77bf496af5ca7f0dc677aeb (diff) | |
download | buildroot-novena-a28ec29a9ed80b36c41dc6c549191e6f2453fe7b.tar.gz buildroot-novena-a28ec29a9ed80b36c41dc6c549191e6f2453fe7b.zip |
lbase64: New package
This package adds base64 encode/decode functionality for Lua
[Peter: fix file header, use TARGET_CONFIGURE_OPTS, drop quotes around paths]
Signed-off-by: Assaf Inbal <shmuelzon@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r-- | package/Config.in | 1 | ||||
-rw-r--r-- | package/lbase64/Config.in | 6 | ||||
-rw-r--r-- | package/lbase64/lbase64.mk | 32 |
3 files changed, 39 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in index f218f65e5..2d32a9ff1 100644 --- a/package/Config.in +++ b/package/Config.in @@ -314,6 +314,7 @@ menu "LUA libraries/modules" source "package/cgilua/Config.in" source "package/copas/Config.in" source "package/coxpcall/Config.in" +source "package/lbase64/Config.in" source "package/luabitop/Config.in" source "package/luacjson/Config.in" source "package/luaexpat/Config.in" diff --git a/package/lbase64/Config.in b/package/lbase64/Config.in new file mode 100644 index 000000000..bd8503a16 --- /dev/null +++ b/package/lbase64/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_LBASE64 + bool "lbase64" + help + A base64 library for Lua + + http://luaforge.net/projects/lbase64/ diff --git a/package/lbase64/lbase64.mk b/package/lbase64/lbase64.mk new file mode 100644 index 000000000..87dda403f --- /dev/null +++ b/package/lbase64/lbase64.mk @@ -0,0 +1,32 @@ +################################################################################ +# +# lbase64 +# +################################################################################ + +LBASE64_VERSION = 20100323 +LBASE64_SITE = http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/5.1 +LBASE64_SOURCE = lbase64.tar.gz +LBASE64_LICENSE = Public domain +LBASE64_LICENSE_FILES = README +LBASE64_DEPENDENCIES = lua + +define LBASE64_BUILD_CMDS + $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS) -fPIC" so +endef + +define LBASE64_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/base64.so \ + $(TARGET_DIR)/usr/lib/lua/base64.so +endef + +define LBASE64_UNINSTALL_TARGET_CMDS + rm -f $(TARGET_DIR)/usr/lib/lua/base64.so +endef + +define LBASE64_CLEAN_CMDS + $(MAKE) -C $(@D) clean +endef + +$(eval $(generic-package)) |