aboutsummaryrefslogtreecommitdiffstats
path: root/databases/qt-mysql-plugin/files
diff options
context:
space:
mode:
authorlofi <lofi@FreeBSD.org>2003-12-30 18:09:57 +0800
committerlofi <lofi@FreeBSD.org>2003-12-30 18:09:57 +0800
commit1510ef54c862f229e380f5245a4380172403e16a (patch)
treef0f8f56a28dda77c7332fe3a390f9f208d657d35 /databases/qt-mysql-plugin/files
parent55b291d592bf890c3b203cff129ed0c16ca3803c (diff)
downloadfreebsd-ports-gnome-1510ef54c862f229e380f5245a4380172403e16a.tar.gz
freebsd-ports-gnome-1510ef54c862f229e380f5245a4380172403e16a.tar.zst
freebsd-ports-gnome-1510ef54c862f229e380f5245a4380172403e16a.zip
Build, link and install the plugins properly so they can actually work.
Reviewed by: maintainer
Diffstat (limited to 'databases/qt-mysql-plugin/files')
-rw-r--r--databases/qt-mysql-plugin/files/Makefile.bsd8
1 files changed, 7 insertions, 1 deletions
diff --git a/databases/qt-mysql-plugin/files/Makefile.bsd b/databases/qt-mysql-plugin/files/Makefile.bsd
index 2f6cd74f5939..d6661dea829f 100644
--- a/databases/qt-mysql-plugin/files/Makefile.bsd
+++ b/databases/qt-mysql-plugin/files/Makefile.bsd
@@ -6,7 +6,13 @@ VPATH= ${PLUGIN}:${DRIVER}
CXXFLAGS+= -I${PLUGIN} -I${DRIVER} \
-I${LOCALBASE}/include/mysql \
-I${LOCALBASE}/include/postgresql/server \
- -I${LOCALBASE}/include -I${X11BASE}/include
+ -I${LOCALBASE}/include -I${X11BASE}/include \
+ ${PTHREAD_CFLAGS} -DQT_THREAD_SUPPORT
+.if ${DB}==mysql
+LDADD= -L${X11BASE}/lib -L${LOCALBASE}/lib/mysql ${PTHREAD_LIBS} -lqt-mt -lmysqlclient
+.else
+LDADD= -L${X11BASE}/lib -L${LOCALBASE}/lib ${PTHREAD_LIBS} -lqt-mt -lpq
+.endif
SRCS= qsql_${DB}.cpp main.cpp
LIBDIR= ${PREFIX}/lib/plugins/sqldrivers