2013-03-26 22:22:45 +01:00
|
|
|
# Created by: vanilla@
|
2006-06-03 05:02:17 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= libzdb
|
2013-07-19 22:57:59 +02:00
|
|
|
PORTVERSION= 2.11.3
|
2006-06-03 05:02:17 +02:00
|
|
|
CATEGORIES= databases
|
2010-11-03 08:24:26 +01:00
|
|
|
MASTER_SITES= http://www.tildeslash.com/libzdb/dist/ \
|
|
|
|
http://www.c-s.li/ports/
|
2006-06-03 05:02:17 +02:00
|
|
|
|
2011-09-15 14:33:27 +02:00
|
|
|
MAINTAINER= cs@FreeBSD.org
|
2006-06-03 05:02:17 +02:00
|
|
|
COMMENT= Thread-safe connection pool library
|
|
|
|
|
2010-11-03 08:24:26 +01:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2012-06-05 23:32:53 +02:00
|
|
|
OPTIONS_DEFINE= MYSQL \
|
|
|
|
SQLITE \
|
|
|
|
PGSQL
|
|
|
|
|
|
|
|
OPTIONS_DEFAULT=MYSQL SQLITE PGSQL
|
|
|
|
|
2013-09-20 18:13:47 +02:00
|
|
|
NO_STAGE= yes
|
2012-06-05 23:32:53 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2008-04-27 18:30:18 +02:00
|
|
|
|
2013-03-19 14:04:30 +01:00
|
|
|
USES= pathfix
|
2006-06-03 05:02:17 +02:00
|
|
|
USE_GMAKE= yes
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
2008-04-27 18:30:18 +02:00
|
|
|
USE_LDCONFIG= yes
|
2006-06-03 05:02:17 +02:00
|
|
|
|
2011-09-24 00:26:39 +02: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>
|
|
|
|
|
2012-06-05 23:32:53 +02:00
|
|
|
.if ${PORT_OPTIONS:MMYSQL}
|
2006-06-03 05:02:17 +02:00
|
|
|
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
|
|
|
|
|
2012-06-05 23:32:53 +02:00
|
|
|
.if ${PORT_OPTIONS:MSQLITE}
|
2006-06-03 05:02:17 +02:00
|
|
|
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
|
|
|
|
|
2012-06-05 23:32:53 +02:00
|
|
|
.if ${PORT_OPTIONS:MPGSQL}
|
2006-11-05 12:02:17 +01:00
|
|
|
USE_PGSQL= yes
|
2011-03-21 21:42:44 +01:00
|
|
|
CONFIGURE_ARGS+= --with-postgresql=${LOCALBASE}/bin/pg_config
|
2006-11-05 12:02:17 +01:00
|
|
|
.else
|
2011-03-21 21:42:44 +01:00
|
|
|
CONFIGURE_ARGS+= --without-postgresql
|
2006-11-05 12:02:17 +01:00
|
|
|
.endif
|
|
|
|
|
2006-06-03 05:02:17 +02:00
|
|
|
.include <bsd.port.post.mk>
|