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.4.tar.gz:main
15 SPKGS[standard]= single
17 OPTIONS_AVAILABLE= none
18 OPTIONS_STANDARD= none
26 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="-Wl,-E -L{{LOCALBASE}}/lib -lreadline"
40 LUA_SONAME=liblua-5.3.so
42 TO_LIB="liblua-5.3.a liblua-5.3.so"
43 INSTALL_TOP={{STAGEDIR}}{{PREFIX}}
44 INSTALL_INC={{STAGEDIR}}{{PREFIX}}/include/lua53
45 INSTALL_EXEC="{{INSTALL_PROGRAM}}"
47 PLIST_SUB= LUA_VER=5.3
50 SUB_LIST= version=5.3.4
51 includedir={{PREFIX}}/include/lua53
60 ${REINPLACE_CMD} -e 's,rand *(,random(,g' ${WRKSRC}/src/lmathlib.c
61 ${REINPLACE_CMD} -e "/LUA_ROOT/s|/usr/local|${PREFIX}|" \
62 ${WRKSRC}/src/luaconf.h ${WRKSRC}/src/lua.c
63 ${REINPLACE_CMD} -e 's|man/man1|share/man/man1|' ${WRKSRC}/Makefile
66 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/liblua-5.3.so
67 ${MV} ${STAGEDIR}${MANPREFIX}/man/man1/lua.1 \
68 ${STAGEDIR}${MANPREFIX}/man/man1/lua53.1
69 ${MV} ${STAGEDIR}${MANPREFIX}/man/man1/luac.1 \
70 ${STAGEDIR}${MANPREFIX}/man/man1/luac53.1
71 ${INSTALL_DATA} ${WRKDIR}/lua-5.3.pc \
72 ${STAGEDIR}${PREFIX}/lib/pkgconfig
75 ${AWK} '/\/\*\*/ {start=1} /^$$/{start=0} {if (start) print}' \
76 ${WRKSRC}/src/lua.h > ${WRKDIR}/LICENSE
78 [FILE:1209:descriptions/desc.single]
79 Lua is a programming language originally designed for extending
80 applications, but also frequently used as a general-purpose, stand-alone
81 language. Lua combines simple procedural syntax (similar to Pascal) with
82 powerful data description constructs based on associative arrays and
83 extensible semantics. Lua is dynamically typed, interpreted from bytecodes,
84 and has automatic memory management with garbage collection, making it
85 ideal for configuration, scripting, and rapid prototyping.
87 A fundamental concept in the design of Lua is to provide meta-mechanisms
88 for implementing features, instead of providing a host of features directly
89 in the language. For example, although Lua is not a pure object-oriented
90 language, it does provide meta-mechanisms for implementing classes and
91 inheritance. Lua's meta-mechanisms bring an economy of concepts and keep
92 the language small, while allowing the semantics to be extended in
93 unconventional ways. Extensible semantics is a distinguishing feature of
96 Lua is implemented as a small library of C functions, written in ANSI C,
97 and compiles unmodified in all known platforms. The implementation goals
98 are simplicity, efficiency, portability, and low embedding cost.
102 f681aa518233bc407e23acf0f5887c884f17436f000d453b2491a9f11a52400c 303586 lua-5.3.4.tar.gz
105 [FILE:299:manifests/plist.single]
109 include/lua%%SUFFIX%%/
117 liblua-%%LUA_VER%%.so
118 lib/pkgconfig/lua-%%LUA_VER%%.pc
122 @dir lib/lua/%%LUA_VER%%
123 @dir share/lua/%%LUA_VER%%
126 [FILE:1146:patches/patch-src__Makefile]
127 --- src/Makefile.orig 2015-01-05 16:04:52 UTC
130 # Your platform. See PLATS for possible values.
134 -CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS)
136 +CFLAGS= -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS)
137 LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS)
138 LIBS= -lm $(SYSLIBS) $(MYLIBS)
145 @@ -19,8 +19,8 @@ SYSCFLAGS=
156 @@ -38,12 +38,13 @@ BASE_O= $(CORE_O) $(LIB_O) $(MYOBJS)
165 ALL_O= $(BASE_O) $(LUA_O) $(LUAC_O)
166 -ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
167 +ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO)
170 # Targets start here.
171 @@ -55,8 +56,11 @@ o: $(ALL_O)
175 +$(LUA_SO): $(CORE_O) $(LIB_O)
176 + $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(MYLDFLAGS) -shared -Wl,-soname=$(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:297:files/special.mk]
213 .if ${OPSYS} == "FreeBSD"
214 BUILD_TARGET= 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