# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/lua51/lua51.desc # Copyright (C) 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 # --- T2-COPYRIGHT-END --- [I] A lightweight, extensible programming language [T] Lua is a powerful light-weight programming language designed for [T] extending applications. Lua is also frequently used as a general-purpose, [T] stand-alone language. [T] [T] Lua combines simple procedural syntax with powerful data description [T] constructs based on associative arrays and extensible semantics. Lua is [T] dynamically typed, interpreted from bytecodes, and has automatic memory [T] management with garbage collection, making it ideal for configuration, [T] scripting, and rapid prototyping. [T] [T] Lua 5.1 is an older version of Lua needed as a dependency for some pieces [T] of software, as later versions have breaking API changes. [U] https://www.lua.org/ [A] PUC-Rio, Brazil [M] Tomas Glozar [C] extra/development [F] CROSS DIETLIBC FPIC NO-LTO [L] MIT [V] 5.1.5 [P] X -----5---9 138.000 [CV-FLAGS] NO-MAJOR [D] ec8b59b422790651ca62edc836d248e487c4ab889070da2fbcef95c4 lua-5.1.5.tar.gz https://www.lua.org/ftp/ # adjust installation path var_append makeopt ' ' "INSTALL_TOP=/$prefix INSTALL_LIB=$libdir" var_append makeinstopt ' ' "INSTALL_TOP=$root/$prefix INSTALL_LIB=$root$libdir" # custom filenames for lua51 binaries/libs altnames="LUA_T=lua51 LUAC_T=luac51 LUA_A=liblua51.a" tolists="TO_BIN='lua51 luac51' TO_LIB=liblua51.a TO_MAN='lua51.1 luac51.1'" var_append makeopt ' ' "$altnames" var_append makeinstopt ' ' "$altnames $tolists" lua_rename_manpages() { mv doc/lua.1 doc/lua51.1 mv doc/luac.1 doc/luac51.1 } hook_add postpatch 3 lua_rename_manpages # custom include paths for lua51 var_append makeinstopt ' ' "INSTALL_INC=$root$includedir/lua51" # guess aix bsd c89 freebsd linux-readline mingw posix solaris case $SDECFG_KERNEL in linux) var_append makeopt ' ' 'linux' ;; darwin) var_append makeopt ' ' 'macosx' ;; *) var_append makeopt ' ' 'generic' ;; esac # create a lua51.pc pkgconfig file if pkginstalled pkgconfig; then lua_pc_postmake() { mkdir -p $root$libdir/pkgconfig sde_substitute $confdir/lua51.pc | sed -e "s,@LIBS@,$myLIBS," \ -e "s,@CFLAGS@,$myCFLAGS," \ -e "s,@pkglibdir@,$pkglibdir," \ -e "s,@pkgdatadir@,$pkgdatadir," \ -e "s,//,/,g" > $root$libdir/pkgconfig/lua51.pc } hook_add postmake 3 lua_pc_postmake fi # cross build var_append AR ' ' rc