diff options
Diffstat (limited to 'databases/qt-pgsql-plugin')
-rw-r--r-- | databases/qt-pgsql-plugin/Makefile | 29 | ||||
-rw-r--r-- | databases/qt-pgsql-plugin/distinfo | 2 | ||||
-rw-r--r-- | databases/qt-pgsql-plugin/files/Makefile.bsd | 18 | ||||
-rw-r--r-- | databases/qt-pgsql-plugin/pkg-plist | 2 |
4 files changed, 46 insertions, 5 deletions
diff --git a/databases/qt-pgsql-plugin/Makefile b/databases/qt-pgsql-plugin/Makefile index a006bb410822..835ad9cf1aec 100644 --- a/databases/qt-pgsql-plugin/Makefile +++ b/databases/qt-pgsql-plugin/Makefile @@ -6,13 +6,34 @@ # $FreeBSD$ # +PORTNAME= qt-${DB}-plugin +PORTVERSION= 3.3.1 +CATEGORIES= databases +MASTER_SITES= ftp://ftp.trolltech.com/qt/source/ \ + ftp://ftp.silug.org/pub/qt/ \ + ftp://ftp.bero.org/pub/qt/ \ + ftp://ftp.planetmirror.com.au/pub/trolltech/qt/ +DISTNAME= qt-x11-free-${PORTVERSION} +DIST_SUBDIR= KDE + MAINTAINER= kde@freebsd.org COMMENT= A plugin for QT to connect to PostgreSQL-Databases -LIB_DEPENDS+= pq:${PORTSDIR}/databases/postgresql7 - DB= psql -DESCR= ${PORTSDIR}/databases/qt-pgsql-plugin/pkg-descr +LIB_DEPENDS+= pq:${PORTSDIR}/databases/postgresql7 \ + qt-mt:${PORTSDIR}/x11-toolkits/qt33 + +USE_BZIP2= yes +PLUGIN= plugins/src/sqldrivers/${DB} +DRIVER= src/sql/drivers/${DB} +EXTRACT_AFTER_ARGS?=| ${TAR} -xf - ${DISTNAME}/${PLUGIN} \ + ${DISTNAME}/${DRIVER} ${DISTNAME}/src/sql/drivers/cache +MAKEFILE= ${FILESDIR}/Makefile.bsd +MAKE_ENV+= DB="${DB}" DRIVER="${DRIVER}" PLUGIN="${PLUGIN}" \ + PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ + PTHREAD_LIBS="${PTHREAD_LIBS}" +USE_X_PREFIX= yes +PLIST_SUB= DB=${DB} -.include "../qt-mysql-plugin/Makefile.dbplugin" +.include <bsd.port.mk> diff --git a/databases/qt-pgsql-plugin/distinfo b/databases/qt-pgsql-plugin/distinfo new file mode 100644 index 000000000000..4de0a153a14c --- /dev/null +++ b/databases/qt-pgsql-plugin/distinfo @@ -0,0 +1,2 @@ +MD5 (KDE/qt-x11-free-3.3.1.tar.bz2) = 4e599bedfcb3fe389bc7ec921c476432 +SIZE (KDE/qt-x11-free-3.3.1.tar.bz2) = 14397600 diff --git a/databases/qt-pgsql-plugin/files/Makefile.bsd b/databases/qt-pgsql-plugin/files/Makefile.bsd new file mode 100644 index 000000000000..3f3242654fc5 --- /dev/null +++ b/databases/qt-pgsql-plugin/files/Makefile.bsd @@ -0,0 +1,18 @@ +SHLIB_NAME= libqsql${DB}.so + +VPATH= ${PLUGIN}:${DRIVER} +CXXFLAGS+= -I${PLUGIN} -I${DRIVER} \ + -I${LOCALBASE}/include/postgresql/server \ + -I${LOCALBASE}/include -I${X11BASE}/include \ + ${PTHREAD_CFLAGS} -DQT_THREAD_SUPPORT +LDADD= -L${X11BASE}/lib -L${LOCALBASE}/lib ${PTHREAD_LIBS} -lqt-mt -lpq +SRCS= qsql_${DB}.cpp main.cpp + +LIBDIR= ${PREFIX}/lib/plugins/sqldrivers + +${LIBDIR}: + mkdir -p ${LIBDIR} + +beforeinstall: ${LIBDIR} + +.include <bsd.lib.mk> diff --git a/databases/qt-pgsql-plugin/pkg-plist b/databases/qt-pgsql-plugin/pkg-plist index 7f2eaac3f6de..482facca168e 100644 --- a/databases/qt-pgsql-plugin/pkg-plist +++ b/databases/qt-pgsql-plugin/pkg-plist @@ -1,2 +1,2 @@ -lib/plugins/sqldrivers/libqsqlpsql.so +lib/plugins/sqldrivers/libqsql%%DB%%.so @dirrm lib/plugins/sqldrivers |