summaryrefslogtreecommitdiffstats
path: root/freebsd/dependencies/tqt3-mysql-plugin/files/Makefile.bsd
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2015-07-02 17:25:15 +0200
committerSlávek Banko <slavek.banko@axis.cz>2015-07-02 17:25:15 +0200
commit595d2593963dfc33e52fb3bf82fc2595dc2c0e37 (patch)
treea284a943099fabc9782c2959c6da43e2b09078ae /freebsd/dependencies/tqt3-mysql-plugin/files/Makefile.bsd
parentbb6e8f18c1d80974cd4f7a810267bd9753121f45 (diff)
downloadtde-packaging-595d2593963dfc33e52fb3bf82fc2595dc2c0e37.tar.gz
tde-packaging-595d2593963dfc33e52fb3bf82fc2595dc2c0e37.zip
FreeBSD: Initial import
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'freebsd/dependencies/tqt3-mysql-plugin/files/Makefile.bsd')
-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>