summaryrefslogtreecommitdiffstats
path: root/freebsd/dependencies/tqt3-odbc-plugin/Makefile
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2015-07-02 17:25:15 +0200
committerSlávek Banko <[email protected]>2015-07-02 17:25:15 +0200
commit595d2593963dfc33e52fb3bf82fc2595dc2c0e37 (patch)
treea284a943099fabc9782c2959c6da43e2b09078ae /freebsd/dependencies/tqt3-odbc-plugin/Makefile
parentbb6e8f18c1d80974cd4f7a810267bd9753121f45 (diff)
downloadtde-packaging-595d2593963dfc33e52fb3bf82fc2595dc2c0e37.tar.gz
tde-packaging-595d2593963dfc33e52fb3bf82fc2595dc2c0e37.zip
FreeBSD: Initial import
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'freebsd/dependencies/tqt3-odbc-plugin/Makefile')
-rw-r--r--freebsd/dependencies/tqt3-odbc-plugin/Makefile43
1 files changed, 43 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..2fea357b5
--- /dev/null
+++ b/freebsd/dependencies/tqt3-odbc-plugin/Makefile
@@ -0,0 +1,43 @@
+# -*-mode: makefile-*-
+# Created by: [email protected]
+# $FreeBSD$
+#
+
+.include <../../trinity.port.mk>
+
+PORTNAME= tqt3-${DB}-plugin
+COMMENT= TQt3 ODBC database plugin
+TDE_PREVERSION= ~pre7+6ff4ab89
+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}
+
+USES+= fmake
+
+EXTRACT_AFTER_ARGS+= \
+ ${EXTRACT_BASE}${PLUGIN} \
+ ${EXTRACT_BASE}${DRIVER} \
+ ${EXTRACT_BASE}src/sql/drivers/cache
+
+BUILD_DEPENDS+= tqmake:${PORTSDIR}/x11/trinity/dependencies/tqmake
+
+LIB_DEPENDS+= libtqt-mt.so:${PORTSDIR}/x11/trinity/dependencies/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>