source: trunk/dports/databases/unixODBC/Portfile @ 50984

Last change on this file since 50984 was 50984, checked in by and.damore@…, 10 years ago

Maintainer email change, second batch, mail without @macports.org domain are put in domain:user form.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.4 KB
Line 
1# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
2
3PortSystem          1.0
4
5name                unixODBC
6version             2.2.14
7revision            1
8categories          databases
9platforms           darwin
10maintainers         alakazam cotsworth.com:simon
11description         Provides ODBC 3 connectivity for Unix
12
13long_description    The unixODBC project provides UNIX applications with the \
14                    same ODBC 3.51 API and facilities available under Windows. \
15                    It provides a Driver Manager that supports the full ODBC \
16                    API and performs the ODBC 3 to ODBC 2 translations with \
17                    UNICODE to ANSI conversion. It also includes a set of \
18                    graphical utilities that allow users to specify \
19                    connections to DBMSes to be used by applications, a \
20                    collection of ODBC drivers including a simple text based \
21                    driver, an NNTP driver, a Postgres driver and others, and \
22                    a selection of templates and libraries that to aid in the \
23                    construction of ODBC drivers. It works with MySQL, \
24                    Postgres, StarOffice, Applixware, iHTML, PHP, Perl \
25                    DBD::ODBC, Paradox 9, and many other applications and \
26                    drivers. Connection pooling is also provided to increase \
27                    performance with applications such as PHP.
28
29homepage            http://www.unixodbc.org/
30master_sites        ${homepage} \
31                    ftp://ftp.easysoft.com/pub/beta/unixODBC/
32
33checksums           md5     f47c2efb28618ecf5f33319140a7acd0 \
34                    sha1    ab18464c83d30d7b38b8bb58e1dd01e3ec211488 \
35                    rmd160  e2a2d2de636a8b2ee1002cac809ba2a38d7eb4de
36
37depends_lib         port:libiconv port:readline
38
39patchfiles          patch-ltmain.sh patch-odbc-config.c.diff patch-sqltypes.h.diff
40
41configure.args      --enable-static --enable-shared --enable-gui=no \
42                    --with-libiconv-prefix=${prefix}
43
44use_parallel_build  yes
45
46platform darwin 6 {
47    depends_lib-append  port:dlcompat
48}
49
50global      _cc _ccr _psq1 _psq2 _nn _odbc _ex1 _ex2
51set _cc     "/usr/bin/gcc -bundle -flat_namespace -undefined suppress -o"
52set _ccr    libodbccr.1.0.0
53set _psq1   libodbcpsql.1.0.0
54set _psq2   libodbcpsql.2.0.0
55set _nn     libnn.1.0.0
56set _odbc   libodbc.1.0.0
57
58variant gui description "Enable Qt3 based GUI support applications" {
59    depends_lib-append      port:qt3
60    configure.env-append    QTDIR=${prefix}
61    configure.args-delete   --enable-gui=no
62    configure.args-append   --enable-gui \
63                            --with-qt-dir=${prefix} \
64                            --with-qt-includes=${prefix}/include/qt3 \
65                            --with-qt-libraries=${prefix}/lib \
66                            --with-qt-bin=${prefix}/bin \
67                            --with-extra-includes=/usr/X11R6/include \
68                            --with-extra-libs=/usr/X11R6/lib
69}
70
71post-destroot {
72    # DOCS
73    xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
74   
75    foreach doc [glob ${worksrcpath}/\[A-Z\]*\[A-Z\]\[A-Z\]\[A-Z\] ${worksrcpath}/doc/*.\[a-z\]\[a-z\]\[a-z\]*] {
76        if {[string match "*.html" $doc]} {
77            reinplace "s|${homepage}doc/||g" $doc
78        }
79       
80        xinstall -m 0644 $doc ${destroot}${prefix}/share/doc/${name}
81    }
82   
83    foreach dir [list AdministratorManual lst ProgrammerManual ProgrammerManual/Tutorial UserManual] {
84        xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}/$dir
85       
86        foreach file [glob ${worksrcpath}/doc/$dir/*.\[a-z\]\[a-z\]\[a-z\]*] {
87            if {[string match "*.html" $file]} {
88                reinplace "s|${homepage}doc/||g" $file
89            }
90           
91            xinstall -m 0644 $file ${destroot}${prefix}/share/doc/${name}/$dir
92        }
93    }
94   
95    # TEMPLATES
96    xinstall -d -m 0755 ${destroot}${prefix}/share/${name}
97   
98    foreach template [glob ${portpath}/${filesdir}/*.template] {
99        xinstall -m 0644 $template ${destroot}${prefix}/share/${name}
100    }
101   
102    foreach driver [glob ${destroot}${prefix}/share/${name}/*.driver.*] {
103        reinplace "s|__PREFIX__|${prefix}|g" $driver
104    }
105   
106    # CONFIG
107    foreach ini [glob ${destroot}${prefix}/etc/*.ini] {
108        system "mv $ini $ini.dist"
109    }
110   
111    destroot.keepdirs ${destroot}${prefix}/etc/ODBCDataSources
112}
113
114livecheck.check regex
115livecheck.url   ${homepage}download.html
116livecheck.regex HREF="${name}-(\\d+(\\.\\d+)*).tar.gz"
Note: See TracBrowser for help on using the repository browser.