summaryrefslogtreecommitdiffstats
path: root/freebsd/dependencies/tqt3-sqlite3-plugin
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-sqlite3-plugin
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-sqlite3-plugin')
-rw-r--r--freebsd/dependencies/tqt3-sqlite3-plugin/Makefile44
-rw-r--r--freebsd/dependencies/tqt3-sqlite3-plugin/distinfo2
-rw-r--r--freebsd/dependencies/tqt3-sqlite3-plugin/files/Makefile.bsd20
-rw-r--r--freebsd/dependencies/tqt3-sqlite3-plugin/pkg-descr2
-rw-r--r--freebsd/dependencies/tqt3-sqlite3-plugin/pkg-plist2
5 files changed, 70 insertions, 0 deletions
diff --git a/freebsd/dependencies/tqt3-sqlite3-plugin/Makefile b/freebsd/dependencies/tqt3-sqlite3-plugin/Makefile
new file mode 100644
index 000000000..60618b7dd
--- /dev/null
+++ b/freebsd/dependencies/tqt3-sqlite3-plugin/Makefile
@@ -0,0 +1,44 @@
+# -*-mode: makefile-*-
+# Created by: [email protected]
+# $FreeBSD$
+#
+
+.include <../../trinity.port.mk>
+
+PORTNAME= tqt3-${DB}-plugin
+COMMENT= TQt3 SQLite 3.x 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= sqlite3
+PLUGIN= plugins/src/sqldrivers/${DB}
+DRIVER= src/sql/drivers/${DB}
+
+USES+= fmake
+USE_SQLITE= yes
+
+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 \
+ libsqlite3.so:${PORTSDIR}/databases/sqlite3
+
+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-sqlite3-plugin/distinfo b/freebsd/dependencies/tqt3-sqlite3-plugin/distinfo
new file mode 100644
index 000000000..7e6dd6e0a
--- /dev/null
+++ b/freebsd/dependencies/tqt3-sqlite3-plugin/distinfo
@@ -0,0 +1,2 @@
+SHA256 (TDE/dependencies/tqt-x11-free_14.0.1~pre7.orig.tar.xz) = a0d8738ef9389c91bff65fd2ff8e42787076fdd76f3843f683c088cd9240e05e
+SIZE (TDE/dependencies/tqt-x11-free_14.0.1~pre7.orig.tar.xz) = 10889040
diff --git a/freebsd/dependencies/tqt3-sqlite3-plugin/files/Makefile.bsd b/freebsd/dependencies/tqt3-sqlite3-plugin/files/Makefile.bsd
new file mode 100644
index 000000000..0382a2b7d
--- /dev/null
+++ b/freebsd/dependencies/tqt3-sqlite3-plugin/files/Makefile.bsd
@@ -0,0 +1,20 @@
+SHLIB_NAME= libqsql${DB}.so
+
+VPATH= ${PLUGIN}:${DRIVER}
+CXXFLAGS+= -I${PLUGIN} -I${DRIVER} \
+ -I${DRIVER}/../cache \
+ -I${LOCALBASE}/include \
+ -I${LOCALBASE}/include/tqt3 \
+ ${PTHREAD_CFLAGS} -DQT_THREAD_SUPPORT
+LDADD= -L${LOCALBASE}/lib \
+ ${PTHREAD_LIBS} -ltqt-mt -lsqlite3
+SRCS= smain.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-sqlite3-plugin/pkg-descr b/freebsd/dependencies/tqt3-sqlite3-plugin/pkg-descr
new file mode 100644
index 000000000..2f8e3a92d
--- /dev/null
+++ b/freebsd/dependencies/tqt3-sqlite3-plugin/pkg-descr
@@ -0,0 +1,2 @@
+The SQLite 3.x Plugin from TQt3, which provides an easy access
+method from within TQt applications.
diff --git a/freebsd/dependencies/tqt3-sqlite3-plugin/pkg-plist b/freebsd/dependencies/tqt3-sqlite3-plugin/pkg-plist
new file mode 100644
index 000000000..b2d2d1d0b
--- /dev/null
+++ b/freebsd/dependencies/tqt3-sqlite3-plugin/pkg-plist
@@ -0,0 +1,2 @@
+lib/tqt3/plugins/sqldrivers/libqsql%%DB%%.so
+@dirrm lib/tqt3/plugins/sqldrivers