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

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

Revision 1.3, Sun Jan 14 12:28:56 2007 UTC (12 years, 10 months ago) by obache
Branch: MAIN
CVS Tags: pkgsrc-2008Q1-base, pkgsrc-2008Q1, pkgsrc-2007Q4-base, pkgsrc-2007Q4, pkgsrc-2007Q3-base, pkgsrc-2007Q3, pkgsrc-2007Q2-base, pkgsrc-2007Q2, pkgsrc-2007Q1-base, pkgsrc-2007Q1
Changes since 1.2: +2 -2 lines

Fix CONFIGURE option to pick up iODBC driver (default option) correctly.
Pointed out by Yasushi Oshima in PR 33147.

Bump PKGREVISION.

# $NetBSD: options.mk,v 1.3 2007/01/14 12:28:56 obache Exp $
#

PKG_OPTIONS_VAR=	PKG_OPTIONS.myodbc
PKG_OPTIONS_REQUIRED_GROUPS=	db
PKG_OPTIONS_GROUP.db=	myodbc-iodbc myodbc-unixodbc
PKG_SUPPORTED_OPTIONS=	myodbc-gui
PKG_SUGGESTED_OPTIONS=	myodbc-iodbc

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

.if !empty(PKG_OPTIONS:Mmyodbc-gui)
.  include "../../x11/qt3-tools/buildlink3.mk"
CONFIGURE_ARGS+=	--enable-gui
USE_LANGUAGES=		c c++
PLIST_SUBST+=		WITH_GUI=
.else
CONFIGURE_ARGS+=	--disable-gui
PLIST_SUBST+=		WITH_GUI='@comment '
.endif

.if !empty(PKG_OPTIONS:Mmyodbc-iodbc)
.  include "../../databases/iodbc/buildlink3.mk"
CONFIGURE_ARGS+=	--with-iODBC=${BUILDLINK_PREFIX.iodbc}
CONFIGURE_ARGS+=	--with-odbc-ini=${PKG_SYSCONFDIR.iodbc}/odbc.ini
.endif

.if !empty(PKG_OPTIONS:Mmyodbc-unixodbc)
.  include "../../databases/unixodbc/buildlink3.mk"
CONFIGURE_ARGS+=	--with-unixODBC=${BUILDLINK_PREFIX.unixodbc}
CONFIGURE_ARGS+=	--with-odbc-ini=${PKG_SYSCONFDIR.unixodbc}/odbc.ini
.endif