1package = "LuaSQL-MySQL" 2version = "2.2.0rc1-2" 3source = { 4 url = "http://luasql.luaforge.net/luasql-2.2.0rc1.tar.gz", 5} 6description = { 7 summary = "Database connectivity for Lua (MySQL driver)", 8 detailed = [[ 9 LuaSQL is a simple interface from Lua to a DBMS. It enables a 10 Lua program to connect to databases, execute arbitrary SQL statements 11 and retrieve results in a row-by-row cursor fashion. 12 ]], 13 license = "MIT/X11", 14 homepage = "http://www.keplerproject.org/luasql/" 15} 16dependencies = { 17 "lua >= 5.1" 18} 19external_dependencies = { 20 MYSQL = { 21 header = "mysql/mysql.h" 22 }, 23 OPENSSL = { 24 header = "openssl/crypto.h" 25 }, 26 ZLIB = { 27 header = "zlib.h" 28 } 29} 30build = { 31 type = "make", 32 variables = { 33 T="mysql", 34 LIB_OPTION = "$(LIBFLAG) -L$(MYSQL_LIBDIR) -L$(MYSQL_LIBDIR)/mysql -lmysqlclient -L$(ZLIB_LIBDIR) -lz -L$(OPENSSL_LIBDIR) -lcrypt -lnsl -lm", 35 CFLAGS = "$(CFLAGS) -I$(LUA_INCDIR) -I$(MYSQL_INCDIR)/mysql -I$(OPENSSL_INCDIR)/openssl -I$(ZLIB_INCDIR)" 36 }, 37 build_variables = { 38 DRIVER_LIBS="", 39 }, 40 install_variables = { 41 LUA_LIBDIR = "$(LIBDIR)", 42 } 43} 44