[BACK]Return to options.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / databases / sqlrelay

File: [cvs.NetBSD.org] / pkgsrc / databases / sqlrelay / Attic / options.mk (download)

Revision 1.2, Mon Dec 5 23:55:05 2005 UTC (17 years, 1 month ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2005Q4-base, pkgsrc-2005Q4
Changes since 1.1: +3 -3 lines

Ran "pkglint --autofix", which corrected some of the quoting issues in
CONFIGURE_ARGS.

# $NetBSD: options.mk,v 1.2 2005/12/05 23:55:05 rillig Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.sqlrelay
PKG_SUPPORTED_OPTIONS+= mysql pgsql

# remove legacy handling after 2005Q4
.if defined(SQLRELAY_DATABASES)
.if !empty(SQLRELAY_DATABASES:Mmysql)
PKG_LEGACY_OPTIONS+=	mysql
PKG_OPTIONS_DEPRECATED_WARNINGS+="Deprecated variable SQLRELAY_DATABASES used, use PKG_OPTIONS.sqlrelay+=mysql instead."
.endif
.if !empty(SQLRELAY_DATABASES:Mpostgresql)
PKG_LEGACY_OPTIONS+=	pgsql
PKG_OPTIONS_DEPRECATED_WARNINGS+="Deprecated variable SQLRELAY_DATABASES used, use PKG_OPTIONS.sqlrelay+=pqsql instead."
.endif
.endif

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Mmysql)
CONFIGURE_ARGS+=	--with-mysql=${BUILDLINK_DIR:Q}
.include "../../mk/mysql.buildlink3.mk"
.endif

.if !empty(PKG_OPTIONS:Mpgsql)
CONFIGURE_ARGS+=	--with-postgresql=${BUILDLINK_DIR:Q}
.include "../../mk/pgsql.buildlink3.mk"
.endif