From 4975402d7f239a520dfcbd48e03dbab43e491d68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 22 Apr 2023 00:00:02 +0200 Subject: FreeBSD: Add ports updated for final release R14.1.0. Add a script to synchronize ports to the FreeBSD ports structure. Add meta-port 'tde-meta' to install all TDE ports. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- freebsd/dependencies/tqt3-pgsql-plugin/Makefile | 48 ++++++++++++++++++++++ freebsd/dependencies/tqt3-pgsql-plugin/distinfo | 3 ++ .../tqt3-pgsql-plugin/files/Makefile.bsd | 20 +++++++++ freebsd/dependencies/tqt3-pgsql-plugin/pkg-descr | 2 + freebsd/dependencies/tqt3-pgsql-plugin/pkg-plist | 2 + 5 files changed, 75 insertions(+) create mode 100644 freebsd/dependencies/tqt3-pgsql-plugin/Makefile create mode 100644 freebsd/dependencies/tqt3-pgsql-plugin/distinfo create mode 100644 freebsd/dependencies/tqt3-pgsql-plugin/files/Makefile.bsd create mode 100644 freebsd/dependencies/tqt3-pgsql-plugin/pkg-descr create mode 100644 freebsd/dependencies/tqt3-pgsql-plugin/pkg-plist (limited to 'freebsd/dependencies/tqt3-pgsql-plugin') diff --git a/freebsd/dependencies/tqt3-pgsql-plugin/Makefile b/freebsd/dependencies/tqt3-pgsql-plugin/Makefile new file mode 100644 index 000000000..0328ea4df --- /dev/null +++ b/freebsd/dependencies/tqt3-pgsql-plugin/Makefile @@ -0,0 +1,48 @@ +# -*-mode: makefile-*- +# Created by: slavek.banko@axis.cz +# $FreeBSD$ +# +# TDE port map: dependencies/tqt3-pgsql-plugin > databases/tqt3-psql-plugin + +PORTSDIR?=/usr/ports +.include <${PORTSDIR}/Mk/bsd.trinity.mk> + +PORTNAME= tqt3-${DB}-plugin +COMMENT= TQt3 PostgreSQL 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= psql +PLUGIN= plugins/src/sqldrivers/${DB} +DRIVER= src/sql/drivers/${DB} + +# For TQt3 is used FreeBSD make +# Remove gmake from USES +USES= +USES+= pgsql +WANT_PGSQL= lib + +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 + +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 diff --git a/freebsd/dependencies/tqt3-pgsql-plugin/distinfo b/freebsd/dependencies/tqt3-pgsql-plugin/distinfo new file mode 100644 index 000000000..f798aae42 --- /dev/null +++ b/freebsd/dependencies/tqt3-pgsql-plugin/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1681662221 +SHA256 (TDE/dependencies/tqt-x11-free_14.1.0.orig.tar.xz) = 8d40f59fb4acff7480a4497a514f372cb065a7b706860ee106bf6620d069a4d9 +SIZE (TDE/dependencies/tqt-x11-free_14.1.0.orig.tar.xz) = 10937096 diff --git a/freebsd/dependencies/tqt3-pgsql-plugin/files/Makefile.bsd b/freebsd/dependencies/tqt3-pgsql-plugin/files/Makefile.bsd new file mode 100644 index 000000000..ef2d45760 --- /dev/null +++ b/freebsd/dependencies/tqt3-pgsql-plugin/files/Makefile.bsd @@ -0,0 +1,20 @@ +SHLIB_NAME= libqsql${DB}.so + +VPATH= ${PLUGIN}:${DRIVER} +CXXFLAGS+= -I${PLUGIN} -I${DRIVER} \ + -I${LOCALBASE}/include \ + -I${LOCALBASE}/include/tqt3 \ + -I${LOCALBASE}/include/postgresql/server \ + ${PTHREAD_CFLAGS} -DTQT_THREAD_SUPPORT +LDADD= -L${LOCALBASE}/lib \ + ${PTHREAD_LIBS} -ltqt-mt -lpq +SRCS= main.cpp qsql_${DB}.cpp + +LIBDIR= ${PREFIX}/lib/tqt3/plugins/sqldrivers + +${DESTDIR}${LIBDIR}: + mkdir -p ${DESTDIR}${LIBDIR} + +beforeinstall: ${DESTDIR}${LIBDIR} + +.include diff --git a/freebsd/dependencies/tqt3-pgsql-plugin/pkg-descr b/freebsd/dependencies/tqt3-pgsql-plugin/pkg-descr new file mode 100644 index 000000000..266081f0f --- /dev/null +++ b/freebsd/dependencies/tqt3-pgsql-plugin/pkg-descr @@ -0,0 +1,2 @@ +The PostgreSQL Plugin from TQt3, which provides an easy access +method from within TQt applications. diff --git a/freebsd/dependencies/tqt3-pgsql-plugin/pkg-plist b/freebsd/dependencies/tqt3-pgsql-plugin/pkg-plist new file mode 100644 index 000000000..7c9f467ce --- /dev/null +++ b/freebsd/dependencies/tqt3-pgsql-plugin/pkg-plist @@ -0,0 +1,2 @@ +lib/tqt3/plugins/sqldrivers/libqsql%%DB%%.so +@dir lib/tqt3/plugins/sqldrivers -- cgit v1.2.1