diff options
author | Michael Nottebrock <lofi@FreeBSD.org> | 2004-03-25 15:08:15 +0000 |
---|---|---|
committer | Michael Nottebrock <lofi@FreeBSD.org> | 2004-03-25 15:08:15 +0000 |
commit | bdb4cb8fae1a1c1d2d5300bdc72ae07cdec3dcb3 (patch) | |
tree | 0f84cfe1d91b786db06c3dd5f8cbcd911967e117 /databases/qt-sqlite-plugin | |
parent | Add a pkg-message to advertise the database plugin ports. (diff) |
Untangle the QT database plugin ports.
PR: ports/64393
Notes
Notes:
svn path=/head/; revision=105236
Diffstat (limited to 'databases/qt-sqlite-plugin')
-rw-r--r-- | databases/qt-sqlite-plugin/Makefile | 29 | ||||
-rw-r--r-- | databases/qt-sqlite-plugin/distinfo | 2 | ||||
-rw-r--r-- | databases/qt-sqlite-plugin/files/Makefile.bsd | 17 | ||||
-rw-r--r-- | databases/qt-sqlite-plugin/pkg-plist | 2 |
4 files changed, 45 insertions, 5 deletions
diff --git a/databases/qt-sqlite-plugin/Makefile b/databases/qt-sqlite-plugin/Makefile index e76ac8adffaf..0cef18b57d24 100644 --- a/databases/qt-sqlite-plugin/Makefile +++ b/databases/qt-sqlite-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 SQLite-Databases -LIB_DEPENDS+= sqlite:${PORTSDIR}/databases/sqlite - DB= sqlite -DESCR= ${PORTSDIR}/databases/qt-sqlite-plugin/pkg-descr +LIB_DEPENDS+= qt-mt:${PORTSDIR}/x11-toolkits/qt33 \ + sqlite:${PORTSDIR}/databases/sqlite + +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-sqlite-plugin/distinfo b/databases/qt-sqlite-plugin/distinfo new file mode 100644 index 000000000000..4de0a153a14c --- /dev/null +++ b/databases/qt-sqlite-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-sqlite-plugin/files/Makefile.bsd b/databases/qt-sqlite-plugin/files/Makefile.bsd new file mode 100644 index 000000000000..c1c9ad04a198 --- /dev/null +++ b/databases/qt-sqlite-plugin/files/Makefile.bsd @@ -0,0 +1,17 @@ +SHLIB_NAME= libqsql${DB}.so + +VPATH= ${PLUGIN}:${DRIVER} +CXXFLAGS+= -I${PLUGIN} -I${DRIVER} \ + -I${LOCALBASE}/include -I${X11BASE}/include \ + ${PTHREAD_CFLAGS} -DQT_THREAD_SUPPORT +LDADD= -L${X11BASE}/lib -L${LOCALBASE}/lib ${PTHREAD_LIBS} -lqt-mt -lsqlite +SRCS= qsql_${DB}.cpp smain.cpp + +LIBDIR= ${PREFIX}/lib/plugins/sqldrivers + +${LIBDIR}: + mkdir -p ${LIBDIR} + +beforeinstall: ${LIBDIR} + +.include <bsd.lib.mk> diff --git a/databases/qt-sqlite-plugin/pkg-plist b/databases/qt-sqlite-plugin/pkg-plist index 530079615e7a..482facca168e 100644 --- a/databases/qt-sqlite-plugin/pkg-plist +++ b/databases/qt-sqlite-plugin/pkg-plist @@ -1,2 +1,2 @@ -lib/plugins/sqldrivers/libqsqlsqlite.so +lib/plugins/sqldrivers/libqsql%%DB%%.so @dirrm lib/plugins/sqldrivers |