# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= lua53 VERSION= 5.3.6 REVISION= 1 KEYWORDS= lang VARIANTS= std SDESC[std]= Light, powerful language for app. extension HOMEPAGE= https://www.lua.org/ CONTACT= nobody DOWNLOAD_GROUPS= main SITES[main]= https://www.lua.org/ftp/ DISTFILE[1]= lua-5.3.6.tar.gz:main DF_INDEX= 1 SPKGS[std]= set primary tools dev man OPTIONS_AVAILABLE= none OPTIONS_STANDARD= none BUILD_DEPENDS= libedit:dev:std libedit:primary:std EXRUN[tools]= libedit:primary:std USES= cpe readline DISTNAME= lua-5.3.6 LICENSE= MIT:primary LICENSE_FILE= MIT:{{WRKDIR}}/LICENSE LICENSE_SCHEME= solo CPE_PRODUCT= lua CPE_VENDOR= lua FPC_EQUIVALENT= lang/lua53 BUILD_WRKSRC= {{WRKSRC}}/src MAKE_ARGS= MYCFLAGS="{{CFLAGS}} {{CPPFLAGS}}" MYLDFLAGS="{{LDFLAGS}}" MYLIBS="-L{{LOCALBASE}}/lib -lreadline" CC="{{CC}}" ARFLAGS=rcu LUA_T=lua53 LUAC_T=luac53 LUA_A=liblua-5.3.a LUA_SO=liblua-5.3.so LUA_SONAME=liblua-5.3.so.1 TO_BIN="lua53 luac53" TO_LIB="liblua-5.3.a liblua-5.3.{{LIBEXT}}" INSTALL_TOP={{STAGEDIR}}{{PREFIX}} INSTALL_INC={{STAGEDIR}}{{PREFIX}}/include/lua53 INSTALL_EXEC="{{INSTALL_PROGRAM}}" SINGLE_JOB= yes SOVERSION= 1.0.0 PLIST_SUB= LUA_VER=5.3 SUFFIX=53 SUB_FILES= lua-5.3.pc SUB_LIST= version=5.3.6 includedir={{PREFIX}}/include/lua53 libdir={{PREFIX}}/lib library=lua-5.3 CFLAGS= -fPIC LDFLAGS= -lm -pthread VAR_OPSYS[freebsd]= MAKEFILE_LINE=BUILD_TARGET=freebsd VAR_OPSYS[sunos]= MAKEFILE_LINE=BUILD_TARGET=solaris VAR_OPSYS[linux]= MAKEFILE_LINE=BUILD_TARGET=linux VAR_OPSYS[darwin]= MAKEFILE_LINE=BUILD_TARGET=macosx VAR_OPSYS[netbsd]= MAKEFILE_LINE=BUILD_TARGET=bsd VAR_OPSYS[openbsd]= MAKEFILE_LINE=BUILD_TARGET=bsd VAR_OPSYS[dragonfly]= MAKEFILE_LINE=BUILD_TARGET=bsd VAR_OPSYS[midnightbsd]= MAKEFILE_LINE=BUILD_TARGET=bsd post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/liblua-5.3.${LIBEXT} ${MV} ${STAGEDIR}${MANPREFIX}/man/man1/lua.1 \ ${STAGEDIR}${MANPREFIX}/man/man1/lua53.1 ${MV} ${STAGEDIR}${MANPREFIX}/man/man1/luac.1 \ ${STAGEDIR}${MANPREFIX}/man/man1/luac53.1 ${INSTALL_DATA} ${WRKDIR}/lua-5.3.pc \ ${STAGEDIR}${PREFIX}/lib/pkgconfig (cd ${STAGEDIR}${PREFIX}/lib &&\ ${MV} liblua-5.3.so liblua-5.3.so.1 &&\ ${LN} -s liblua-5.3.so.1 liblua-5.3.so &&\ ${LN} -s liblua-5.3.a liblua-5.3_pic.a) post-configure: ${REINPLACE_CMD} -e 's,rand *(,random(,g' ${WRKSRC}/src/lmathlib.c ${REINPLACE_CMD} -e "/LUA_ROOT/s|/usr/local|${PREFIX}|" \ ${WRKSRC}/src/luaconf.h ${WRKSRC}/src/lua.c ${REINPLACE_CMD} -e 's|man/man1|share/man/man1|' ${WRKSRC}/Makefile post-extract: ${AWK} '/\/\*\*/ {start=1} /^$$/{start=0} {if (start) print}' \ ${WRKSRC}/src/lua.h > ${WRKDIR}/LICENSE [FILE:1209:descriptions/desc.primary] Lua is a programming language originally designed for extending applications, but also frequently used as a general-purpose, stand-alone language. Lua combines simple procedural syntax (similar to Pascal) with powerful data description constructs based on associative arrays and extensible semantics. Lua is dynamically typed, interpreted from bytecodes, and has automatic memory management with garbage collection, making it ideal for configuration, scripting, and rapid prototyping. A fundamental concept in the design of Lua is to provide meta-mechanisms for implementing features, instead of providing a host of features directly in the language. For example, although Lua is not a pure object-oriented language, it does provide meta-mechanisms for implementing classes and inheritance. Lua's meta-mechanisms bring an economy of concepts and keep the language small, while allowing the semantics to be extended in unconventional ways. Extensible semantics is a distinguishing feature of Lua. Lua is implemented as a small library of C functions, written in ANSI C, and compiles unmodified in all known platforms. The implementation goals are simplicity, efficiency, portability, and low embedding cost. [FILE:64:descriptions/desc.tools] This package contains the Lua interpreter and the Lua compiler. [FILE:95:distinfo] fc5fd69bb8736323f026672b1b7235da613d7177e72558893a0bdcd320466d60 303770 lua-5.3.6.tar.gz [FILE:38:manifests/plist.primary] lib/liblua-%%LUA_VER%%.so.%%SOMAJOR%% [FILE:88:manifests/plist.tools] bin/ lua%%SUFFIX%% luac%%SUFFIX%% @dir lib/lua/%%LUA_VER%% @dir share/lua/%%LUA_VER%% [FILE:180:manifests/plist.dev] include/lua%%SUFFIX%%/ lauxlib.h lua.h lua.hpp luaconf.h lualib.h lib/ liblua-%%LUA_VER%%.a liblua-%%LUA_VER%%.so lib/pkgconfig/lua-%%LUA_VER%%.pc liblua-%%LUA_VER%%_pic.a [FILE:51:manifests/plist.man] share/man/man1/ lua%%SUFFIX%%.1 luac%%SUFFIX%%.1 [FILE:1057:patches/patch-src_Makefile] --- src/Makefile.orig 2020-07-13 18:38:14 UTC +++ src/Makefile @@ -6,12 +6,12 @@ # Your platform. See PLATS for possible values. PLAT= none -CC= gcc -std=gnu99 -CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS) +CC?= gcc -std=gnu99 +CFLAGS= -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS) LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS) LIBS= -lm $(SYSLIBS) $(MYLIBS) -AR= ar rcu +AR= ar RANLIB= ranlib RM= rm -f @@ -19,8 +19,8 @@ SYSCFLAGS= SYSLDFLAGS= SYSLIBS= -MYCFLAGS= -MYLDFLAGS= +MYCFLAGS?= +MYLDFLAGS?= MYLIBS= MYOBJS= @@ -43,7 +43,7 @@ LUAC_T= luac LUAC_O= luac.o ALL_O= $(BASE_O) $(LUA_O) $(LUAC_O) -ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) +ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO) ALL_A= $(LUA_A) # Targets start here. @@ -55,8 +55,11 @@ o: $(ALL_O) a: $(ALL_A) +$(LUA_SO): $(CORE_O) $(LIB_O) + $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(MYLDFLAGS) -shared -Wl,-soname=$(LUA_SONAME) $? + $(LUA_A): $(BASE_O) - $(AR) $@ $(BASE_O) + $(AR) $(ARFLAGS) $@ $(BASE_O) $(RANLIB) $@ $(LUA_T): $(LUA_O) $(LUA_A) [FILE:186:patches/patch-src__liolib.c] --- src/liolib.c.orig 2020-09-14 15:34:00 UTC +++ src/liolib.c @@ -16,6 +16,7 @@ #include #include #include +#include #include "lua.h" [FILE:220:files/lua-5.3.pc.in] version=%%version%% libdir=%%libdir%% includedir=%%includedir%% library=%%library%% Name: Lua Description: An Extensible Extension Language Version: ${version} Libs: -L${libdir} -l${library} -lm Cflags: -I${includedir}