Commit 5b81dd47 authored by Assaf Inbal's avatar Assaf Inbal Committed by Peter Korsgaard
Browse files

luabitop: New package



Lua library for binary operations

[Peter: fix header, use TARGET_CONFIGURE_OPTS]
Signed-off-by: default avatarAssaf Inbal <shmuelzon@gmail.com>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent 07278078
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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/luabitop/Config.in"
source "package/luacjson/Config.in"
source "package/luaexpat/Config.in"
source "package/luafilesystem/Config.in"
+7 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_LUABITOP
	bool "luabitop"
	help
	  Lua BitOp is a C extension module for Lua 5.1/5.2 which adds bitwise
	  operations on numbers.

	  http://bitop.luajit.org
+27 −0
Original line number Diff line number Diff line
################################################################################
#
# luabitop
#
################################################################################

LUABITOP_VERSION = 1.0.2
LUABITOP_SOURCE = LuaBitOp-$(LUABITOP_VERSION).tar.gz
LUABITOP_SITE = http://bitop.luajit.org/download
LUABITOP_LICENSE = MIT
LUABITOP_LICENSE_FILES = README
LUABITOP_DEPENDENCIES = lua

define LUABITOP_BUILD_CMDS
	$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS)
endef

define LUABITOP_INSTALL_TARGET_CMDS
	mkdir -p $(TARGET_DIR)/usr/lib/lua
	$(INSTALL) -p $(@D)/bit.so $(TARGET_DIR)/usr/lib/lua
endef

define LUABITOP_CLEAN_CMDS
	$(MAKE) -C $(@D) clean
endef

$(eval $(generic-package))