a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 21001 2006-12-20 01:03:08Z markd@macports.org $
PortSystem 1.0
name freetds
version 0.64
categories databases
platforms darwin
maintainers nomaintainer@macports.org
description A set of libraries for Unix and Linux that allows your programs to natively talk to Microsoft SQL Server and Sybase databases
long_description FreeTDS is an open source implementation of the TDS (Tabular DataStream) protocol used by these databases for their own clients. It supports many different flavors of the protocol and supports several APIs to access it. Additionally FreeTDS works with other software such as Perl and PHP, providing access from those languages as well. There is also a native (type 4) JDBC driver available for platform-independent Java clients (including Java Server Pages applications), with support for most of the JDBC 1 API and portions of the JDBC 2 API.
homepage http://www.freetds.org/
master_sites http://ibiblio.org/pub/Linux/ALPHA/${name}/stable/ \
http://ibiblio.org/pub/Linux/ALPHA/${name}/old
checksums md5 ecfee5d6c96932172a1f29fb215c9d23
depends_lib port:libiconv
worksrcdir freetds-${version}
configure.args --mandir=${prefix}/share/man \
--includedir=${prefix}/include/${name} \
--sysconfdir=${prefix}/etc/${name} \
--with-libiconv-prefix=${prefix}
post-destroot {
file rename ${destroot}${prefix}/share/doc/${name}-${version} \
${destroot}${prefix}/share/doc/${name}
}
platform darwin 7 {
patchfiles patch-src-tds-Makefile.in patch-src-server-Makefile.in \
patch-src-ctlib-Makefile.in patch-src-odbc-Makefile.in \
patch-src-dblib-Makefile.in patch-src-apps-Makefile.in
pre-build {
system "cp /usr/bin/glibtool ${worksrcpath}/libtool"
}
}
platform darwin 8 {
patchfiles patch-src-tds-Makefile.in patch-src-server-Makefile.in \
patch-src-ctlib-Makefile.in patch-src-odbc-Makefile.in \
patch-src-dblib-Makefile.in patch-src-apps-Makefile.in
configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
}
variant mssql {
configure.args-append = --enable-msdblib --with-tdsver=8.0
}