From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Dec 27 08:10:00 2012 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B09A4BF for ; Thu, 27 Dec 2012 08:10:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 849ED8FC0A for ; Thu, 27 Dec 2012 08:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBR8A0Vs015063 for ; Thu, 27 Dec 2012 08:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBR8A0RS015062; Thu, 27 Dec 2012 08:10:00 GMT (envelope-from gnats) Resent-Date: Thu, 27 Dec 2012 08:10:00 GMT Resent-Message-Id: <201212270810.qBR8A0RS015062@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Pavel Timofeev Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 31A8DFF0 for ; Thu, 27 Dec 2012 08:07:15 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 185258FC0A for ; Thu, 27 Dec 2012 08:07:15 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qBR87ESg079420 for ; Thu, 27 Dec 2012 08:07:14 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id qBR87Edj079419; Thu, 27 Dec 2012 08:07:14 GMT (envelope-from nobody) Message-Id: <201212270807.qBR87Edj079419@red.freebsd.org> Date: Thu, 27 Dec 2012 08:07:14 GMT From: Pavel Timofeev To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/174728: Let textproc/soprano know about different odbc X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Dec 2012 08:10:00 -0000 >Number: 174728 >Category: ports >Synopsis: Let textproc/soprano know about different odbc >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Dec 27 08:10:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Pavel Timofeev >Release: FreeBSD 9.1-RELEASE amd64 >Organization: >Environment: >Description: textproc/soprano uses only iODBC, but there is also unixODBC. Make it optional. >How-To-Repeat: >Fix: You can change OPTIONS_DEFAULT to any odbc Patch attached with submission follows: --- Makefile.orig 2012-12-27 07:36:38.000000000 +0400 +++ Makefile 2012-12-27 07:50:52.000000000 +0400 @@ -14,7 +14,6 @@ LIB_DEPENDS= raptor2.0:${PORTSDIR}/textproc/raptor2 \ rdf.0:${PORTSDIR}/textproc/redland \ - iodbc.3:${PORTSDIR}/databases/libiodbc USE_BZIP2= yes USE_QT4= corelib dbus qtestlib network \ @@ -25,8 +24,26 @@ CMAKE_ARGS+= -DSOPRANO_DISABLE_CLUCENE_INDEX=yes \ -DSOPRANO_DISABLE_SESAME2_BACKEND=yes +OPTIONS_DEFAULT= UNIXODBC + +IODBC_DESC= Use iODBC for ODBC support +UNIXODBC_DESC= Use UnixODBC for ODBC support + +OPTIONS_SINGLE= ODBC +OPTIONS_SINGLE_ODBC= IODBC UNIXODBC + .include +.if ${PORT_OPTIONS:MIODBC} +LIB_DEPENDS+= iodbc:${PORTSDIR}/databases/libiodbc +CONFIGURE_ARGS+= --with-iodbc +.endif + +.if ${PORT_OPTIONS:MUNIXODBC} +LIB_DEPENDS+= odbc:${PORTSDIR}/databases/unixODBC +CONFIGURE_ARGS+= --with-unixodbc +.endif + post-patch: ${REINPLACE_CMD} -e "s,$${LIB_SUFFIX}/pkgconfig,data/pkgconfig," \ ${WRKSRC}/CMakeLists.txt >Release-Note: >Audit-Trail: >Unformatted: