ports/174728: Let textproc/soprano know about different odbc
Pavel Timofeev
timp87 at gmail.com
Thu Dec 27 08:10:00 UTC 2012
>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:
More information about the freebsd-ports-bugs
mailing list