[COPY] --- T2-COPYRIGHT-BEGIN --- [COPY] t2/package/*/luasql/luasql.desc [COPY] Copyright (C) 2006 - 2025 The T2 SDE Project [COPY] SPDX-License-Identifier: GPL-2.0 [COPY] --- T2-COPYRIGHT-END --- [I] A simple interface from Lua to a DBMS [T] LuaSQL is a simple interface from Lua to a DBMS. It enables a Lua [T] program to: connect to ODBC, ADO, Oracle, MySQL, SQLite and PostgreSQL [T] databases, execute arbitrary SQL statements, and retrieve results in a [T] row-by-row cursor fashion. [U] https://lunarmodules.github.io/luasql/ [A] Pedro Miller [A] Roberto Ierusalimschy [A] Andre Carregal [M] Rene Rebe [C] extra/database [F] CROSS FPIC [L] OpenSource [S] Stable [V] 2.7.0 [P] X -----5---9 200.400 [CV-URL] http://luaforge.net/frs/?group_id=12 [D] c99ade9185b954901eefe46cef186e62b7bbf9446b376af8f7fec18f luasql-2.7.0.tar.gz https://github.com/lunarmodules/luasql/archive/2.7.0/ . $base/package/*/*/lua-conf.in runmake=0 var_append makeinstopt ' ' LUA_LIBDIR=$root$pkglibdir dblist= pkginstalled mysql && var_append dblist ' ' mysql pkginstalled postgresql && var_append dblist ' ' postgres pkginstalled unixodbc && var_append dblist ' ' odbc pkginstalled sqlite && var_append dblist ' ' sqlite3 luasql_build_db() { case "$1" in mysql) di="-I$root/$(pkgprefix includedir mysql)/mysql" dl="-L$root/$(pkgprefix libdir mysql)/mysql -lmysqlclient -lz" ;; postgres) di="-I$root/$(pkgprefix includedir postgresql)" dl="-L$root/$(pkgprefix libdir postgresql) -lpq" ;; odbc) di="-I$root/$(pkgprefix includedir unixodbc)" dl="-L$root/$(pkgprefix libdir unixodbc) -lodbc" ;; sqlite3) di="-I$root/$(pkgprefix includedir sqlite)" dl="-L$root/$(pkgprefix libdir sqlite) -lsqlite3" ;; esac eval $MAKE $makeopt DRIVER_LIBS="'$dl'" DRIVER_INCS="'$di'" $1 } luasql_build() { for db in $dblist; do luasql_build_db $db done eval $MAKE $makeinstopt } hook_add premake 3 luasql_build