luajit2: replace arch dependency to common config HAS_LUAJIT_ARCH
authorChristian Marangi <ansuelsmth@gmail.com>
Sun, 24 Sep 2023 22:49:21 +0000 (00:49 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Mon, 25 Sep 2023 15:42:02 +0000 (17:42 +0200)
Replace arch dependency to common config HAS_LUAJIT_ARCH from luajit
package.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
lang/luajit2/Makefile

index ba002be5efa280caf0d6203798a7601a692fb5f7..86dc280187607dba302a148e2f3cb2bf8a6a3b43 100644 (file)
@@ -17,13 +17,17 @@ PKG_BUILD_FLAGS:=no-mips16
 include $(INCLUDE_DIR)/package.mk
 include $(INCLUDE_DIR)/host-build.mk
 
+# HAS_LUAJIT_ARCH config is defined in luajit and is used to define
+# arch deoendency for luajit. Since luajit2 is an improved version of
+# luajit, they share the same arch dependency. Refer there to update
+# dependency for them.
 define Package/luajit2
  SECTION:=lang
  CATEGORY:=Languages
  SUBMENU:=Lua
  TITLE:=LuaJIT from OpenResty
  URL:=https://www.luajit.org
- DEPENDS:=@(i386||x86_64||arm||armeb||aarch64||powerpc||mips||mipsel||mips64)
+ DEPENDS:=@HAS_LUAJIT_ARCH
  PROVIDES:=luajit
 endef