Ravenports generated: 27 Mar 2022 15:43
[ravenports.git] / bucket_4A / luajit-openresty
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               luajit-openresty
4 VERSION=                2.1-20220310
5 KEYWORDS=               lang
6 VARIANTS=               standard
7 SDESC[standard]=        Just-in-time compiler for Lua, OpenResty branch
8 HOMEPAGE=               https://github.com/openresty/luajit2
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            GITHUB/openresty:luajit2:v2.1-20220310
13 DISTFILE[1]=            generated:main
14 DF_INDEX=               1
15 SPKGS[standard]=        single
16
17 OPTIONS_AVAILABLE=      none
18 OPTIONS_STANDARD=       none
19
20 USES=                   cpe gmake cclibs:single
21
22 LICENSE=                MIT:single
23 LICENSE_FILE=           MIT:{{WRKSRC}}/COPYRIGHT
24 LICENSE_SCHEME=         solo
25
26 CPE_PRODUCT=            luajit
27 CPE_VENDOR=             luajit
28 FPC_EQUIVALENT=         lang/luajit-openresty
29
30 MAKE_ARGS=              CC={{CC}}
31                         Q=
32
33 SOVERSION=              2.1.0
34 PLIST_SUB=              VERSION=2.1.0-beta3
35                         LIBVER=5.1
36                         API=2.1
37
38 VAR_OPSYS[dragonfly]=   MAKE_ARGS=XCFLAGS=-DLJ_TARGET_HAS_GETENTROPY=0
39
40 post-install:
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
45
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).
50
51 There are extensions which may never be merged back.
52
53
54 [FILE:116:distinfo]
55 fc5b4fa374682a0480697d59e5fcc8f38a7f29c57e562e518507e2789d82fc32      1140740 openresty-luajit2-2.1-20220310.tar.gz
56
57
58 [FILE:539:manifests/plist.single]
59 bin/
60  luajit
61  luajit-%%VERSION%%
62 include/luajit-%%API%%/
63  lauxlib.h
64  lua.h
65  lua.hpp
66  luaconf.h
67  luajit.h
68  lualib.h
69 lib/
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/
76  bc.lua
77  bcsave.lua
78  dis_arm.lua
79  dis_arm64.lua
80  dis_arm64be.lua
81  dis_mips.lua
82  dis_mips64.lua
83  dis_mips64el.lua
84  dis_mipsel.lua
85  dis_ppc.lua
86  dis_x64.lua
87  dis_x86.lua
88  dump.lua
89  p.lua
90  v.lua
91  vmdef.lua
92  zone.lua
93 share/man/man1/luajit.1.gz
94
95
96 [FILE:1675:patches/patch-Makefile]
97 --- Makefile.orig       2022-01-11 05:27:47 UTC
98 +++ Makefile
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!
102  #
103 -export PREFIX= /usr/local
104  export MULTILIB= lib
105  ##############################################################################
106  
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)
110  
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)
116  
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) && \
127           $(RM) $(FILE_PC).tmp
128 @@ -143,7 +139,6 @@ uninstall:
129         for file in $(FILES_INC); do \
130           $(UNINSTALL) $(INSTALL_INC)/$$file; \
131           done
132 -       $(LDCONFIG) $(INSTALL_LIB)
133         $(RMDIR) $(UNINSTALL_DIRS) || :
134         @echo "==== Successfully uninstalled LuaJIT $(VERSION) from $(PREFIX) ===="
135  
136
137
138 [FILE:809:patches/patch-src_Makefile]
139 --- src/Makefile.orig   2022-01-11 05:27:47 UTC
140 +++ src/Makefile
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
152  #
153 -CCOPT_x86= -march=i686 -msse -msse2 -mfpmath=sse
154  CCOPT_x64=
155  CCOPT_arm=
156  CCOPT_arm64=
157
158
159 [FILE:226:patches/patch-src_lj__ccallback.c]
160 --- src/lj_ccallback.c.orig     2022-01-11 05:27:47 UTC
161 +++ src/lj_ccallback.c
162 @@ -20,6 +20,7 @@
163  #include "lj_mcode.h"
164  #include "lj_trace.h"
165  #include "lj_vm.h"
166 +#include "lualib.h"
167  
168  #if LJ_ARCH_PPC_ELFV2
169  #include "lualib.h"
170
171
172 [FILE:561:patches/patch-src_lj__prng.c]
173 --- src/lj_prng.c.orig  2022-01-11 05:27:47 UTC
174 +++ src/lj_prng.c
175 @@ -109,6 +109,7 @@ static PRGR libfunc_rgr;
176  #include <sys/syscall.h>
177  #else
178  
179 +# ifndef LJ_TARGET_HAS_GETENTROPY
180  #if LJ_TARGET_OSX && !LJ_TARGET_IOS
181  /*
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
186  #endif
187 +# endif
188  
189  #if LJ_TARGET_HAS_GETENTROPY
190  extern int getentropy(void *buf, size_t len);
191
192
193 [FILE:123:files/special.mk]
194 .if ${OPSYS} != Linux
195 pre-configure:
196         # remove -ldl from pc file
197         sed -i.bak -e 's/ -ldl//' ${WRKSRC}/etc/luajit.pc
198 .endif
199