2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2016 Aurelien Larcher
13 # Copyright 2023 Friedrich Kink
19 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_NAME
= luajit
22 COMPONENT_VERSION
= 2.1.ROLLING
24 COMPONENT_SUMMARY
= LuaJIT
- Just-In-Time Compiler
(JIT
) for the Lua programming language
25 COMPONENT_PROJECT_URL
= http
://luajit.org
/
26 COMPONENT_FMRI
= developer
/luajit
27 COMPONENT_CLASSIFICATION
= Development
/Other Languages
28 COMPONENT_SRC_NAME
= LuaJIT
29 COMPONENT_SRC
= $(COMPONENT_SRC_NAME
)-$(COMPONENT_VERSION
)
30 COMPONENT_ARCHIVE
= v
$(COMPONENT_VERSION
).
tar.gz
31 COMPONENT_ARCHIVE_URL
= https
://github.com
/$(COMPONENT_SRC_NAME
)/$(COMPONENT_SRC_NAME
)/archive
/refs
/tags/$(COMPONENT_ARCHIVE
)
32 COMPONENT_ARCHIVE_HASH
= sha256
:31d7a4853df4c548bf91c13d3b690d19663d4c06ae952b62606c8225d0b410ad
33 COMPONENT_LICENSE
= MIT
34 COMPONENT_LICENSE_FILE
= COPYRIGHT
36 include $(WS_MAKE_RULES
)/common.mk
38 COMPONENT_BUILD_ARGS
+= PREFIX
=$(USRDIR
)
39 COMPONENT_BUILD_ARGS
+= CC
=$(CC
)
40 COMPONENT_BUILD_ARGS
+= CFLAGS
="$(CFLAGS)"
41 COMPONENT_BUILD_ARGS
+= LDFLAGS
="$(LDFLAGS)"
42 COMPONENT_BUILD_ARGS
+= MULTIBIN
=bin
43 COMPONENT_BUILD_ARGS
.32+= MULTILIB
=lib
44 COMPONENT_BUILD_ARGS
.64+= MULTILIB
=lib
/$(MACH64
)
46 COMPONENT_INSTALL_ARGS
+= PREFIX
=$(USRDIR
)
47 COMPONENT_INSTALL_ARGS
+= DESTDIR
=$(PROTO_DIR
)
48 COMPONENT_INSTALL_ARGS
+= MULTIBIN
=bin
49 COMPONENT_INSTALL_ARGS
.32+= MULTILIB
=lib
50 COMPONENT_INSTALL_ARGS
.64+= MULTILIB
=lib
/$(MACH64
)
52 TEST_TARGET
= $(NO_TESTS
)
54 REQUIRED_PACKAGES
+= runtime
/lua
55 # Auto-generated dependencies
56 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
57 REQUIRED_PACKAGES
+= system
/library
58 REQUIRED_PACKAGES
+= system
/library
/math