summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2016-05-16 19:22:51 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2016-05-16 19:22:51 +0000
commit1bdb26cbb46571429124fecab415e601ef6dcfc1 (patch)
tree447b8bb45d059d5e4a1089b8a94115b79f379b65 /databases
parentjava/intellij: update to version 2016.1.2, take maintainership. (diff)
- Convert to USES=mysql
- Cosmetic fixes
Notes
Notes: svn path=/head/; revision=415359
Diffstat (limited to 'databases')
-rw-r--r--databases/luasql-mysql/Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/databases/luasql-mysql/Makefile b/databases/luasql-mysql/Makefile
index f3f2d8c38c1b..877fc1441399 100644
--- a/databases/luasql-mysql/Makefile
+++ b/databases/luasql-mysql/Makefile
@@ -21,7 +21,7 @@ ALL_TARGET= ${LUASQL_DRIVER}
LUASQL_DRIVER?= mysql
-MAKE_ARGS+= LUA_DIR=${LUA_SUBDIR} \
+MAKE_ARGS= LUA_DIR=${LUA_SUBDIR} \
LUA_INC=${LUA_INCDIR} \
LUA_LIBDIR=${LUA_LIBDIR} \
LUA_VERSION_NUM="${LUA_VER_STR}0" \
@@ -32,11 +32,12 @@ MAKE_ARGS+= LUA_DIR=${LUA_SUBDIR} \
USE_CSTD= gnu89
CFLAGS+= -Wno-return-type
-PLIST_SUB+= LUA_MIDLIBDIR=${LUA_MODLIBDIR}
+PLIST_SUB= LUA_MIDLIBDIR=${LUA_MODLIBDIR} \
+ LUASQL_DRIVER=${LUASQL_DRIVER}
.if ${LUASQL_DRIVER} == "mysql"
COMMENT= Lua interface to MySQL
-USE_MYSQL= yes
+USES+= mysql
MAKE_ARGS+= DRIVER_LIBS_mysql="-L ${LOCALBASE}/lib/mysql -lmysqlclient" \
DRIVER_INCS_mysql="-I ${LOCALBASE}/include/mysql"
.elif ${LUASQL_DRIVER} == "postgres"
@@ -53,10 +54,8 @@ MAKE_ARGS+= DRIVER_LIBS_sqlite3="-L ${LOCALBASE}/lib -lsqlite3" \
IGNORE= unknown or unsupported luasql driver
.endif
-PLIST_SUB+= LUASQL_DRIVER=${LUASQL_DRIVER}
-
do-install:
@${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}/luasql
- @${INSTALL_LIB} ${WRKSRC}/src/${LUASQL_DRIVER}.so ${STAGEDIR}${LUA_MODLIBDIR}/luasql
+ ${INSTALL_LIB} ${WRKSRC}/src/${LUASQL_DRIVER}.so ${STAGEDIR}${LUA_MODLIBDIR}/luasql
.include <bsd.port.mk>