summaryrefslogtreecommitdiffstats
path: root/package/luabitop/luabitop.mk
blob: c61e826c0245eab839980a6b0a4046e41c3d96aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
################################################################################
#
# 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))