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-20220915
13 DISTFILE[1]= generated:main
15 SPKGS[standard]= single
17 OPTIONS_AVAILABLE= none
18 OPTIONS_STANDARD= none
20 USES= cpe gmake cclibs:single
23 LICENSE_FILE= MIT:{{WRKSRC}}/COPYRIGHT
28 FPC_EQUIVALENT= lang/luajit-openresty
34 PLIST_SUB= VERSION=2.1.0-beta3
38 VAR_OPSYS[dragonfly]= MAKE_ARGS=XCFLAGS=-DLJ_TARGET_HAS_GETENTROPY=0
41 ${LN} -sf luajit-2.1.0-beta3 ${STAGEDIR}${PREFIX}/bin/luajit
42 ${INSTALL_MAN} ${WRKSRC}/etc/luajit.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
43 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/luajit
44 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libluajit-*.so
46 [FILE:236:descriptions/desc.single]
47 This is the official OpenResty branch of LuaJIT. It is not considered a
48 fork, since it is synchronized regularly from the upstream LuaJIT project
49 (https://github.com/LuaJIT/LuaJIT).
51 There are extensions which may never be merged back.
55 a6104d4fa342d864ae00cb3313b07091af02dc61294b1d8fce1e17779998b497 1143798 openresty-luajit2-2.1-20220915.tar.gz
58 [FILE:539:manifests/plist.single]
62 include/luajit-%%API%%/
70 libluajit-%%LIBVER%%.a
71 libluajit-%%LIBVER%%.so
72 libluajit-%%LIBVER%%.so.%%SOMAJOR%%
73 libluajit-%%LIBVER%%.so.%%SOVERSION%%
74 lib/pkgconfig/luajit.pc
75 share/luajit-%%VERSION%%/jit/
93 share/man/man1/luajit.1.gz
96 [FILE:1675:patches/patch-Makefile]
97 --- Makefile.orig 2022-04-05 12:12:47 UTC
99 @@ -25,7 +25,6 @@ ABIVER= 5.1
100 # Change the installation path as needed. This automatically adjusts
101 # the paths in src/luaconf.h, too. Note: PREFIX must be an absolute path!
103 -export PREFIX= /usr/local
105 ##############################################################################
107 @@ -63,8 +62,7 @@ INSTALL_T= $(INSTALL_BIN)/$(INSTALL_TNAM
108 INSTALL_TSYM= $(INSTALL_BIN)/$(INSTALL_TSYMNAME)
109 INSTALL_PC= $(INSTALL_PKGCONFIG)/$(INSTALL_PCNAME)
111 -INSTALL_DIRS= $(INSTALL_BIN) $(INSTALL_LIB) $(INSTALL_INC) $(INSTALL_MAN) \
112 - $(INSTALL_PKGCONFIG) $(INSTALL_JITLIB) $(INSTALL_LMOD) $(INSTALL_CMOD)
113 +INSTALL_DIRS= $(INSTALL_INC) $(INSTALL_PKGCONFIG) $(INSTALL_JITLIB)
114 UNINSTALL_DIRS= $(INSTALL_JITLIB) $(INSTALL_LJLIBD) $(INSTALL_INC) \
115 $(INSTALL_LMOD) $(INSTALL_LMODD) $(INSTALL_CMOD) $(INSTALL_CMODD)
117 @@ -121,10 +119,8 @@ install: $(INSTALL_DEP)
118 $(RM) $(INSTALL_DYN) $(INSTALL_SHORT1) $(INSTALL_SHORT2)
119 cd src && test -f $(FILE_SO) && \
120 $(INSTALL_X) $(FILE_SO) $(INSTALL_DYN) && \
121 - ( $(LDCONFIG) $(INSTALL_LIB) || : ) && \
122 $(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT1) && \
123 $(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT2) || :
124 - cd etc && $(INSTALL_F) $(FILE_MAN) $(INSTALL_MAN)
125 cd etc && $(SED_PC) $(FILE_PC) > $(FILE_PC).tmp && \
126 $(INSTALL_F) $(FILE_PC).tmp $(INSTALL_PC) && \
128 @@ -143,7 +139,6 @@ uninstall:
129 for file in $(FILES_INC); do \
130 $(UNINSTALL) $(INSTALL_INC)/$$file; \
132 - $(LDCONFIG) $(INSTALL_LIB)
133 $(RMDIR) $(UNINSTALL_DIRS) || :
134 @echo "==== Successfully uninstalled LuaJIT $(VERSION) from $(PREFIX) ===="
138 [FILE:809:patches/patch-src_Makefile]
139 --- src/Makefile.orig 2022-04-05 12:12:47 UTC
141 @@ -36,7 +36,6 @@ CC= $(DEFAULT_CC)
142 # to slow down the C part by not omitting it. Debugging, tracebacks and
143 # unwinding are not affected -- the assembler part has frame unwind
144 # information and GCC emits it where needed (x64) or with -g (see CCDEBUG).
145 -CCOPT= -O2 -fomit-frame-pointer
146 # Use this if you want to generate a smaller binary (but it's slower):
147 #CCOPT= -Os -fomit-frame-pointer
148 # Note: it's no longer recommended to use -O3 with GCC 4.x.
149 @@ -47,7 +46,6 @@ CCOPT= -O2 -fomit-frame-pointer
150 # x86/x64 only: For GCC 4.2 or higher and if you don't intend to distribute
151 # the binaries to a different machine you could also use: -march=native
153 -CCOPT_x86= -march=i686 -msse -msse2 -mfpmath=sse
159 [FILE:226:patches/patch-src_lj__ccallback.c]
160 --- src/lj_ccallback.c.orig 2022-04-05 12:12:47 UTC
161 +++ src/lj_ccallback.c
163 #include "lj_mcode.h"
164 #include "lj_trace.h"
168 #if LJ_ARCH_PPC_ELFV2
172 [FILE:560:patches/patch-src_lj__prng.c]
173 --- src/lj_prng.c.orig 2022-04-05 12:12:47 UTC
175 @@ -109,6 +109,7 @@ static PRGR libfunc_rgr;
176 #include <sys/syscall.h>
179 +# ifndef LJ_TARGET_HAS_GETENTROPY
180 #if LJ_TARGET_OSX && !LJ_TARGET_IOS
182 ** In their infinite wisdom Apple decided to disallow getentropy() in the
183 @@ -124,6 +125,7 @@ static PRGR libfunc_rgr;
184 #elif (LJ_TARGET_BSD && !defined(__NetBSD__)) || LJ_TARGET_SOLARIS || LJ_TARGET_CYGWIN
185 #define LJ_TARGET_HAS_GETENTROPY 1
189 #if LJ_TARGET_HAS_GETENTROPY
190 extern int getentropy(void *buf, size_t len)
193 [FILE:123:files/special.mk]
194 .if ${OPSYS} != Linux
196 # remove -ldl from pc file
197 sed -i.bak -e 's/ -ldl//' ${WRKSRC}/etc/luajit.pc