2006-06-03 05:02:17 +02:00
|
|
|
# New ports collection makefile for: libzdb
|
|
|
|
# Date created: Nov 28 2005
|
|
|
|
# Whom: vanilla@
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= libzdb
|
2009-07-09 11:05:47 +02:00
|
|
|
PORTVERSION= 2.6
|
2006-06-03 05:02:17 +02:00
|
|
|
CATEGORIES= databases
|
|
|
|
MASTER_SITES= http://www.tildeslash.com/libzdb/dist/
|
|
|
|
|
2007-02-11 03:09:40 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-06-03 05:02:17 +02:00
|
|
|
COMMENT= Thread-safe connection pool library
|
|
|
|
|
2008-04-27 18:30:18 +02:00
|
|
|
OPTIONS= MYSQL "Add MySQL support" on \
|
2009-03-14 15:10:20 +01:00
|
|
|
SQLITE "Add Sqlite support" on \
|
2008-04-27 18:30:18 +02:00
|
|
|
PGSQL "Add PgSQL support" on
|
|
|
|
|
2009-03-14 15:10:20 +01:00
|
|
|
USE_GNOME= gnomehack
|
2006-06-03 05:02:17 +02:00
|
|
|
USE_GMAKE= yes
|
2009-08-02 21:36:34 +02:00
|
|
|
USE_AUTOTOOLS= libtool:22
|
2009-03-14 15:10:20 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
2008-04-27 18:30:18 +02:00
|
|
|
USE_LDCONFIG= yes
|
2006-06-03 05:02:17 +02:00
|
|
|
|
2009-03-14 15:10:20 +01:00
|
|
|
CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
2007-02-26 07:35:24 +01:00
|
|
|
|
2006-06-03 05:02:17 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_MYSQL)
|
|
|
|
USE_MYSQL= yes
|
2009-03-14 15:10:20 +01:00
|
|
|
CONFIGURE_ARGS+= --with-mysql=${LOCALBASE}/bin/mysql_config
|
2006-06-03 05:02:17 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-mysql
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_SQLITE)
|
|
|
|
USE_SQLITE= 3
|
2009-03-14 15:10:20 +01:00
|
|
|
CONFIGURE_ARGS+= --with-sqlite=${LOCALBASE}
|
2006-06-03 05:02:17 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-sqlite
|
|
|
|
.endif
|
|
|
|
|
2006-11-05 12:02:17 +01:00
|
|
|
.if defined(WITH_PGSQL)
|
|
|
|
USE_PGSQL= yes
|
2009-03-14 15:10:20 +01:00
|
|
|
CONFIGURE_ARGS+= --with-pgsql=${LOCALBASE}/bin/pg_config
|
2006-11-05 12:02:17 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-pgsql
|
|
|
|
.endif
|
|
|
|
|
2006-06-03 05:02:17 +02:00
|
|
|
.include <bsd.port.post.mk>
|