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}
|
|
|
|
CATEGORIES= databases
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
MASTER_SITES= SF
|
2001-07-06 12:24:50 +02:00
|
|
|
|
2006-12-01 17:22:53 +01:00
|
|
|
MAINTAINER= skv@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
|
|
|
|
2006-12-01 17:22:53 +01:00
|
|
|
LIB_DEPENDS= rudiments.1:${PORTSDIR}/devel/rudiments
|
2001-07-06 12:24:50 +02:00
|
|
|
|
2012-05-13 22:26:24 +02:00
|
|
|
BROKEN= does not compile
|
|
|
|
|
2009-11-02 16:55:09 +01:00
|
|
|
WANT_GNOME= yes
|
|
|
|
USE_GMAKE= yes
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= autoconf libtool
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
CONFIGURE_ENV= ${SQLRELAY_CONFIGURE_ENV}
|
2004-10-16 20:59:31 +02:00
|
|
|
CONFIGURE_ARGS= ${SQLRELAY_CONFIGURE_ARGS} \
|
|
|
|
--disable-tcl \
|
|
|
|
--disable-java \
|
|
|
|
--disable-perl \
|
|
|
|
--disable-php \
|
|
|
|
--disable-python \
|
|
|
|
--disable-ruby \
|
|
|
|
--disable-zope
|
2006-08-15 18:53:16 +02:00
|
|
|
USE_LDCONFIG= yes
|
2001-07-06 12:24:50 +02:00
|
|
|
|
2006-12-01 17:22:53 +01:00
|
|
|
PORTDOCS= *
|
|
|
|
|
2001-07-06 12:24:50 +02:00
|
|
|
.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
|
2011-09-12 15:46:58 +02:00
|
|
|
LIB_DEPENDS+= gdbm.4:${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
|
2006-12-01 17:22:53 +01:00
|
|
|
USE_FIREBIRD= yes
|
2005-05-17 18:09:29 +02:00
|
|
|
CONFIGURE_ARGS+= --with-interbase-prefix="${LOCALBASE}"
|
2003-03-23 11:31:58 +01:00
|
|
|
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
|
|
|
|
|
2012-02-06 13:25:50 +01:00
|
|
|
.if defined(WITH_[BODBC) && ${WITH_ODBC:L} != no
|
|
|
|
LIB_DEPENDS+= odbc.2:${PORTSDIR}/databases/unixODBC
|
2001-07-06 12:24:50 +02:00
|
|
|
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
|
2007-03-03 15:21:56 +01:00
|
|
|
LIB_DEPENDS+= tds.5:${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
|
2006-02-23 11:40:44 +01:00
|
|
|
USE_GNOME+= gtk12
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
CONFIGURE_ARGS+= --with-gtk-prefix="${LOCALBASE}"
|
2001-07-06 12:24:50 +02:00
|
|
|
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}
|
|
|
|
|
2009-11-02 16:55:09 +01:00
|
|
|
MAN1= fields.1 query.1 query.py.1 sqlrsh.1
|
2004-05-26 16:26:21 +02:00
|
|
|
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:
|
2009-11-02 16:55:09 +01:00
|
|
|
${REINPLACE_CMD} -E \
|
|
|
|
-e 's,(freebsd.*)/usr/local(.*rc.d),\1${PREFIX}\2/sqlrelay.sh-sample,' \
|
|
|
|
-e 's,(freebsd/sqlrelay )(.*etc),\1$$(sysconfdir)/sqlrelay-sample,' \
|
|
|
|
${WRKSRC}/init/Makefile
|
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
|
2006-12-04 22:45:20 +01:00
|
|
|
@${REINPLACE_CMD} -e '/EXAMPLEDIR/d' ${WRKSRC}/etc/Makefile
|
2004-05-26 16:26:21 +02:00
|
|
|
${FIND} ${WRKSRC} -name Makefile | ${XARGS} ${REINPLACE_CMD} -E \
|
|
|
|
-e 's#-release \$$\(SQLR_VERSION\)##g;'
|
2009-04-08 00:14:30 +02:00
|
|
|
.ifdef NOPORTDOCS
|
|
|
|
@${REINPLACE_CMD} '/$$(MAKE) -C doc/d' ${WRKSRC}/Makefile
|
|
|
|
.endif
|
2001-07-06 12:24:50 +02:00
|
|
|
|
2004-06-20 18:40:26 +02:00
|
|
|
.include <bsd.port.post.mk>
|