1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= luajit-openresty
7 SDESC[standard]= Just-in-time compiler for Lua, OpenResty branch
8 HOMEPAGE= https://github.com/openresty/luajit2
12 SITES[main]= GITHUB/openresty:luajit2:v2.1-20231006
13 DISTFILE[1]= generated:main
15 SPKGS[standard]= complete
21 OPTIONS_AVAILABLE= none
22 OPTIONS_STANDARD= none
24 EXRUN[tools]= luajit-openresty:primary:standard
26 USES= cpe gmake cclibs:primary
29 LICENSE_FILE= MIT:{{WRKSRC}}/COPYRIGHT
34 FPC_EQUIVALENT= lang/luajit-openresty
39 SOVERSION= 2.1.1696562864
40 PLIST_SUB= VERSION=2.1
44 VAR_OPSYS[dragonfly]= MAKE_ARGS=XCFLAGS=-DLJ_TARGET_HAS_GETENTROPY=0
47 ${LN} -sf luajit-2.1.1696562864 ${STAGEDIR}${PREFIX}/bin/luajit
48 ${INSTALL_MAN} ${WRKSRC}/etc/luajit.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
49 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/luajit
50 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libluajit-*.so
52 [FILE:236:descriptions/desc.primary]
53 This is the official OpenResty branch of LuaJIT. It is not considered a
54 fork, since it is synchronized regularly from the upstream LuaJIT project
55 (https://github.com/LuaJIT/LuaJIT).
57 There are extensions which may never be merged back.
60 [FILE:39:descriptions/desc.tools]
61 This package contains the luajit tool.
65 41530b3f00d3f284e771cfd09add2a0c672f1214f8780644ca9261da9e4d9310 1146439 openresty-luajit2-2.1-20231006.tar.gz
68 [FILE:81:manifests/plist.primary]
70 libluajit-%%LIBVER%%.so.%%SOMAJOR%%
71 libluajit-%%LIBVER%%.so.%%SOVERSION%%
74 [FILE:316:manifests/plist.tools]
78 share/luajit-%%VERSION%%/jit/
100 [FILE:160:manifests/plist.dev]
101 include/luajit-%%API%%/
109 libluajit-%%LIBVER%%.a
110 libluajit-%%LIBVER%%.so
111 lib/pkgconfig/luajit.pc
114 [FILE:27:manifests/plist.man]
115 share/man/man1/luajit.1.gz
118 [FILE:1694:patches/patch-Makefile]
119 --- Makefile.orig 2023-09-10 14:56:47 UTC
121 @@ -30,7 +30,6 @@ VERSION= $(MMVERSION).$(RELVER)
122 # Change the installation path as needed. This automatically adjusts
123 # the paths in src/luaconf.h, too. Note: PREFIX must be an absolute path!
125 -export PREFIX= /usr/local
127 ##############################################################################
129 @@ -69,8 +68,7 @@ INSTALL_T= $(INSTALL_BIN)/$(INSTALL_TNAM
130 INSTALL_TSYM= $(INSTALL_BIN)/$(INSTALL_TSYMNAME)
131 INSTALL_PC= $(INSTALL_PKGCONFIG)/$(INSTALL_PCNAME)
133 -INSTALL_DIRS= $(INSTALL_BIN) $(INSTALL_LIB) $(INSTALL_INC) $(INSTALL_MAN) \
134 - $(INSTALL_PKGCONFIG) $(INSTALL_JITLIB) $(INSTALL_LMOD) $(INSTALL_CMOD)
135 +INSTALL_DIRS= $(INSTALL_INC) $(INSTALL_PKGCONFIG) $(INSTALL_JITLIB)
136 UNINSTALL_DIRS= $(INSTALL_JITLIB) $(INSTALL_LJLIBD) $(INSTALL_INC) \
137 $(INSTALL_LMOD) $(INSTALL_LMODD) $(INSTALL_CMOD) $(INSTALL_CMODD)
139 @@ -133,10 +131,8 @@ install: $(INSTALL_DEP)
140 $(RM) $(INSTALL_DYN) $(INSTALL_SHORT1) $(INSTALL_SHORT2)
141 cd src && test -f $(FILE_SO) && \
142 $(INSTALL_X) $(FILE_SO) $(INSTALL_DYN) && \
143 - ( $(LDCONFIG) $(INSTALL_LIB) || : ) && \
144 $(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT1) && \
145 $(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT2) || :
146 - cd etc && $(INSTALL_F) $(FILE_MAN) $(INSTALL_MAN)
147 cd etc && $(SED_PC) $(FILE_PC) > $(FILE_PC).tmp && \
148 $(INSTALL_F) $(FILE_PC).tmp $(INSTALL_PC) && \
150 @@ -154,7 +150,6 @@ uninstall:
151 for file in $(FILES_INC); do \
152 $(UNINSTALL) $(INSTALL_INC)/$$file; \
154 - $(LDCONFIG) $(INSTALL_LIB)
155 $(RMDIR) $(UNINSTALL_DIRS) || :
156 @echo "==== Successfully uninstalled LuaJIT $(VERSION) from $(PREFIX) ===="
160 [FILE:809:patches/patch-src_Makefile]
161 --- src/Makefile.orig 2023-09-10 14:56:47 UTC
163 @@ -35,7 +35,6 @@ CC= $(DEFAULT_CC)
164 # to slow down the C part by not omitting it. Debugging, tracebacks and
165 # unwinding are not affected -- the assembler part has frame unwind
166 # information and GCC emits it where needed (x64) or with -g (see CCDEBUG).
167 -CCOPT= -O2 -fomit-frame-pointer
168 # Use this if you want to generate a smaller binary (but it's slower):
169 #CCOPT= -Os -fomit-frame-pointer
170 # Note: it's no longer recommended to use -O3 with GCC 4.x.
171 @@ -46,7 +45,6 @@ CCOPT= -O2 -fomit-frame-pointer
172 # x86/x64 only: For GCC 4.2 or higher and if you don't intend to distribute
173 # the binaries to a different machine you could also use: -march=native
175 -CCOPT_x86= -march=i686 -msse -msse2 -mfpmath=sse
181 [FILE:226:patches/patch-src_lj__ccallback.c]
182 --- src/lj_ccallback.c.orig 2023-09-10 14:56:47 UTC
183 +++ src/lj_ccallback.c
185 #include "lj_mcode.h"
186 #include "lj_trace.h"
190 #if LJ_ARCH_PPC_ELFV2
194 [FILE:577:patches/patch-src_lj__prng.c]
195 --- src/lj_prng.c.orig 2023-09-10 14:56:47 UTC
197 @@ -113,6 +113,7 @@ static PRGR libfunc_rgr;
198 #include <sys/syscall.h>
201 +# ifndef LJ_TARGET_HAS_GETENTROPY
202 #if LJ_TARGET_OSX && !LJ_TARGET_IOS
204 ** In their infinite wisdom Apple decided to disallow getentropy() in the
205 @@ -128,6 +129,7 @@ static PRGR libfunc_rgr;
206 #elif (LJ_TARGET_BSD && !defined(__NetBSD__)) || LJ_TARGET_SOLARIS || LJ_TARGET_CYGWIN || LJ_TARGET_QNX
207 #define LJ_TARGET_HAS_GETENTROPY 1
211 #if LJ_TARGET_HAS_GETENTROPY
212 extern int getentropy(void *buf, size_t len)
215 [FILE:123:files/special.mk]
216 .if ${OPSYS} != Linux
218 # remove -ldl from pc file
219 sed -i.bak -e 's/ -ldl//' ${WRKSRC}/etc/luajit.pc