summaryrefslogtreecommitdiff
path: root/databases/libzdb/Makefile
blob: 2d7764cbb39704bf97f46cb86e1bf75d98a0a3e2 (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
PORTNAME=	libzdb
PORTVERSION=	3.2.2
CATEGORIES=	databases
MASTER_SITES=	https://www.tildeslash.com/libzdb/dist/

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Thread-safe connection pool library

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

BROKEN_i386=	fails to build
BROKEN_powerpc=	fails to build

USES=		compiler:c11 gmake libtool localbase pathfix

GNU_CONFIGURE=	yes
INSTALL_TARGET=	install-strip
USE_LDCONFIG=	yes

OPTIONS_DEFINE=		SSL
OPTIONS_MULTI=		DB
OPTIONS_MULTI_DB=	MYSQL PGSQL SQLITE
OPTIONS_DEFAULT=	MYSQL PGSQL SQLITE SSL

MYSQL_CONFIGURE_WITH=	mysql=${LOCALBASE}/bin/mysql_config
MYSQL_USES=		mysql
PGSQL_CONFIGURE_WITH=	postgresql=${LOCALBASE}/bin/pg_config
PGSQL_USES=		pgsql
SQLITE_CONFIGURE_WITH=	sqlite=${LOCALBASE}
SQLITE_USES=		sqlite
SSL_USES=		ssl

.include <bsd.port.options.mk>

# See PR/237200 for details
.if ${PORT_OPTIONS:MSSL}
.if ${SSL_DEFAULT} == base
CONFIGURE_ARGS+=        --enable-openssl
.else
CONFIGURE_ARGS+=        --enable-openssl=${OPENSSLBASE}
.endif
.endif

.include <bsd.port.mk>