# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= lua54 VERSION= 5.4.6 REVISION= 1 KEYWORDS= lang VARIANTS= standard SDESC[standard]= 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.4.6.tar.gz:main DF_INDEX= 1 SPKGS[standard]= complete primary tools dev man OPTIONS_AVAILABLE= none OPTIONS_STANDARD= none BUILD_DEPENDS= libedit:single:standard EXRUN[tools]= libedit:single:standard USES= cpe readline DISTNAME= lua-5.4.6 LICENSE= MIT:primary LICENSE_FILE= MIT:{{WRKDIR}}/LICENSE LICENSE_SCHEME= solo CPE_PRODUCT= lua CPE_VENDOR= lua FPC_EQUIVALENT= lang/lua54 BUILD_WRKSRC= {{WRKSRC}}/src MAKE_ARGS= MYCFLAGS="{{CFLAGS}} {{CPPFLAGS}}" MYLDFLAGS="{{LDFLAGS}}" MYLIBS="-L{{LOCALBASE}}/lib -lreadline" CC="{{CC}}" ARFLAGS=rcu LUA_T=lua54 LUAC_T=luac54 LUA_A=liblua-5.4.a LUA_SO=liblua-5.4.so LUA_SONAME=liblua-5.4.so.1 TO_BIN="lua54 luac54" TO_LIB="liblua-5.4.a liblua-5.4.{{LIBEXT}}" INSTALL_TOP={{STAGEDIR}}{{PREFIX}} INSTALL_INC={{STAGEDIR}}{{PREFIX}}/include/lua54 INSTALL_EXEC="{{INSTALL_PROGRAM}}" SINGLE_JOB= yes SOVERSION= 1.0.0 PLIST_SUB= LUA_VER=5.4 SUFFIX=54 SUB_FILES= lua-5.4.pc SUB_LIST= version=5.4.6 includedir={{PREFIX}}/include/lua54 libdir={{PREFIX}}/lib library=lua-5.4 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.4.${LIBEXT} ${MV} ${STAGEDIR}${MANPREFIX}/man/man1/lua.1 \ ${STAGEDIR}${MANPREFIX}/man/man1/lua54.1 ${MV} ${STAGEDIR}${MANPREFIX}/man/man1/luac.1 \ ${STAGEDIR}${MANPREFIX}/man/man1/luac54.1 ${INSTALL_DATA} ${WRKDIR}/lua-5.4.pc \ ${STAGEDIR}${PREFIX}/lib/pkgconfig (cd ${STAGEDIR}${PREFIX}/lib &&\ ${MV} liblua-5.4.so liblua-5.4.so.1 &&\ ${LN} -s liblua-5.4.so.1 liblua-5.4.so &&\ ${LN} -s liblua-5.4.a liblua-5.4_pic.a) pre-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] 7d5ea1b9cb6aa0b59ca3dde1c6adcb57ef83a1ba8e5432c0ecd06bf439b3ad88 363329 lua-5.4.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 liblua-%%LUA_VER%%_pic.a lib/pkgconfig/lua-%%LUA_VER%%.pc [FILE:57:manifests/plist.man] share/man/man1/ lua%%SUFFIX%%.1.gz luac%%SUFFIX%%.1.gz [FILE:1076:patches/patch-src_Makefile] --- src/Makefile.orig 2023-02-03 10:43:14 UTC +++ src/Makefile @@ -6,12 +6,12 @@ # Your platform. See PLATS for possible values. PLAT= guess -CC= gcc -std=gnu99 -CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_3 $(SYSCFLAGS) $(MYCFLAGS) +CC?= gcc -std=gnu99 +CFLAGS+= -Wall -Wextra -DLUA_COMPAT_5_3 $(SYSCFLAGS) $(MYCFLAGS) LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS) LIBS= -lm $(SYSLIBS) $(MYLIBS) -AR= ar rcu +AR?= ar rcu RANLIB= ranlib RM= rm -f UNAME= uname @@ -20,8 +20,8 @@ SYSCFLAGS= SYSLDFLAGS= SYSLIBS= -MYCFLAGS= -MYLDFLAGS= +MYCFLAGS?= +MYLDFLAGS?= MYLIBS= MYOBJS= @@ -44,7 +44,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. @@ -56,8 +56,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 2023-05-02 20:02:29 UTC +++ src/liolib.c @@ -16,6 +16,7 @@ #include #include #include +#include #include "lua.h" [FILE:220:files/lua-5.4.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}