diff options
author | lofi <lofi@FreeBSD.org> | 2003-12-30 18:09:57 +0800 |
---|---|---|
committer | lofi <lofi@FreeBSD.org> | 2003-12-30 18:09:57 +0800 |
commit | 1510ef54c862f229e380f5245a4380172403e16a (patch) | |
tree | f0f8f56a28dda77c7332fe3a390f9f208d657d35 /databases | |
parent | 55b291d592bf890c3b203cff129ed0c16ca3803c (diff) | |
download | freebsd-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')
-rw-r--r-- | databases/qt-mysql-plugin/Makefile.dbplugin | 6 | ||||
-rw-r--r-- | databases/qt-mysql-plugin/files/Makefile.bsd | 8 |
2 files changed, 12 insertions, 2 deletions
diff --git a/databases/qt-mysql-plugin/Makefile.dbplugin b/databases/qt-mysql-plugin/Makefile.dbplugin index 914cd40e3e29..f22055a93d1b 100644 --- a/databases/qt-mysql-plugin/Makefile.dbplugin +++ b/databases/qt-mysql-plugin/Makefile.dbplugin @@ -1,5 +1,6 @@ PORTNAME= qt-${DB}-plugin PORTVERSION= 3.2.3 +PORTREVISION= 1 CATEGORIES= databases DISTNAME= qt-x11-free-${PORTVERSION} MASTER_SITES= ftp://ftp.trolltech.com/qt/source/ \ @@ -16,9 +17,12 @@ DRIVER= src/sql/drivers/${DB} EXTRACT_AFTER_ARGS?=| ${TAR} -xf - ${DISTNAME}/${PLUGIN} \ ${DISTNAME}/${DRIVER} MAKEFILE= ${FILESDIR}/Makefile.bsd -MAKE_ENV+= DRIVER="${DRIVER}" PLUGIN="${PLUGIN}" +MAKE_ENV+= DRIVER="${DRIVER}" PLUGIN="${PLUGIN}" \ + PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ + PTHREAD_LIBS="${PTHREAD_LIBS}" MASTERDIR= ${PORTSDIR}/databases/qt-mysql-plugin +USE_X_PREFIX= yes INSTALLS_SHLIB= yes LDCONFIG_DIRS= %%PREFIX%%/lib/plugins/sqldrivers PLIST_SUB= DB=${DB} 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 |