Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Dec 2012 08:07:14 GMT
From:      Pavel Timofeev <timp87@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/174728: Let textproc/soprano know about different odbc
Message-ID:  <201212270807.qBR87Edj079419@red.freebsd.org>
Resent-Message-ID: <201212270810.qBR8A0RS015062@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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 <bsd.port.pre.mk>
 
+.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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212270807.qBR87Edj079419>