aboutsummaryrefslogtreecommitdiffstats
path: root/databases/qt4-mysql-plugin/files
diff options
context:
space:
mode:
Diffstat (limited to 'databases/qt4-mysql-plugin/files')
-rw-r--r--databases/qt4-mysql-plugin/files/Makefile.bsd19
1 files changed, 19 insertions, 0 deletions
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>