Download and Install qt4-mac version 4.4.0 on Mac OS X
Thursday the 28th of August, 2008

    qt4-mac  most recent diff


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



      # -*- coding: utf-8; mode: tcl; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; truncate-lines: t -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
      # $Id: Portfile 37371 2008-06-04 23:30:30Z erickt macports.org $

      PortSystem 1.0

      Name: qt4-mac
      Version: 4.4.0
      revision 3
      Category: aqua
      Platform: macosx
      Maintainers: erickt clubjuggler gmail.com openmaintainer

      Homepage: http://www.trolltech.com/
      Description: Qt Tool Kit (Native Aqua Version)
      Long Description: This is Qt, TrollTech's C++ toolkit for writing cross-platform GUI applications. This version uses the native Aqua UI. For a X11 version, see qt4-x11.
      master_sites ftp://ftp.trolltech.com/qt/source/ http://ftp.iasi.roedu.net/mirrors/ftp.trolltech.com/qt/source/ http://ftp.ntua.gr/pub/X11/Qt/qt/source/ http://wftp.tu-chemnitz.de/pub/Qt/qt/source/
      distname qt-mac-opensource-src-${version}
      checksums md5 628c1366545b7925c574d5931990ef19 sha1 bd543e285154af1e96fde9144707f1b910d9fd74 rmd160 27892d59bd3af85f819bde2a540fc412c0182608

      depends_lib port:libmng port:libpng port:jpeg port:tiff

      patchfiles patch-mac.conf.diff

      # have to build with Apple gcc because of -fconstant-cfstrings
      configure.compiler gcc-4.0
      configure.cmd "CFLAGS=-isystem${prefix}/include CXXFLAGS=-isystem${prefix}/include ./configure"
      configure.pre_args

      # directory for .app and executable files
      # Once installed, they should not be moved so they can find each other
      # (e.g. assistant.app) and the examples directory
      set bindir ${prefix}/libexec/${name}/bin
      set frameworkdir ${prefix}/Library/Frameworks

      # See
      # http://doc.trolltech.com/qtopia4.3/buildsystem/over-configure-options-qt-1.html
      # for options
      configure.args -v -confirm-license -prefix '${prefix}' -bindir '${bindir}' -docdir '${prefix}/share/doc/${portname}' -datadir '${prefix}/share/${portname}' -headerdir '${prefix}/include/${portname}' -plugindir '${prefix}/lib/${portname}-plugins' -translationdir '${prefix}/share/${portname}/translations' -optimized-qmake -debug-and-release -shared -stl -no-openssl -largefile -system-libpng -system-libjpeg -system-libmng -system-libtiff -system-zlib -qt-gif -no-sql-ibase -no-sql-mysql -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-nis -no-cups -framework -libdir '${frameworkdir}' -make libs -make tools -I${worksrcpath}/include -L${worksrcpath}/lib -L${prefix}/lib

      # Take care of this with the CXXFLAGS=-isystem${prefix}/include
      # this puts the include at the end so that qt's include files are found first.
      # -I${prefix}/include
      # not made by default, anyway: -nomake demos -nomake examples

      build.target first
      use_parallel_build yes

      destroot.destdir INSTALL_ROOT="${destroot}"

      post-destroot {
      xinstall -d -m 0755 ${destroot}${bindir}
      xinstall -d -m 0755 ${destroot}/Applications/MacPorts/Qt
      xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${portname}

      # create link in ${prefix}/bin to executable files in ${bindir}
      foreach bin [glob -type f -directory ${destroot}${bindir} *] {
      system "ln -s ${bindir}/[file tail ${bin}] ${destroot}${prefix}/bin"
      }

      # create link in /Applications/MacPorts/Qt to .app directories in ${bindir}
      # create link in ${prefix}/bin to all *.app/Contents/MacOS/*
      foreach app [glob -type d -directory ${destroot}${bindir} *.app] {
      system "ln -s ${bindir}/[file tail ${app}] ${destroot}/Applications/MacPorts/Qt"
      foreach bin [glob -type f -directory ${app} Contents/MacOS/*] {
      system "ln -s ${bindir}/[file tail ${app}]/Contents/MacOS/[file tail ${bin}] ${destroot}${prefix}/bin"
      }
      }

      # fix id of plugins shared libraries
      foreach dirFull [glob -directory ${destroot}${prefix}/lib/${portname}-plugins -type d -nocomplain *] {
      set dir [file tail ${dirFull}]
      foreach libFull [glob -directory ${destroot}${prefix}/lib/${portname}-plugins/${dir} -nocomplain *.dylib] {
      set lib [file tail ${libFull}]
      system "install_name_tool -id ${prefix}/lib/${portname}-plugins/${dir}/${lib} ${libFull}"
      }
      }

      # Put pkgconfig directory in correct place (Fix Ticket #15353)
      system "mv ${destroot}${frameworkdir}/pkgconfig ${destroot}/${prefix}/lib/"

      # install documentation
      foreach doc {INSTALL LICENSE.GPL2 LICENSE.GPL3 OPENSOURCE-NOTICE.TXT README GPL_EXCEPTION_ADDENDUM.TXT GPL_EXCEPTION.TXT} {
      xinstall -c -m 644 ${worksrcpath}/$doc ${destroot}${prefix}/share/doc/${portname}
      }
      }

      default_variants +docs +dbus

      Variant: dbus description "Include DBus support" {
      depends_lib-append port:dbus
      configure.args-append -dbus-linked
      }

      Variant: noframework description "Do not build frameworks" {
      configure.args-delete -framework -libdir '${frameworkdir}'
      configure.args-append -no-framework
      }

      Variant: nis description "Include Network Information Service (NIS) support" {
      configure.args-delete -no-nis
      configure.args-append -nis
      }

      Variant: cups description "Include Common Unix Printing System (CUPS) support" {
      configure.args-delete -no-cups
      configure.args-append -cups
      }

      Variant: mysql4 conflicts mysql5 description "Include support for SQL via mysql4 driver" {
      depends_lib-append lib:libmysqlclient.12:mysql4
      configure.args-delete -no-sql-mysql
      configure.args-append -qt-sql-mysql -plugin-sql-mysql -I${prefix}/include/mysql -L${prefix}/lib/mysql
      }

      Variant: mysql5 conflicts mysql4 description "Include support for SQL via mysql5 driver" {
      depends_lib-append lib:libmysqlclient.15:mysql5
      configure.args-delete -no-sql-mysql
      configure.args-append -qt-sql-mysql -plugin-sql-mysql -I${prefix}/include/mysql5/mysql -L${prefix}/lib/mysql5/mysql
      }

      Variant: psql description "Include support for SQL via postgresql driver" {
      depends_lib-append port:postgresql83
      configure.args-delete -no-sql-psql
      configure.args-append -qt-sql-psql -plugin-sql-psql -I${prefix}/include/postgresql83 -L${prefix}/lib/postgresql83
      }

      Variant: sqlite description "Include support for SQL via sqlite driver" {
      configure.args-delete -no-sql-sqlite
      configure.args-append -qt-sql-sqlite -plugin-sql-sqlite
      }

      Variant: ssl description "Include OpenSSL support" {
      depends_lib-append port:openssl
      configure.args-delete -no-openssl
      configure.args-append -openssl
      }

      Variant: examples description "Build Qt examples" {
      # configure.args-delete "-nomake examples"
      configure.args-append -make examples -examplesdir ${prefix}/share/${portname}/examples
      }

      Variant: demos description "Build Qt demos" {
      # configure.args-delete "-nomake demos"
      configure.args-append -make demos -demosdir ${prefix}/share/${portname}/demos
      }

      Variant: docs description "Include Qt Documentation" {
      configure.args-append -make docs
      }


      livecheck.check regex
      livecheck.url http://trolltech.com/developer/downloads/qt/mac
      livecheck.regex "The current version of Qt/Mac Open Source Edition is (4(?:\\.\\d+)*)"

    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/qt4-mac
      % sudo port install qt4-mac
      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 qt4-mac
      ---> Verifying checksum for qt4-mac
      ---> Extracting qt4-mac
      ---> Configuring qt4-mac
      ---> Building qt4-mac with target all
      ---> Staging qt4-mac into destroot
      ---> Installing qt4-mac
    - 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 qt4-mac with these commands:
      %  man qt4-mac
      % apropos qt4-mac
      % which qt4-mac
      % locate qt4-mac

     Where to find more information:

    Darwin Ports



    image test