Download and Install unixodbc version 2.2.12 on Mac OS X
Wednesday the 9th of July, 2008

    unixodbc  most recent diff


      View the most recent changes for the unixodbc port at: unixodbc.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for unixodbc.
      The raw portfile for unixodbc 2.2.12 is located here:
      http://unixodbc.darwinports.com/dports/databases/unixODBC/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/unixodbc
      Google
      Web Darwinports.com



      # $Id: Portfile 28517 2007-09-02 22:09:48Z mww macports.org $

      PortSystem 1.0
      Name: unixODBC
      Version: 2.2.12
      Category: databases
      Platform: darwin
      Maintainers: simon cotsworth.com
      Description: Provides ODBC 3 connectivity for Unix

      Long Description: The unixODBC project provides UNIX applications with the same ODBC 3.51 API and facilities available under Windows. It provides a Driver Manager that supports the full ODBC API and performs the ODBC 3 to ODBC 2 translations with UNICODE to ANSI conversion. It also includes a set of graphical utilities that allow users to specify connections to DBMSes to be used by applications, a collection of ODBC drivers including a simple text based driver, an NNTP driver, a Postgres driver and others, and a selection of templates and libraries that to aid in the construction of ODBC drivers. It works with MySQL, Postgres, StarOffice, Applixware, iHTML, PHP, Perl DBD::ODBC, Paradox 9, and many other applications and drivers. Connection pooling is also provided to increase performance with applications such as PHP.

      Homepage: http://www.unixodbc.org/
      master_sites ${homepage} ftp://ftp.easysoft.com/pub/beta/unixODBC/

      checksums md5 9a116aad4059c31d231b626ffdf1869a
      # sha1 a8869c38d0f1bb18b33e5165a2a79dd8770f98b3

      depends_lib port:libiconv port:readline

      patchfiles patch-ltmain.sh

      configure.args --enable-static --enable-shared --enable-gui=no --with-libiconv-prefix=${prefix}

      platform darwin 6 {
      depends_lib-append port:dlcompat
      }

      global _cc _ccr _psq1 _psq2 _nn _odbc _ex1 _ex2
      set _cc "/usr/bin/gcc -bundle -flat_namespace -undefined suppress -o"
      set _ccr libodbccr.1.0.0
      set _psq1 libodbcpsql.1.0.0
      set _psq2 libodbcpsql.2.0.0
      set _nn libnn.1.0.0
      set _odbc libodbc.1.0.0

      Variant: gui {
      depends_lib-append lib:libX11.6:XFree86 port:qt3
      configure.env-append QTDIR=${prefix}
      configure.args-delete --enable-gui=no
      configure.args-append --enable-gui --with-qt-dir=${prefix} --with-qt-includes=${prefix}/include/qt3 --with-qt-libraries=${prefix}/lib --with-qt-bin=${prefix}/bin --with-extra-includes=/usr/X11R6/include --with-extra-libs=/usr/X11R6/lib
      }

      post-destroot {
      # DOCS
      xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
      foreach doc [glob ${worksrcpath}/\[A-Z\]*\[A-Z\]\[A-Z\]\[A-Z\] ${worksrcpath}/doc/*.\[a-z\]\[a-z\]\[a-z\]*] {
      if {[string match "*.html" $doc]} {
      reinplace "s|${homepage}doc/||g" $doc
      }
      xinstall -m 0644 $doc ${destroot}${prefix}/share/doc/${name}
      }
      foreach dir [list AdministratorManual lst ProgrammerManual ProgrammerManual/Tutorial UserManual] {
      xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}/$dir
      foreach file [glob ${worksrcpath}/doc/$dir/*.\[a-z\]\[a-z\]\[a-z\]*] {
      if {[string match "*.html" $file]} {
      reinplace "s|${homepage}doc/||g" $file
      }
      xinstall -m 0644 $file ${destroot}${prefix}/share/doc/${name}/$dir
      }
      }

      # TEMPLATES
      xinstall -d -m 0755 ${destroot}${prefix}/share/${name}
      foreach template [glob ${portpath}/${filesdir}/*.template] {
      xinstall -m 0644 $template ${destroot}${prefix}/share/${name}
      }
      foreach driver [glob ${destroot}${prefix}/share/${name}/*.driver.*] {
      reinplace "s|__PREFIX__|${prefix}|g" $driver
      }

      # CONFIG
      foreach ini [glob ${destroot}${prefix}/etc/*.ini] {
      system "mv $ini $ini.dist"
      }
      destroot.keepdirs ${destroot}${prefix}/etc/ODBCDataSources
      }


    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/unixodbc
      % sudo port install unixodbc
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching unixodbc
      ---> Verifying checksum for unixodbc
      ---> Extracting unixodbc
      ---> Configuring unixodbc
      ---> Building unixodbc with target all
      ---> Staging unixodbc into destroot
      ---> Installing unixodbc
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using unixodbc with these commands:
      %  man unixodbc
      % apropos unixodbc
      % which unixodbc
      % locate unixodbc

     Where to find more information:

    Darwin Ports



    image test