Ravenports generated: 08 Nov 2023 05:53
[ravenports.git] / bucket_4A / luajit-openresty
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               luajit-openresty
4 VERSION=                2.1-20231006
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-20231006
13 DISTFILE[1]=            generated:main
14 DF_INDEX=               1
15 SPKGS[standard]=        complete
16                         primary
17                         tools
18                         dev
19                         man
20
21 OPTIONS_AVAILABLE=      none
22 OPTIONS_STANDARD=       none
23
24 EXRUN[tools]=           luajit-openresty:primary:standard
25
26 USES=                   cpe gmake cclibs:primary
27
28 LICENSE=                MIT:primary
29 LICENSE_FILE=           MIT:{{WRKSRC}}/COPYRIGHT
30 LICENSE_SCHEME=         solo
31
32 CPE_PRODUCT=            luajit
33 CPE_VENDOR=             luajit
34 FPC_EQUIVALENT=         lang/luajit-openresty
35
36 MAKE_ARGS=              CC={{CC}}
37                         Q=
38
39 SOVERSION=              2.1.1696562864
40 PLIST_SUB=              VERSION=2.1
41                         LIBVER=5.1
42                         API=2.1
43
44 VAR_OPSYS[dragonfly]=   MAKE_ARGS=XCFLAGS=-DLJ_TARGET_HAS_GETENTROPY=0
45
46 post-install:
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
51
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).
56
57 There are extensions which may never be merged back.
58
59
60 [FILE:39:descriptions/desc.tools]
61 This package contains the luajit tool.
62
63
64 [FILE:116:distinfo]
65 41530b3f00d3f284e771cfd09add2a0c672f1214f8780644ca9261da9e4d9310      1146439 openresty-luajit2-2.1-20231006.tar.gz
66
67
68 [FILE:81:manifests/plist.primary]
69 lib/
70  libluajit-%%LIBVER%%.so.%%SOMAJOR%%
71  libluajit-%%LIBVER%%.so.%%SOVERSION%%
72
73
74 [FILE:316:manifests/plist.tools]
75 bin/
76  luajit
77  luajit-%%SOVERSION%%
78 share/luajit-%%VERSION%%/jit/
79  bc.lua
80  bcsave.lua
81  dis_arm.lua
82  dis_arm64.lua
83  dis_arm64be.lua
84  dis_mips.lua
85  dis_mips64.lua
86  dis_mips64el.lua
87  dis_mips64r6.lua
88  dis_mips64r6el.lua
89  dis_mipsel.lua
90  dis_ppc.lua
91  dis_x64.lua
92  dis_x86.lua
93  dump.lua
94  p.lua
95  v.lua
96  vmdef.lua
97  zone.lua
98
99
100 [FILE:160:manifests/plist.dev]
101 include/luajit-%%API%%/
102  lauxlib.h
103  lua.h
104  lua.hpp
105  luaconf.h
106  luajit.h
107  lualib.h
108 lib/
109  libluajit-%%LIBVER%%.a
110  libluajit-%%LIBVER%%.so
111 lib/pkgconfig/luajit.pc
112
113
114 [FILE:27:manifests/plist.man]
115 share/man/man1/luajit.1.gz
116
117
118 [FILE:1694:patches/patch-Makefile]
119 --- Makefile.orig       2023-09-10 14:56:47 UTC
120 +++ Makefile
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!
124  #
125 -export PREFIX= /usr/local
126  export MULTILIB= lib
127  ##############################################################################
128  
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)
132  
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)
138  
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) && \
149           $(RM) $(FILE_PC).tmp
150 @@ -154,7 +150,6 @@ uninstall:
151         for file in $(FILES_INC); do \
152           $(UNINSTALL) $(INSTALL_INC)/$$file; \
153           done
154 -       $(LDCONFIG) $(INSTALL_LIB)
155         $(RMDIR) $(UNINSTALL_DIRS) || :
156         @echo "==== Successfully uninstalled LuaJIT $(VERSION) from $(PREFIX) ===="
157  
158
159
160 [FILE:809:patches/patch-src_Makefile]
161 --- src/Makefile.orig   2023-09-10 14:56:47 UTC
162 +++ src/Makefile
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
174  #
175 -CCOPT_x86= -march=i686 -msse -msse2 -mfpmath=sse
176  CCOPT_x64=
177  CCOPT_arm=
178  CCOPT_arm64=
179
180
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
184 @@ -20,6 +20,7 @@
185  #include "lj_mcode.h"
186  #include "lj_trace.h"
187  #include "lj_vm.h"
188 +#include "lualib.h"
189  
190  #if LJ_ARCH_PPC_ELFV2
191  #include "lualib.h"
192
193
194 [FILE:577:patches/patch-src_lj__prng.c]
195 --- src/lj_prng.c.orig  2023-09-10 14:56:47 UTC
196 +++ src/lj_prng.c
197 @@ -113,6 +113,7 @@ static PRGR libfunc_rgr;
198  #include <sys/syscall.h>
199  #else
200  
201 +# ifndef LJ_TARGET_HAS_GETENTROPY
202  #if LJ_TARGET_OSX && !LJ_TARGET_IOS
203  /*
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
208  #endif
209 +# endif
210  
211  #if LJ_TARGET_HAS_GETENTROPY
212  extern int getentropy(void *buf, size_t len)
213
214
215 [FILE:123:files/special.mk]
216 .if ${OPSYS} != Linux
217 pre-configure:
218         # remove -ldl from pc file
219         sed -i.bak -e 's/ -ldl//' ${WRKSRC}/etc/luajit.pc
220 .endif
221