summaryrefslogtreecommitdiffstats
path: root/freebsd/dependencies/tqt3-odbc-plugin
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/dependencies/tqt3-odbc-plugin')
-rw-r--r--freebsd/dependencies/tqt3-odbc-plugin/Makefile47
-rw-r--r--freebsd/dependencies/tqt3-odbc-plugin/distinfo3
-rw-r--r--freebsd/dependencies/tqt3-odbc-plugin/files/Makefile.bsd19
-rw-r--r--freebsd/dependencies/tqt3-odbc-plugin/pkg-descr2
-rw-r--r--freebsd/dependencies/tqt3-odbc-plugin/pkg-plist2
5 files changed, 73 insertions, 0 deletions
diff --git a/freebsd/dependencies/tqt3-odbc-plugin/Makefile b/freebsd/dependencies/tqt3-odbc-plugin/Makefile
new file mode 100644
index 000000000..576121204
--- /dev/null
+++ b/freebsd/dependencies/tqt3-odbc-plugin/Makefile
@@ -0,0 +1,47 @@
+# -*-mode: makefile-*-
+# Created by: slavek.banko@axis.cz
+# $FreeBSD$
+#
+# TDE port map: dependencies/tqt3-odbc-plugin > databases/tqt3-odbc-plugin
+
+PORTSDIR?=/usr/ports
+.include <${PORTSDIR}/Mk/bsd.trinity.mk>
+
+PORTNAME= tqt3-${DB}-plugin
+COMMENT= TQt3 ODBC database plugin
+TDE_PREVERSION=
+MASTER_SITE_SUBDIR= t/tqt-x11-free
+DISTNAME= tqt-x11-free_${TDE_VERSION}${TDE_PREVERSION:C/(~(pre|r|s)[0-9]*).*/\1/1}
+DISTSRC= tqt3-trinity-${TDE_VERSION}${TDE_PREVERSION}
+PORTREVISION= 0
+CATEGORIES= databases
+DIST_SUBDIR= TDE/dependencies
+PREFIX= ${LOCALBASE}
+
+
+DB= odbc
+PLUGIN= plugins/src/sqldrivers/${DB}
+DRIVER= src/sql/drivers/${DB}
+
+# For TQt3 is used FreeBSD make
+# Remove gmake from USES
+USES=
+
+EXTRACT_AFTER_ARGS+= \
+ ${EXTRACT_BASE}${PLUGIN} \
+ ${EXTRACT_BASE}${DRIVER} \
+ ${EXTRACT_BASE}src/sql/drivers/cache
+
+BUILD_DEPENDS+= tqmake:${PORTSDIR}/devel/tqmake
+
+LIB_DEPENDS+= libtqt-mt.so:${PORTSDIR}/x11-toolkits/tqt3 \
+ libodbc.so:${PORTSDIR}/databases/unixODBC
+
+MAKEFILE= ${FILESDIR}/Makefile.bsd
+
+MAKE_ENV+= DB="${DB}" DRIVER="${DRIVER}" PLUGIN="${PLUGIN}" \
+ PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
+ PTHREAD_LIBS="${PTHREAD_LIBS}"
+PLIST_SUB= DB=${DB}
+
+.include <bsd.port.mk>
diff --git a/freebsd/dependencies/tqt3-odbc-plugin/distinfo b/freebsd/dependencies/tqt3-odbc-plugin/distinfo
new file mode 100644
index 000000000..f3f0a23ad
--- /dev/null
+++ b/freebsd/dependencies/tqt3-odbc-plugin/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1713410018
+SHA256 (TDE/dependencies/tqt-x11-free_14.1.2.orig.tar.xz) = 5285b974fc9f71322f86153c3b5c52b656be2f08d8f0972649d29738f5a9b8df
+SIZE (TDE/dependencies/tqt-x11-free_14.1.2.orig.tar.xz) = 10911316
diff --git a/freebsd/dependencies/tqt3-odbc-plugin/files/Makefile.bsd b/freebsd/dependencies/tqt3-odbc-plugin/files/Makefile.bsd
new file mode 100644
index 000000000..c57698ba6
--- /dev/null
+++ b/freebsd/dependencies/tqt3-odbc-plugin/files/Makefile.bsd
@@ -0,0 +1,19 @@
+SHLIB_NAME= libqsql${DB}.so
+
+VPATH= ${PLUGIN}:${DRIVER}
+CXXFLAGS+= -I${PLUGIN} -I${DRIVER} \
+ -I${LOCALBASE}/include \
+ -I${LOCALBASE}/include/tqt3 \
+ ${PTHREAD_CFLAGS} -DTQT_THREAD_SUPPORT
+LDADD= -L${LOCALBASE}/lib \
+ ${PTHREAD_LIBS} -ltqt-mt -lodbc
+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>
diff --git a/freebsd/dependencies/tqt3-odbc-plugin/pkg-descr b/freebsd/dependencies/tqt3-odbc-plugin/pkg-descr
new file mode 100644
index 000000000..fd79cd96a
--- /dev/null
+++ b/freebsd/dependencies/tqt3-odbc-plugin/pkg-descr
@@ -0,0 +1,2 @@
+The ODBC Plugin from TQt3, which provides an easy access method from
+within TQt applications.
diff --git a/freebsd/dependencies/tqt3-odbc-plugin/pkg-plist b/freebsd/dependencies/tqt3-odbc-plugin/pkg-plist
new file mode 100644
index 000000000..7c9f467ce
--- /dev/null
+++ b/freebsd/dependencies/tqt3-odbc-plugin/pkg-plist
@@ -0,0 +1,2 @@
+lib/tqt3/plugins/sqldrivers/libqsql%%DB%%.so
+@dir lib/tqt3/plugins/sqldrivers