summaryrefslogtreecommitdiff
path: root/databases/libodbc++/Makefile
diff options
context:
space:
mode:
authorMax Khon <fjoe@FreeBSD.org>2004-05-31 21:29:33 +0000
committerMax Khon <fjoe@FreeBSD.org>2004-05-31 21:29:33 +0000
commit43fc33f849e1dc883a91d89f9c1d2ff8cb4cefa7 (patch)
tree5f300c287c89dc381d1c4d5b3c087d11cda14574 /databases/libodbc++/Makefile
parent2de67f6591d17ea3d0cb9fbef9046a9e2757f719 (diff)
Notes
Diffstat (limited to 'databases/libodbc++/Makefile')
-rw-r--r--databases/libodbc++/Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/databases/libodbc++/Makefile b/databases/libodbc++/Makefile
new file mode 100644
index 000000000000..8901b2d01f40
--- /dev/null
+++ b/databases/libodbc++/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: libodbc++
+# Date created: 26 September 2001
+# Whom: Johann Visagie <wjv@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= libodbc++
+PORTVERSION= 0.2.3
+CATEGORIES= databases devel
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= libodbcxx
+
+MAINTAINER= fjoe@FreeBSD.org
+COMMENT= A C++ class library and toolset for ODBC access to data sources
+
+USE_GMAKE= yes
+USE_LIBTOOL= yes
+USE_GNOME= pkgconfig
+INSTALLS_SHLIB= yes
+CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ARGS= --with-isqlxx
+
+# libodbc++ needs an ODBC driver manager to be installed, and it supports
+# both iODBC and unixODBC. The following variable may be set at build-time
+# to either "iodbc" or "unixodbc", with the latter being the default:
+DRIVER_MANAGER?= unixodbc
+
+.if ${DRIVER_MANAGER} == "iodbc"
+LIB_DEPENDS= iodbc.3:${PORTSDIR}/databases/libiodbc
+CONFIGURE_ARGS+= --with-iodbc=${LOCALBASE}
+.else # assume we're using unixODBC
+LIB_DEPENDS= odbc.1:${PORTSDIR}/databases/unixODBC
+CONFIGURE_ARGS+= --with-odbc=${LOCALBASE}
+.endif
+
+PORTDOCS= INSTALL progref
+
+.include <bsd.port.mk>