python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / ljsyscall / ljsyscall.mk
blob1c6c2c111fa11061543cfdc834d8c4c891191e00
1 ################################################################################
3 # ljsyscall
5 ################################################################################
7 LJSYSCALL_VERSION = v0.10
8 LJSYSCALL_SITE = $(call github,justincormack,ljsyscall,$(LJSYSCALL_VERSION))
9 LJSYSCALL_LICENSE = MIT
10 LJSYSCALL_LICENSE_FILES = COPYRIGHT
12 # dispatch all architectures of LuaJIT
13 ifeq ($(BR2_i386),y)
14 LJSYSCALL_ARCH = x86
15 else ifeq ($(BR2_x86_64),y)
16 LJSYSCALL_ARCH = x64
17 else ifeq ($(BR2_powerpc),y)
18 LJSYSCALL_ARCH = ppc
19 else ifeq ($(BR2_arm)$(BR2_armeb),y)
20 LJSYSCALL_ARCH = arm
21 else ifeq ($(BR2_mips)$(BR2_mipsel),y)
22 LJSYSCALL_ARCH = mips
23 else
24 LJSYSCALL_ARCH = $(BR2_ARCH)
25 endif
27 LJSYSCALL_TARGET_DIR = $(TARGET_DIR)/usr/share/lua/$(LUAINTERPRETER_ABIVER)
29 define LJSYSCALL_INSTALL_TARGET_CMDS
30 $(INSTALL) -d $(LJSYSCALL_TARGET_DIR)/syscall
31 $(INSTALL) -m 0644 -t $(LJSYSCALL_TARGET_DIR)/ $(@D)/syscall.lua
32 $(INSTALL) -m 0644 -t $(LJSYSCALL_TARGET_DIR)/syscall $(@D)/syscall/*.lua
34 $(INSTALL) -d $(LJSYSCALL_TARGET_DIR)/syscall/linux/$(LJSYSCALL_ARCH)
35 $(INSTALL) -m 0644 -t $(LJSYSCALL_TARGET_DIR)/syscall/linux/ $(@D)/syscall/linux/*.lua
36 $(INSTALL) -m 0644 -t $(LJSYSCALL_TARGET_DIR)/syscall/linux/$(LJSYSCALL_ARCH) $(@D)/syscall/linux/$(LJSYSCALL_ARCH)/*.lua
38 $(INSTALL) -d $(LJSYSCALL_TARGET_DIR)/syscall/shared
39 $(INSTALL) -m 0644 -t $(LJSYSCALL_TARGET_DIR)/syscall/shared/ $(@D)/syscall/shared/*.lua
40 endef
42 $(eval $(generic-package))