luajit: add host variant
authorFrancois Perrad <fperrad@gmail.com>
Sat, 19 Jul 2014 14:38:55 +0000 (16:38 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 27 Jul 2014 08:34:16 +0000 (10:34 +0200)
the goal is to use host-luajit with pkg-luarocks
when luajit is on the selected luainterpreter for the target

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/luajit/luajit.mk

index 72240b277511b1ca57ba41c4d5f0ef6b2dd697b1..42d6a72122652dc19d878aa7af1772b5d12e8dd2 100644 (file)
@@ -64,4 +64,13 @@ define LUAJIT_INSTALL_TARGET_CMDS
        $(MAKE) PREFIX="/usr" DESTDIR="$(TARGET_DIR)" LDCONFIG=true -C $(@D) install
 endef
 
+define HOST_LUAJIT_BUILD_CMDS
+       $(MAKE) PREFIX="/usr" BUILDMODE=static -C $(@D) amalg
+endef
+
+define HOST_LUAJIT_INSTALL_CMDS
+       $(MAKE) PREFIX="/usr" DESTDIR="$(HOST_DIR)" -C $(@D) install
+endef
+
 $(eval $(generic-package))
+$(eval $(host-generic-package))