2001-07-06 12:24:50 +02:00
|
|
|
# New ports collection makefile for: SQL Relay
|
|
|
|
# Date created: 2 July 2001
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ${SQLRELAY_PORTNAME}
|
|
|
|
PORTVERSION= ${SQLRELAY_PORTVERSION}
|
2004-12-23 09:25:47 +01:00
|
|
|
PORTREVISION= 1
|
2001-07-06 12:24:50 +02:00
|
|
|
CATEGORIES= databases
|
2002-12-20 18:24:56 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= sqlrelay
|
2001-07-06 12:24:50 +02:00
|
|
|
|
2004-10-16 20:59:31 +02:00
|
|
|
MAINTAINER= demon@FreeBSD.org
|
2003-02-18 06:52:56 +01:00
|
|
|
COMMENT= A persistent DB connection pooling/proxying/load balancing system
|
2001-07-06 12:24:50 +02:00
|
|
|
|
2004-06-20 18:40:26 +02:00
|
|
|
LIB_DEPENDS= rudiments.0:${PORTSDIR}/devel/rudiments
|
2001-07-06 12:24:50 +02:00
|
|
|
|
2004-10-16 20:59:31 +02:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_AUTOCONF_VER= 259
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV= ${SQLRELAY_CONFIGURE_ENV} \
|
|
|
|
CPPFLAGS="-I${LOCALBASE}/include"
|
|
|
|
CONFIGURE_ARGS= ${SQLRELAY_CONFIGURE_ARGS} \
|
|
|
|
--disable-tcl \
|
|
|
|
--disable-java \
|
|
|
|
--disable-perl \
|
|
|
|
--disable-php \
|
|
|
|
--disable-python \
|
|
|
|
--disable-ruby \
|
|
|
|
--disable-zope
|
2005-04-11 10:04:41 +02:00
|
|
|
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
|
2001-07-06 12:24:50 +02:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
|
|
|
.include "${.CURDIR}/Makefile.common"
|
|
|
|
|
2004-06-20 18:40:26 +02:00
|
|
|
OPTIONS= MSQL "Build MSQL connection" off \
|
|
|
|
MYSQL "Build MySQL connection" off \
|
|
|
|
ODBC "Build ODBC connection" off \
|
|
|
|
POSTGRESQL "Build PostgreSQL connection" off \
|
|
|
|
SQLITE "Build SQLite connection" off \
|
|
|
|
FREETDS "Build FreeTDS connection" off \
|
|
|
|
INTERBASE "Build Interbase connection" off \
|
|
|
|
GTK "Build GTK configuration tool" off
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2001-07-06 12:24:50 +02:00
|
|
|
|
|
|
|
.if defined(WITH_SQLITE) && ${WITH_SQLITE:L} != no
|
2003-01-03 09:26:35 +01:00
|
|
|
LIB_DEPENDS+= gdbm.3:${PORTSDIR}/databases/gdbm \
|
2004-12-23 09:25:47 +01:00
|
|
|
sqlite.2:${PORTSDIR}/databases/sqlite2
|
2001-07-06 12:24:50 +02:00
|
|
|
CONFIGURE_ARGS+= --with-gdbm-prefix="${LOCALBASE}" \
|
|
|
|
--with-sqlite-prefix="${LOCALBASE}"
|
|
|
|
IF_SQLITE= ""
|
|
|
|
.else
|
2002-02-24 19:33:09 +01:00
|
|
|
CONFIGURE_ARGS+= --without-gdbm-prefix \
|
2004-06-20 18:40:26 +02:00
|
|
|
--disable-sqlite
|
2001-07-06 12:24:50 +02:00
|
|
|
IF_SQLITE= "@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_MYSQL) && ${WITH_MYSQL:L} != no
|
2004-05-28 14:43:39 +02:00
|
|
|
USE_MYSQL= yes
|
2001-07-06 12:24:50 +02:00
|
|
|
CONFIGURE_ARGS+= --with-mysql-prefix="${LOCALBASE}"
|
|
|
|
IF_MYSQL= ""
|
|
|
|
.else
|
2004-06-20 18:40:26 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-mysql
|
2001-07-06 12:24:50 +02:00
|
|
|
IF_MYSQL= "@comment "
|
|
|
|
.endif
|
|
|
|
|
2003-03-23 11:31:58 +01:00
|
|
|
.if defined(WITH_INTERBASE) && ${WITH_INTERBASE:L} != no
|
|
|
|
LIB_DEPENDS+= gds.1:${PORTSDIR}/databases/firebird
|
|
|
|
CONFIGURE_ARGS+= --with-interbase-prefix="${LOCALBASE}/firebird"
|
|
|
|
IF_INTERBASE= ""
|
|
|
|
.else
|
2004-06-20 18:40:26 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-interbase
|
2003-03-23 11:31:58 +01:00
|
|
|
IF_INTERBASE= "@comment "
|
|
|
|
.endif
|
|
|
|
|
2001-07-06 12:24:50 +02:00
|
|
|
.if defined(WITH_MSQL) && ${WITH_MSQL:L} != no
|
|
|
|
LIB_DEPENDS+= msql.1:${PORTSDIR}/databases/msql
|
|
|
|
CONFIGURE_ARGS+= --with-msql-prefix="${LOCALBASE}"
|
|
|
|
IF_MSQL= ""
|
|
|
|
.else
|
2004-06-20 18:40:26 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-msql
|
2001-07-06 12:24:50 +02:00
|
|
|
IF_MSQL= "@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_POSTGRESQL) && ${WITH_POSTGRESQL:L} != no
|
2005-01-31 01:35:55 +01:00
|
|
|
USE_PGSQL= yes
|
2002-02-23 20:56:02 +01:00
|
|
|
CONFIGURE_ARGS+= --with-postgresql-prefix="${LOCALBASE}"
|
2001-07-06 12:24:50 +02:00
|
|
|
IF_POSTGRESQL= ""
|
|
|
|
.else
|
2004-06-20 18:40:26 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-postgresql
|
2001-07-06 12:24:50 +02:00
|
|
|
IF_POSTGRESQL= "@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_ODBC) && ${WITH_ODBC:L} != no
|
|
|
|
LIB_DEPENDS+= odbc.1:${PORTSDIR}/databases/unixODBC
|
|
|
|
CONFIGURE_ARGS+= --with-odbc-prefix="${LOCALBASE}"
|
|
|
|
IF_ODBC= ""
|
|
|
|
.else
|
2004-06-20 18:40:26 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-odbc
|
2001-07-06 12:24:50 +02:00
|
|
|
IF_ODBC= "@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_FREETDS) && ${WITH_FREETDS:L} != no
|
2004-01-15 20:11:30 +01:00
|
|
|
LIB_DEPENDS+= tds.3:${PORTSDIR}/databases/freetds
|
2001-07-06 12:24:50 +02:00
|
|
|
CONFIGURE_ARGS+= --with-freetds-prefix="${LOCALBASE}"
|
|
|
|
IF_FREETDS= ""
|
|
|
|
.else
|
2004-06-20 18:40:26 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-freetds
|
2001-07-06 12:24:50 +02:00
|
|
|
IF_FREETDS= "@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_GTK) && ${WITH_GTK:L} != no
|
2004-06-20 18:40:26 +02:00
|
|
|
LIB_DEPENDS+= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
|
2004-08-30 09:53:36 +02:00
|
|
|
GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
|
2001-07-06 12:24:50 +02:00
|
|
|
CONFIGURE_ARGS+= --with-gtk-prefix="${X11BASE}"
|
|
|
|
IF_GTK= ""
|
|
|
|
.else
|
2004-06-20 18:40:26 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-gtk
|
2001-07-06 12:24:50 +02:00
|
|
|
IF_GTK= "@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
PLIST_SUB= IF_SQLITE=${IF_SQLITE} \
|
|
|
|
IF_MYSQL=${IF_MYSQL} \
|
|
|
|
IF_MSQL=${IF_MSQL} \
|
|
|
|
IF_POSTGRESQL=${IF_POSTGRESQL} \
|
|
|
|
IF_ODBC=${IF_ODBC} \
|
|
|
|
IF_FREETDS=${IF_FREETDS} \
|
2003-03-23 11:31:58 +01:00
|
|
|
IF_INTERBASE=${IF_INTERBASE} \
|
2001-07-06 12:24:50 +02:00
|
|
|
IF_GTK=${IF_GTK}
|
|
|
|
|
2004-05-26 16:26:21 +02:00
|
|
|
MAN1= fields.1 query.1 query.py.1 sqlr-config-gtk.1 sqlrsh.1
|
|
|
|
MAN8= sqlr-connection.8 sqlr-cachemanager.8 sqlr-ipclean.8 \
|
|
|
|
sqlr-listener.8 sqlr-scaler.8 sqlr-start.8 sqlr-stop.8
|
|
|
|
|
2001-07-06 12:24:50 +02:00
|
|
|
post-patch:
|
2002-10-27 18:54:01 +01:00
|
|
|
${REINPLACE_CMD} -E \
|
|
|
|
-e 's,/usr/local[[:>:]],${PREFIX},g;' \
|
|
|
|
-e 's,[[:<:]]gtk-config[[:>:]],${GTK_CONFIG:T},g;' \
|
2004-10-16 20:59:31 +02:00
|
|
|
${WRKSRC}/acsite.m4
|
2004-05-26 16:26:21 +02:00
|
|
|
${FIND} ${WRKSRC} -name Makefile | ${XARGS} ${REINPLACE_CMD} -E \
|
|
|
|
-e 's#-release \$$\(SQLR_VERSION\)##g;'
|
2001-07-06 12:24:50 +02:00
|
|
|
|
2004-06-20 18:40:26 +02:00
|
|
|
.include <bsd.port.post.mk>
|