aboutsummaryrefslogtreecommitdiff
path: root/databases/qt4-mysql-plugin
diff options
context:
space:
mode:
authorMichael Nottebrock <lofi@FreeBSD.org>2007-02-05 20:56:24 +0000
committerMichael Nottebrock <lofi@FreeBSD.org>2007-02-05 20:56:24 +0000
commit74cb0fb1e88e05ac2dc49f1aa7274c98a470a7c8 (patch)
tree5a2cd52714027788ca840d18e6087ab373c335b4 /databases/qt4-mysql-plugin
parent9650cc958392c895ef613d1abea30ed3510adffd (diff)
downloadports-74cb0fb1e88e05ac2dc49f1aa7274c98a470a7c8.tar.gz
ports-74cb0fb1e88e05ac2dc49f1aa7274c98a470a7c8.zip
Notes
Diffstat (limited to 'databases/qt4-mysql-plugin')
-rw-r--r--databases/qt4-mysql-plugin/Makefile34
-rw-r--r--databases/qt4-mysql-plugin/distinfo3
-rw-r--r--databases/qt4-mysql-plugin/files/Makefile.bsd19
-rw-r--r--databases/qt4-mysql-plugin/pkg-descr4
-rw-r--r--databases/qt4-mysql-plugin/pkg-plist2
5 files changed, 62 insertions, 0 deletions
diff --git a/databases/qt4-mysql-plugin/Makefile b/databases/qt4-mysql-plugin/Makefile
new file mode 100644
index 000000000000..94849b59b5fa
--- /dev/null
+++ b/databases/qt4-mysql-plugin/Makefile
@@ -0,0 +1,34 @@
+# -*-mode: makefile-*-
+# New ports collection makefile for: qt-mysql-plugin
+# Date created: 20 April 2003
+# Whom: Kay Lehmann <kay_lehmann@web.de>
+#
+# $FreeBSD$
+#
+
+PORTNAME= qt4-${DB}-plugin
+PORTVERSION= 4.2.2
+CATEGORIES= databases
+MASTER_SITES= ${MASTER_SITE_QT}
+DISTNAME= qt-x11-opensource-src-${PORTVERSION}
+DIST_SUBDIR= KDE
+
+MAINTAINER= kde@freebsd.org
+COMMENT= Qt MySQL database plugin
+
+DB= mysql
+
+LIB_DEPENDS+= QtSql:${PORTSDIR}/databases/qt4-sql
+
+USE_MYSQL= yes
+#USE_BZIP2= yes
+DRIVER= src/sql/drivers/${DB}
+EXTRACT_AFTER_ARGS?=| ${TAR} -xf - \
+ ${DISTNAME}/${DRIVER}
+MAKEFILE= ${FILESDIR}/Makefile.bsd
+MAKE_ENV+= DB="${DB}" DRIVER="${DRIVER}" \
+ PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
+ PTHREAD_LIBS="${PTHREAD_LIBS}"
+PLIST_SUB= DB=${DB}
+
+.include <bsd.port.mk>
diff --git a/databases/qt4-mysql-plugin/distinfo b/databases/qt4-mysql-plugin/distinfo
new file mode 100644
index 000000000000..5f51cf7b1256
--- /dev/null
+++ b/databases/qt4-mysql-plugin/distinfo
@@ -0,0 +1,3 @@
+MD5 (KDE/qt-x11-opensource-src-4.2.2.tar.gz) = 19f6374fe7924e33775cb87ee02669cb
+SHA256 (KDE/qt-x11-opensource-src-4.2.2.tar.gz) = e790d227fa7958f2b0c0b0facd8ca880190121ed2b9c99ca70643baf7a0cd24c
+SIZE (KDE/qt-x11-opensource-src-4.2.2.tar.gz) = 37636491
diff --git a/databases/qt4-mysql-plugin/files/Makefile.bsd b/databases/qt4-mysql-plugin/files/Makefile.bsd
new file mode 100644
index 000000000000..f86a2a561b76
--- /dev/null
+++ b/databases/qt4-mysql-plugin/files/Makefile.bsd
@@ -0,0 +1,19 @@
+SHLIB_NAME= libqsql${DB}.so
+
+VPATH= ${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
+
+LIBDIR= ${PREFIX}/lib/plugins/sqldrivers
+
+${LIBDIR}:
+ mkdir -p ${LIBDIR}
+
+beforeinstall: ${LIBDIR}
+
+.include <bsd.lib.mk>
diff --git a/databases/qt4-mysql-plugin/pkg-descr b/databases/qt4-mysql-plugin/pkg-descr
new file mode 100644
index 000000000000..befb9bc61963
--- /dev/null
+++ b/databases/qt4-mysql-plugin/pkg-descr
@@ -0,0 +1,4 @@
+The MySQL-Plugin from Qt 4, which provides an easy access
+method from within Qt applications.
+
+WWW: http://doc.trolltech.com/4.0/sql.html
diff --git a/databases/qt4-mysql-plugin/pkg-plist b/databases/qt4-mysql-plugin/pkg-plist
new file mode 100644
index 000000000000..482facca168e
--- /dev/null
+++ b/databases/qt4-mysql-plugin/pkg-plist
@@ -0,0 +1,2 @@
+lib/plugins/sqldrivers/libqsql%%DB%%.so
+@dirrm lib/plugins/sqldrivers