summaryrefslogtreecommitdiffstats
path: root/freebsd/dependencies/tqt3-mysql-plugin/files
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/dependencies/tqt3-mysql-plugin/files')
-rw-r--r--freebsd/dependencies/tqt3-mysql-plugin/files/Makefile.bsd21
1 files changed, 21 insertions, 0 deletions
diff --git a/freebsd/dependencies/tqt3-mysql-plugin/files/Makefile.bsd b/freebsd/dependencies/tqt3-mysql-plugin/files/Makefile.bsd
new file mode 100644
index 000000000..6648767d0
--- /dev/null
+++ b/freebsd/dependencies/tqt3-mysql-plugin/files/Makefile.bsd
@@ -0,0 +1,21 @@
+SHLIB_NAME= libqsql${DB}.so
+
+VPATH= ${PLUGIN}:${DRIVER}
+CXXFLAGS+= -I${PLUGIN} -I${DRIVER} \
+ -I${LOCALBASE}/include \
+ -I${LOCALBASE}/include/tqt3 \
+ -I${LOCALBASE}/include/mysql \
+ ${PTHREAD_CFLAGS} -DQT_THREAD_SUPPORT
+LDADD= -L${LOCALBASE}/lib \
+ -L${LOCALBASE}/lib/mysql \
+ ${PTHREAD_LIBS} -ltqt-mt -lmysqlclient
+SRCS= main.cpp qsql_${DB}.cpp
+
+LIBDIR= ${PREFIX}/lib/tqt3/plugins/sqldrivers
+
+${DESTDIR}${LIBDIR}:
+ mkdir -p ${DESTDIR}${LIBDIR}
+
+beforeinstall: ${DESTDIR}${LIBDIR}
+
+.include <bsd.lib.mk>