freebsd-ports/databases/libzdb/Makefile

56 lines
1 KiB
Makefile
Raw Normal View History

# Created by: vanilla@
# $FreeBSD$
PORTNAME= libzdb
2013-07-19 22:57:59 +02:00
PORTVERSION= 2.11.3
CATEGORIES= databases
MASTER_SITES= http://www.tildeslash.com/libzdb/dist/ \
http://www.c-s.li/ports/
MAINTAINER= cs@FreeBSD.org
COMMENT= Thread-safe connection pool library
LICENSE= GPLv3
OPTIONS_DEFINE= MYSQL \
SQLITE \
PGSQL
OPTIONS_DEFAULT=MYSQL SQLITE PGSQL
NO_STAGE= yes
.include <bsd.port.options.mk>
USES= pathfix
USE_GMAKE= yes
2010-12-04 08:34:27 +01:00
USE_AUTOTOOLS= libtool
USE_LDCONFIG= yes
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
2007-02-26 07:35:24 +01:00
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL= yes
CONFIGURE_ARGS+= --with-mysql=${LOCALBASE}/bin/mysql_config
.else
CONFIGURE_ARGS+= --without-mysql
.endif
.if ${PORT_OPTIONS:MSQLITE}
USE_SQLITE= 3
CONFIGURE_ARGS+= --with-sqlite=${LOCALBASE}
.else
CONFIGURE_ARGS+= --without-sqlite
.endif
.if ${PORT_OPTIONS:MPGSQL}
2006-11-05 12:02:17 +01:00
USE_PGSQL= yes
CONFIGURE_ARGS+= --with-postgresql=${LOCALBASE}/bin/pg_config
2006-11-05 12:02:17 +01:00
.else
CONFIGURE_ARGS+= --without-postgresql
2006-11-05 12:02:17 +01:00
.endif
.include <bsd.port.post.mk>