# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id: Portfile 53429 2009-07-06 00:18:24Z dh@macports.org $ PortSystem 1.0 name freetds version 0.82 categories databases platforms darwin maintainers nomaintainer 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 ftp://ftp.ibiblio.org/pub/Linux/ALPHA/${name}/stable/ \ http://ibiblio.org/pub/Linux/ALPHA/${name}/stable/ \ http://ibiblio.org/pub/Linux/ALPHA/${name}/old/${version}/ checksums md5 3df6b2e83fd420e90f1becbd1162990a \ sha1 7e2a0c9e41c240c2d1c7f69c6f278e9a5bb80c2d \ rmd160 d3596c512022332cdb3bab375950159f1e930a4b depends_lib port:libiconv port:ncurses port:readline patchfiles patch-cspublic.h configure.args --mandir=${prefix}/share/man \ --includedir=${prefix}/include/${name} \ --sysconfdir=${prefix}/etc/${name} \ --with-libiconv-prefix=${prefix} use_parallel_build yes post-destroot { file rename ${destroot}${prefix}/share/doc/${name}-${version} \ ${destroot}${prefix}/share/doc/${name} } post-patch { reinplace "s|../replacements/libreplacements.la||g" \ ${worksrcpath}/src/server/Makefile.in \ ${worksrcpath}/src/ctlib/Makefile.in \ ${worksrcpath}/src/odbc/Makefile.in \ ${worksrcpath}/src/dblib/Makefile.in \ ${worksrcpath}/src/apps/Makefile.in reinplace "s|../../replacements/libreplacements.la||g" \ ${worksrcpath}/src/apps/fisql/Makefile.in \ ${worksrcpath}/src/dblib/unittests/Makefile.in \ ${worksrcpath}/src/tds/unittests/Makefile.in } platform darwin 7 { pre-build { system "cp /usr/bin/glibtool ${worksrcpath}/libtool" } } platform darwin 9 { pre-build { system "cp /usr/bin/glibtool ${worksrcpath}/libtool" reinplace "s|\"gcc\"|\"${configure.cc}\"|" ${worksrcpath}/libtool } } variant mssql description {Use MS style dblib} { configure.args-append --enable-msdblib --with-tdsver=8.0 } variant odbc description {Build odbc driver against unixODBC} { depends_lib-append port:unixODBC configure.args-append --with-unixodbc=${prefix} } livecheck.check regex livecheck.url ftp://ftp.ibiblio.org/pub/Linux/ALPHA/${name}/stable/ livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"