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
32 BUILD_WRKSRC= {{WRKSRC}}/src
33 MAKE_ARGS= MYCFLAGS="{{CFLAGS}} {{CPPFLAGS}}"
34 MYLDFLAGS="{{LDFLAGS}}"
35 MYLIBS="-L{{LOCALBASE}}/lib -lreadline"
42 LUA_SO=liblua-5.3.{{LIBEXT}}
43 LUA_SONAME=liblua-5.3.{{LIBEXT}}
45 TO_LIB="liblua-5.3.a liblua-5.3.{{LIBEXT}}"
46 INSTALL_TOP={{STAGEDIR}}{{PREFIX}}
47 INSTALL_INC={{STAGEDIR}}{{PREFIX}}/include/lua53
48 INSTALL_EXEC="{{INSTALL_PROGRAM}}"
50 PLIST_SUB= LUA_VER=5.3
53 SUB_LIST= version=5.3.5
54 includedir={{PREFIX}}/include/lua53
63 ${REINPLACE_CMD} -e 's,rand *(,random(,g' ${WRKSRC}/src/lmathlib.c
64 ${REINPLACE_CMD} -e "/LUA_ROOT/s|/usr/local|${PREFIX}|" \
65 ${WRKSRC}/src/luaconf.h ${WRKSRC}/src/lua.c
66 ${REINPLACE_CMD} -e 's|man/man1|share/man/man1|' ${WRKSRC}/Makefile
69 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/liblua-5.3.${LIBEXT}
70 ${MV} ${STAGEDIR}${MANPREFIX}/man/man1/lua.1 \
71 ${STAGEDIR}${MANPREFIX}/man/man1/lua53.1
72 ${MV} ${STAGEDIR}${MANPREFIX}/man/man1/luac.1 \
73 ${STAGEDIR}${MANPREFIX}/man/man1/luac53.1
74 ${INSTALL_DATA} ${WRKDIR}/lua-5.3.pc \
75 ${STAGEDIR}${PREFIX}/lib/pkgconfig
78 ${AWK} '/\/\*\*/ {start=1} /^$$/{start=0} {if (start) print}' \
79 ${WRKSRC}/src/lua.h > ${WRKDIR}/LICENSE
81 [FILE:1209:descriptions/desc.single]
82 Lua is a programming language originally designed for extending
83 applications, but also frequently used as a general-purpose, stand-alone
84 language. Lua combines simple procedural syntax (similar to Pascal) with
85 powerful data description constructs based on associative arrays and
86 extensible semantics. Lua is dynamically typed, interpreted from bytecodes,
87 and has automatic memory management with garbage collection, making it
88 ideal for configuration, scripting, and rapid prototyping.
90 A fundamental concept in the design of Lua is to provide meta-mechanisms
91 for implementing features, instead of providing a host of features directly
92 in the language. For example, although Lua is not a pure object-oriented
93 language, it does provide meta-mechanisms for implementing classes and
94 inheritance. Lua's meta-mechanisms bring an economy of concepts and keep
95 the language small, while allowing the semantics to be extended in
96 unconventional ways. Extensible semantics is a distinguishing feature of
99 Lua is implemented as a small library of C functions, written in ANSI C,
100 and compiles unmodified in all known platforms. The implementation goals
101 are simplicity, efficiency, portability, and low embedding cost.
105 0c2eed3f960446e1a3e4b9a1ca2f3ff893b6ce41942cf54d5dd59ab4b3b058ac 303543 lua-5.3.5.tar.gz
108 [FILE:299:manifests/plist.single]
112 include/lua%%SUFFIX%%/
120 liblua-%%LUA_VER%%.so
121 lib/pkgconfig/lua-%%LUA_VER%%.pc
125 @dir lib/lua/%%LUA_VER%%
126 @dir share/lua/%%LUA_VER%%
129 [FILE:1227:patches/patch-src_Makefile]
130 --- src/Makefile.orig 2018-06-25 17:46:36 UTC
133 # Your platform. See PLATS for possible values.
137 -CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS)
139 +CFLAGS= -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS)
140 LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS)
141 LIBS= -lm $(SYSLIBS) $(MYLIBS)
148 @@ -19,8 +19,8 @@ SYSCFLAGS=
159 @@ -43,7 +43,7 @@ LUAC_T= luac
162 ALL_O= $(BASE_O) $(LUA_O) $(LUAC_O)
163 -ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
164 +ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO)
167 # Targets start here.
168 @@ -55,8 +55,14 @@ o: $(ALL_O)
172 +$(LUALIB).so: $(CORE_O) $(LIB_O)
173 + $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(MYLDFLAGS) -shared -Wl,-soname=$(LUA_SONAME) $?
175 +$(LUALIB).dylib: $(CORE_O) $(LIB_O)
176 + $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(MYLDFLAGS) -dynamiclib -current_version 1.0 -install_name '$(PREFIX)/lib/$(LUA_SONAME)' $?
180 + $(AR) $(ARFLAGS) $@ $(BASE_O)
183 $(LUA_T): $(LUA_O) $(LUA_A)
186 [FILE:186:patches/patch-src__liolib.c]
187 --- src/liolib.c.orig 2015-04-03 18:41:57 UTC
199 [FILE:217:files/lua-5.3.pc.in]
202 includedir=%%includedir%%
206 Description: An Extensible Extension Language
208 Libs: -L${libdir} -l${soname} -lm
209 Cflags: -I${includedir}
212 [FILE:309:files/special.mk]
213 .if ${OPSYS} == "FreeBSD"
214 BUILD_TARGET= bsd # was 'freebsd'
215 .elif !empty(OPSYS:M*BSD*) || ${OPSYS} == "DragonFly"
217 .elif ${OPSYS} == "Linux"
219 .elif ${OPSYS} == "Darwin"
221 .elif ${OPSYS} == "SunOS"
222 BUILD_TARGET= solaris
224 BUILD_TARGET= generic