aboutsummaryrefslogtreecommitdiff
path: root/databases/libzdb/Makefile
blob: 28e50d59d953196835eda3332941912544d3a67f (plain) (blame)
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
47
# Created by: vanilla@
# $FreeBSD$

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

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>