summaryrefslogtreecommitdiffstats
path: root/freebsd/dependencies/tqt3-pgsql-plugin/Makefile
blob: a6ca84802d72a8a65a3e536ec6725093f015efe4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# -*-mode: makefile-*-
# Created by: slavek.banko@axis.cz
# $FreeBSD$
#

.include <../../trinity.port.mk>

PORTNAME=		tqt3-${DB}-plugin
COMMENT=		TQt3 PostgreSQL database plugin
TDE_PREVERSION=		~pre1+35fd7261
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/gmake//}
USE_PGSQL=		yes
WANT_PGSQL=		server

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

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>