freebsd-ports/databases/libzdb/Makefile

53 lines
1.1 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: libzdb
# Date created: Nov 28 2005
# Whom: vanilla@
#
# $FreeBSD$
#
PORTNAME= libzdb
PORTVERSION= 2.6
CATEGORIES= databases
MASTER_SITES= http://www.tildeslash.com/libzdb/dist/
2007-02-11 03:09:40 +01:00
MAINTAINER= ports@FreeBSD.org
COMMENT= Thread-safe connection pool library
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:22
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
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 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
2006-11-05 12:02:17 +01:00
.if defined(WITH_PGSQL)
USE_PGSQL= yes
CONFIGURE_ARGS+= --with-pgsql=${LOCALBASE}/bin/pg_config
2006-11-05 12:02:17 +01:00
.else
CONFIGURE_ARGS+= --without-pgsql
.endif
.include <bsd.port.post.mk>