aboutsummaryrefslogtreecommitdiff
path: root/databases/luasql-mysql/Makefile
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2016-06-12 15:06:50 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2016-06-12 15:06:50 +0000
commit409b90a5b73a8746d984ea2635a8d12e3b00b746 (patch)
tree0a41adfb730bbea97eb5ad9f2177ed9b0a4036fb /databases/luasql-mysql/Makefile
parent57896f0316b5fb06bdf5a82b22333669ac955b7e (diff)
downloadports-409b90a5b73a8746d984ea2635a8d12e3b00b746.tar.gz
ports-409b90a5b73a8746d984ea2635a8d12e3b00b746.zip
Notes
Diffstat (limited to 'databases/luasql-mysql/Makefile')
-rw-r--r--databases/luasql-mysql/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/databases/luasql-mysql/Makefile b/databases/luasql-mysql/Makefile
index 877fc1441399..a3b08cc7911e 100644
--- a/databases/luasql-mysql/Makefile
+++ b/databases/luasql-mysql/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= luasql
-PORTVERSION= 2.3.1
+PORTVERSION= 2.3.3
DISTVERSIONPREFIX= v
PORTREVISION?= 0
CATEGORIES= databases
@@ -29,7 +29,6 @@ MAKE_ARGS= LUA_DIR=${LUA_SUBDIR} \
WARN="${CFLAGS}" \
CC="${CC}"
-USE_CSTD= gnu89
CFLAGS+= -Wno-return-type
PLIST_SUB= LUA_MIDLIBDIR=${LUA_MODLIBDIR} \
@@ -50,6 +49,16 @@ COMMENT= Lua interface to SQLite3
USES+= sqlite
MAKE_ARGS+= DRIVER_LIBS_sqlite3="-L ${LOCALBASE}/lib -lsqlite3" \
DRIVER_INCS_sqlite3="-I ${LOCALBASE}/include"
+.elif ${LUASQL_DRIVER} == "odbc"
+COMMENT= Lua interface to ODBC
+LIB_DEPENDS+= libodbc.so:databases/unixODBC
+MAKE_ARGS+= DRIVER_LIBS_odbc="-L ${LOCALBASE}/lib -lodbc" \
+ DRIVER_INCS_odbc="-I ${LOCALBASE}/include -DUNIXODBC"
+.elif ${LUASQL_DRIVER} == "firebird"
+COMMENT= Lua interface to Firebird
+USES+= firebird
+MAKE_ARGS+= DRIVER_LIBS_firebird="-L ${LOCALBASE}/lib -lfbclient" \
+ DRIVER_INCS_firebird="-I ${LOCALBASE}/include"
.else
IGNORE= unknown or unsupported luasql driver
.endif