diff options
author | Michael Nottebrock <lofi@FreeBSD.org> | 2007-07-13 00:04:21 +0000 |
---|---|---|
committer | Michael Nottebrock <lofi@FreeBSD.org> | 2007-07-13 00:04:21 +0000 |
commit | ee279d859feb6202deabda725cb8c0a4ec94f21f (patch) | |
tree | e2474571fc19a9826f4556e85411a5a38b27ca41 /databases/qt4-mysql-plugin/files | |
parent | xorg master-site addition (diff) |
During regression testing the WIP Qt 4.3.0 ports, I found that the sql
driver plugins were all broken - even in the current ports! :(
I am quite astonished nobody complained about this yet. Is there nobody
developing applications with database backends using Qt4 on FreeBSD? The
ports let you use the QtSql library and the database plugins without any
X11 dependencies! Using Qt for database frontends has never been so
attractive!
Anyway, this should fix the plugins.
Diffstat (limited to 'databases/qt4-mysql-plugin/files')
-rw-r--r-- | databases/qt4-mysql-plugin/files/Makefile.bsd | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/databases/qt4-mysql-plugin/files/Makefile.bsd b/databases/qt4-mysql-plugin/files/Makefile.bsd index f86a2a561b76..4774f995d1fa 100644 --- a/databases/qt4-mysql-plugin/files/Makefile.bsd +++ b/databases/qt4-mysql-plugin/files/Makefile.bsd @@ -1,19 +1,24 @@ SHLIB_NAME= libqsql${DB}.so -VPATH= ${DRIVER} +VPATH= ${PLUGIN}:${DRIVER} CXXFLAGS+= -I${DRIVER} \ -I${LOCALBASE}/include/Qt \ -I${LOCALBASE}/include/mysql \ -I${LOCALBASE}/include \ - ${PTHREAD_CFLAGS} -DQT_THREAD_SUPPORT -LDADD= -L${LOCALBASE}/lib -L${LOCALBASE}/lib/mysql ${PTHREAD_LIBS} -lQtSql -lmysqlclient -SRCS= qsql_${DB}.cpp + ${PTHREAD_CFLAGS} -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_PLUGIN \ + -DQT_SQL_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED +LDADD= -L${LOCALBASE}/lib -L${LOCALBASE}/lib/mysql ${PTHREAD_LIBS} -lQtSql -lmysqlclient_r +MOC?= ${LOCALBASE}/bin/moc-qt4 +SRCS= main.cpp qsql_${DB}.cpp moc_qsql_${DB}.cpp LIBDIR= ${PREFIX}/lib/plugins/sqldrivers ${LIBDIR}: mkdir -p ${LIBDIR} +moc_qsql_${DB}.cpp: qsql_${DB}.h + $(MOC) $(.ALLSRC) -o $(.TARGET) + beforeinstall: ${LIBDIR} .include <bsd.lib.mk> |