aboutsummaryrefslogtreecommitdiffstats
path: root/databases/libzdb/Makefile
blob: b3a4b37a6b8657f02deaea0c42d6e70c16026b4f (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
48
49
50
51
52
53
54
55
56
# New ports collection makefile for:    libzdb
# Date created:             Nov 28 2005
# Whom:                 vanilla@
#
# $FreeBSD$
#

PORTNAME=   libzdb
PORTVERSION=    2.8.1
CATEGORIES= databases
MASTER_SITES=   http://www.tildeslash.com/libzdb/dist/ \
        http://www.c-s.li/ports/

MAINTAINER= c-s@c-s.li
COMMENT=    Thread-safe connection pool library

LICENSE=    GPLv3

OPTIONS=    MYSQL "Add MySQL support" on \
        SQLITE "Add Sqlite support" on \
        PGSQL "Add PgSQL support" on

USE_GNOME=  gnomehack
USE_GMAKE=  yes
USE_AUTOTOOLS=  libtool
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
USE_LDCONFIG=   yes
MAKE_JOBS_SAFE= yes

CPPFLAGS=   -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS=    -L${LOCALBASE}/lib ${PTHREAD_LIBS}

.include <bsd.port.pre.mk>

.if defined(WITH_MYSQL)
USE_MYSQL=  yes
CONFIGURE_ARGS+=    --with-mysql=${LOCALBASE}/bin/mysql_config
.else
CONFIGURE_ARGS+=    --without-mysql
.endif

.if defined(WITH_SQLITE)
USE_SQLITE= 3
CONFIGURE_ARGS+=    --with-sqlite=${LOCALBASE}
.else
CONFIGURE_ARGS+=    --without-sqlite
.endif

.if defined(WITH_PGSQL)
USE_PGSQL=  yes
CONFIGURE_ARGS+=    --with-postgresql=${LOCALBASE}/bin/pg_config
.else
CONFIGURE_ARGS+=    --without-postgresql
.endif

.include <bsd.port.post.mk>