source: trunk/dports/databases/freetds/Portfile

Last change on this file was 152291, checked in by ryandesign@…, 14 months ago

freetds: update to 1.00.15

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1# -*- 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
2# $Id: Portfile 152291 2016-09-02 21:56:30Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                freetds
7epoch               1
8version             1.00.15
9categories          databases
10platforms           darwin
11maintainers         ryandesign openmaintainer
12# libs are LGPL, tdspool executable is GPL
13license             {GPL-2+ LGPL}
14
15description         A set of libraries for Unix and Linux that allows your programs to natively \
16                    talk to Microsoft SQL Server and Sybase databases
17
18long_description    FreeTDS is an open source implementation of the TDS (Tabular DataStream) \
19                    protocol used by these databases for their own clients. It supports many \
20                    different flavors of the protocol and supports several APIs to access it. \
21                    Additionally FreeTDS works with other software such as Perl and PHP, \
22                    providing access from those languages as well. There is also a native (type 4) \
23                    JDBC driver available for platform-independent Java clients (including Java \
24                    Server Pages applications), with support for most of the JDBC 1 API and \
25                    portions of the JDBC 2 API.
26
27homepage            http://www.freetds.org/
28master_sites        ftp://ftp.freetds.org/pub/${name}/stable/
29use_bzip2           yes
30
31checksums           rmd160  1349ffec1225db39d2f7d1423b249c2707b7837a \
32                    sha256  3f23655da694f5cb116a722411cd98cff7e8161ca2988afca5221d5c2b942a83
33
34depends_lib         port:libiconv \
35                    port:ncurses \
36                    path:lib/libssl.dylib:openssl \
37                    port:readline
38
39patchfiles          nawk.patch
40
41configure.args      --disable-silent-rules \
42                    --includedir=${prefix}/include/${name} \
43                    --sysconfdir=${prefix}/etc/${name} \
44                    --with-libiconv-prefix=${prefix}
45
46use_parallel_build  yes
47
48post-destroot {
49    # rename the freetds conf files so we don't clobber any existing ones
50    foreach file [list "freetds.conf" "locales.conf" "pool.conf"] {
51        move ${destroot}${prefix}/etc/freetds/${file} ${destroot}${prefix}/etc/freetds/${file}.sample
52    }
53}
54
55post-activate {
56    # copy over freetds sample files if none exists
57    foreach file [list "freetds.conf" "locales.conf" "pool.conf"] {
58        if {![file exists ${prefix}/etc/freetds/${file}]} {
59            ui_msg "Configuration file ${file} does not exist and has been created using"
60            ui_msg "    ${prefix}/etc/freetds/${file}.sample"
61            file copy ${prefix}/etc/freetds/${file}.sample ${prefix}/etc/freetds/${file}
62        } else {
63            ui_msg "Configuration file ${file} exists and has been retained."
64            ui_msg "(The distribution's version has been installed to ${prefix}/etc/freetds/${file}.sample)"
65        }
66    }
67}
68
69variant mssql description {Use MS style dblib} {
70    configure.args-append --enable-msdblib --with-tdsver=8.0
71}
72
73variant odbc conflicts iodbc description {Build odbc driver against unixODBC} {
74    depends_lib-append port:unixODBC
75    configure.args-append --with-unixodbc=${prefix}
76}
77
78variant iodbc conflicts odbc description {Build odbc driver against iODBC} {
79    depends_lib-append port:libiodbc
80    configure.args-append --with-iodbc=${prefix}
81}
Note: See TracBrowser for help on using the repository browser.