Ravenports generated: 05 Dec 2021 23:44
[ravenports.git] / bucket_4A / luajit-openresty
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               luajit-openresty
4 VERSION=                2.1-20210510
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-20210510
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 FPC_EQUIVALENT=         lang/luajit-openresty
27
28 MAKE_ARGS=              CC={{CC}}
29                         Q=
30
31 SOVERSION=              2.1.0
32 PLIST_SUB=              VERSION=2.1.0-beta3
33                         LIBVER=5.1
34                         API=2.1
35
36 VAR_OPSYS[dragonfly]=   MAKE_ARGS=XCFLAGS=-DLJ_TARGET_HAS_GETENTROPY=0
37
38 post-install:
39         ${LN} -sf luajit-2.1.0-beta3 ${STAGEDIR}${PREFIX}/bin/luajit
40         ${INSTALL_MAN} ${WRKSRC}/etc/luajit.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
41         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/luajit
42         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libluajit-*.so
43
44 [FILE:236:descriptions/desc.single]
45 This is the official OpenResty branch of LuaJIT. It is not considered a
46 fork, since it is synchronized regularly from the upstream LuaJIT project
47 (https://github.com/LuaJIT/LuaJIT).
48
49 There are extensions which may never be merged back.
50
51
52 [FILE:116:distinfo]
53 1ee6dad809a5bb22efb45e6dac767f7ce544ad652d353a93d7f26b605f69fe3f      1106201 openresty-luajit2-2.1-20210510.tar.gz
54
55
56 [FILE:539:manifests/plist.single]
57 bin/
58  luajit
59  luajit-%%VERSION%%
60 include/luajit-%%API%%/
61  lauxlib.h
62  lua.h
63  lua.hpp
64  luaconf.h
65  luajit.h
66  lualib.h
67 lib/
68  libluajit-%%LIBVER%%.a
69  libluajit-%%LIBVER%%.so
70  libluajit-%%LIBVER%%.so.%%SOMAJOR%%
71  libluajit-%%LIBVER%%.so.%%SOVERSION%%
72 lib/pkgconfig/luajit.pc
73 share/luajit-%%VERSION%%/jit/
74  bc.lua
75  bcsave.lua
76  dis_arm.lua
77  dis_arm64.lua
78  dis_arm64be.lua
79  dis_mips.lua
80  dis_mips64.lua
81  dis_mips64el.lua
82  dis_mipsel.lua
83  dis_ppc.lua
84  dis_x64.lua
85  dis_x86.lua
86  dump.lua
87  p.lua
88  v.lua
89  vmdef.lua
90  zone.lua
91 share/man/man1/luajit.1.gz
92
93
94 [FILE:1675:patches/patch-Makefile]
95 --- Makefile.orig       2021-05-06 06:13:24 UTC
96 +++ Makefile
97 @@ -25,7 +25,6 @@ ABIVER=  5.1
98  # Change the installation path as needed. This automatically adjusts
99  # the paths in src/luaconf.h, too. Note: PREFIX must be an absolute path!
100  #
101 -export PREFIX= /usr/local
102  export MULTILIB= lib
103  ##############################################################################
104  
105 @@ -63,8 +62,7 @@ INSTALL_T= $(INSTALL_BIN)/$(INSTALL_TNAM
106  INSTALL_TSYM= $(INSTALL_BIN)/$(INSTALL_TSYMNAME)
107  INSTALL_PC= $(INSTALL_PKGCONFIG)/$(INSTALL_PCNAME)
108  
109 -INSTALL_DIRS= $(INSTALL_BIN) $(INSTALL_LIB) $(INSTALL_INC) $(INSTALL_MAN) \
110 -  $(INSTALL_PKGCONFIG) $(INSTALL_JITLIB) $(INSTALL_LMOD) $(INSTALL_CMOD)
111 +INSTALL_DIRS= $(INSTALL_INC) $(INSTALL_PKGCONFIG) $(INSTALL_JITLIB)
112  UNINSTALL_DIRS= $(INSTALL_JITLIB) $(INSTALL_LJLIBD) $(INSTALL_INC) \
113    $(INSTALL_LMOD) $(INSTALL_LMODD) $(INSTALL_CMOD) $(INSTALL_CMODD)
114  
115 @@ -121,10 +119,8 @@ install: $(INSTALL_DEP)
116         $(RM) $(INSTALL_DYN) $(INSTALL_SHORT1) $(INSTALL_SHORT2)
117         cd src && test -f $(FILE_SO) && \
118           $(INSTALL_X) $(FILE_SO) $(INSTALL_DYN) && \
119 -         ( $(LDCONFIG) $(INSTALL_LIB) || : ) && \
120           $(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT1) && \
121           $(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT2) || :
122 -       cd etc && $(INSTALL_F) $(FILE_MAN) $(INSTALL_MAN)
123         cd etc && $(SED_PC) $(FILE_PC) > $(FILE_PC).tmp && \
124           $(INSTALL_F) $(FILE_PC).tmp $(INSTALL_PC) && \
125           $(RM) $(FILE_PC).tmp
126 @@ -143,7 +139,6 @@ uninstall:
127         for file in $(FILES_INC); do \
128           $(UNINSTALL) $(INSTALL_INC)/$$file; \
129           done
130 -       $(LDCONFIG) $(INSTALL_LIB)
131         $(RMDIR) $(UNINSTALL_DIRS) || :
132         @echo "==== Successfully uninstalled LuaJIT $(VERSION) from $(PREFIX) ===="
133  
134
135
136 [FILE:809:patches/patch-src_Makefile]
137 --- src/Makefile.orig   2021-05-06 06:13:24 UTC
138 +++ src/Makefile
139 @@ -36,7 +36,6 @@ CC= $(DEFAULT_CC)
140  # to slow down the C part by not omitting it. Debugging, tracebacks and
141  # unwinding are not affected -- the assembler part has frame unwind
142  # information and GCC emits it where needed (x64) or with -g (see CCDEBUG).
143 -CCOPT= -O2 -fomit-frame-pointer
144  # Use this if you want to generate a smaller binary (but it's slower):
145  #CCOPT= -Os -fomit-frame-pointer
146  # Note: it's no longer recommended to use -O3 with GCC 4.x.
147 @@ -47,7 +46,6 @@ CCOPT= -O2 -fomit-frame-pointer
148  # x86/x64 only: For GCC 4.2 or higher and if you don't intend to distribute
149  # the binaries to a different machine you could also use: -march=native
150  #
151 -CCOPT_x86= -march=i686 -msse -msse2 -mfpmath=sse
152  CCOPT_x64=
153  CCOPT_arm=
154  CCOPT_arm64=
155
156
157 [FILE:264:patches/patch-src_lj__ccallback.c]
158 --- src/lj_ccallback.c.orig     2021-05-06 06:13:24 UTC
159 +++ src/lj_ccallback.c
160 @@ -20,6 +20,7 @@
161  #include "lj_mcode.h"
162  #include "lj_trace.h"
163  #include "lj_vm.h"
164 +#include "lualib.h"
165  
166  /* -- Target-specific handling of callback slots -------------------------- */
167  
168
169
170 [FILE:517:patches/patch-src_lj__prng.c]
171 --- src/lj_prng.c.orig  2021-05-06 06:13:24 UTC
172 +++ src/lj_prng.c
173 @@ -109,6 +109,7 @@ static PRGR libfunc_rgr;
174  #include <sys/syscall.h>
175  #else
176  
177 +# ifndef LJ_TARGET_HAS_GETENTROPY
178  #if LJ_TARGET_OSX
179  #include <Availability.h>
180  #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200 || \
181 @@ -118,6 +119,7 @@ static PRGR libfunc_rgr;
182  #elif LJ_TARGET_BSD || LJ_TARGET_SOLARIS || LJ_TARGET_CYGWIN
183  #define LJ_TARGET_HAS_GETENTROPY       1
184  #endif
185 +# endif
186  
187  #if LJ_TARGET_HAS_GETENTROPY
188  extern int getentropy(void *buf, size_t len);
189
190
191 [FILE:123:files/special.mk]
192 .if ${OPSYS} != Linux
193 pre-configure:
194         # remove -ldl from pc file
195         sed -i.bak -e 's/ -ldl//' ${WRKSRC}/etc/luajit.pc
196 .endif
197