1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Light, powerful language for app. extension
8 HOMEPAGE= http://www.lua.org/
12 SITES[main]= http://www.lua.org/ftp/
13 DISTFILE[1]= lua-5.3.5.tar.gz:main
15 SPKGS[standard]= single
17 OPTIONS_AVAILABLE= none
18 OPTIONS_STANDARD= none
25 LICENSE_FILE= MIT:{{WRKDIR}}/LICENSE
28 FPC_EQUIVALENT= lang/lua53
30 BUILD_WRKSRC= {{WRKSRC}}/src
31 MAKE_ARGS= MYCFLAGS="{{CFLAGS}} {{CPPFLAGS}}"
32 MYLDFLAGS="{{LDFLAGS}}"
33 MYLIBS="-L{{LOCALBASE}}/lib -lreadline"
40 LUA_SO=liblua-5.3.{{LIBEXT}}
41 LUA_SONAME=liblua-5.3.{{LIBEXT}}
43 TO_LIB="liblua-5.3.a liblua-5.3.{{LIBEXT}}"
44 INSTALL_TOP={{STAGEDIR}}{{PREFIX}}
45 INSTALL_INC={{STAGEDIR}}{{PREFIX}}/include/lua53
46 INSTALL_EXEC="{{INSTALL_PROGRAM}}"
48 PLIST_SUB= LUA_VER=5.3
51 SUB_LIST= version=5.3.5
52 includedir={{PREFIX}}/include/lua53
61 ${REINPLACE_CMD} -e 's,rand *(,random(,g' ${WRKSRC}/src/lmathlib.c
62 ${REINPLACE_CMD} -e "/LUA_ROOT/s|/usr/local|${PREFIX}|" \
63 ${WRKSRC}/src/luaconf.h ${WRKSRC}/src/lua.c
64 ${REINPLACE_CMD} -e 's|man/man1|share/man/man1|' ${WRKSRC}/Makefile
67 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/liblua-5.3.${LIBEXT}
68 ${MV} ${STAGEDIR}${MANPREFIX}/man/man1/lua.1 \
69 ${STAGEDIR}${MANPREFIX}/man/man1/lua53.1
70 ${MV} ${STAGEDIR}${MANPREFIX}/man/man1/luac.1 \
71 ${STAGEDIR}${MANPREFIX}/man/man1/luac53.1
72 ${INSTALL_DATA} ${WRKDIR}/lua-5.3.pc \
73 ${STAGEDIR}${PREFIX}/lib/pkgconfig
76 ${AWK} '/\/\*\*/ {start=1} /^$$/{start=0} {if (start) print}' \
77 ${WRKSRC}/src/lua.h > ${WRKDIR}/LICENSE
79 [FILE:1209:descriptions/desc.single]
80 Lua is a programming language originally designed for extending
81 applications, but also frequently used as a general-purpose, stand-alone
82 language. Lua combines simple procedural syntax (similar to Pascal) with
83 powerful data description constructs based on associative arrays and
84 extensible semantics. Lua is dynamically typed, interpreted from bytecodes,
85 and has automatic memory management with garbage collection, making it
86 ideal for configuration, scripting, and rapid prototyping.
88 A fundamental concept in the design of Lua is to provide meta-mechanisms
89 for implementing features, instead of providing a host of features directly
90 in the language. For example, although Lua is not a pure object-oriented
91 language, it does provide meta-mechanisms for implementing classes and
92 inheritance. Lua's meta-mechanisms bring an economy of concepts and keep
93 the language small, while allowing the semantics to be extended in
94 unconventional ways. Extensible semantics is a distinguishing feature of
97 Lua is implemented as a small library of C functions, written in ANSI C,
98 and compiles unmodified in all known platforms. The implementation goals
99 are simplicity, efficiency, portability, and low embedding cost.
103 0c2eed3f960446e1a3e4b9a1ca2f3ff893b6ce41942cf54d5dd59ab4b3b058ac 303543 lua-5.3.5.tar.gz
106 [FILE:299:manifests/plist.single]
110 include/lua%%SUFFIX%%/
118 liblua-%%LUA_VER%%.so
119 lib/pkgconfig/lua-%%LUA_VER%%.pc
123 @dir lib/lua/%%LUA_VER%%
124 @dir share/lua/%%LUA_VER%%
127 [FILE:1227:patches/patch-src_Makefile]
128 --- src/Makefile.orig 2018-06-25 17:46:36 UTC
131 # Your platform. See PLATS for possible values.
135 -CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS)
137 +CFLAGS= -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS)
138 LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS)
139 LIBS= -lm $(SYSLIBS) $(MYLIBS)
146 @@ -19,8 +19,8 @@ SYSCFLAGS=
157 @@ -43,7 +43,7 @@ LUAC_T= luac
160 ALL_O= $(BASE_O) $(LUA_O) $(LUAC_O)
161 -ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
162 +ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO)
165 # Targets start here.
166 @@ -55,8 +55,14 @@ o: $(ALL_O)
170 +$(LUALIB).so: $(CORE_O) $(LIB_O)
171 + $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(MYLDFLAGS) -shared -Wl,-soname=$(LUA_SONAME) $?
173 +$(LUALIB).dylib: $(CORE_O) $(LIB_O)
174 + $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(MYLDFLAGS) -dynamiclib -current_version 1.0 -install_name '$(PREFIX)/lib/$(LUA_SONAME)' $?
178 + $(AR) $(ARFLAGS) $@ $(BASE_O)
181 $(LUA_T): $(LUA_O) $(LUA_A)
184 [FILE:186:patches/patch-src__liolib.c]
185 --- src/liolib.c.orig 2015-04-03 18:41:57 UTC
197 [FILE:217:files/lua-5.3.pc.in]
200 includedir=%%includedir%%
204 Description: An Extensible Extension Language
206 Libs: -L${libdir} -l${soname} -lm
207 Cflags: -I${includedir}
210 [FILE:309:files/special.mk]
211 .if ${OPSYS} == "FreeBSD"
212 BUILD_TARGET= bsd # was 'freebsd'
213 .elif !empty(OPSYS:M*BSD*) || ${OPSYS} == "DragonFly"
215 .elif ${OPSYS} == "Linux"
217 .elif ${OPSYS} == "Darwin"
219 .elif ${OPSYS} == "SunOS"
220 BUILD_TARGET= solaris
222 BUILD_TARGET= generic