gtk2 version 2.12.4 for Mac OS X 10.5 Leopard
Wednesday the 14th of May, 2008

    gtk2  most recent diff


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



      # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
      # $Id: Portfile 33208 2008-01-21 16:39:33Z nox macports.org $

      PortSystem 1.0

      Name: gtk2
      Version: 2.12.4
      set branch [join [lrange [split ${version} .] 0 1] .]
      Category: x11
      Maintainers: nox openmaintainer
      Platform: darwin
      Description: Gimp ToolKit version 2

      Long Description: This is GTK+ version 2.x. GTK+, which stands for Gimp ToolKit, is a library for creating GUIs for the X Windows System.

      Homepage: http://www.gtk.org/
      distname gtk+-${version}
      use_bzip2 yes

      master_sites gnome:sources/gtk+/${branch}/ ftp://ftp.gtk.org/pub/gtk/v${branch}/ http://ftp.gtk.org/pub/gtk/v${branch}/

      if {![variant_isset quartz]} {
      default_variants +x11
      }

      pre-fetch {
      if {![variant_isset quartz] && ![variant_isset x11]} {
      error "Either +x11 or +quartz is required"
      }

      if {[rpm-vercomp ${os.version} 8.0] >= 0 && [file exists ${prefix}/bin/cups-config]} {
      ui_error "You are running Darwin 8.0, cups-headers should not be installed on your system. Please uninstall or deactivate it."
      error "Please uninstall or deactivate cups-headers."
      }
      }

      checksums md5 72e2a930f65667ab86dc46141bbaf9e2 sha1 e9d727298ed61cc3c8779b42384c50480eecc46e rmd160 d9e031274e7fc209646cf35dd64ab5802f646808

      patchfiles patch-gtk-xdgmime-xdgmime.c.diff

      post-patch {
      reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/gtk/xdgmime/xdgmime.c
      }

      depends_build port:gtk-doc port:pkgconfig

      depends_lib port:cairo port:fontconfig port:freetype port:glib2 port:jpeg port:tiff port:libiconv port:libpng port:atk port:pango port:gettext port:render port:zlib

      configure.args --disable-shm --disable-glibtest --with-included-loaders

      configure.cppflags-append -no-cpp-precomp -DX_LOCALE
      configure.cflags-append -funroll-loops -fstrict-aliasing

      test.run yes
      test.target check

      post-destroot {
      ui_debug "Creating gtk.immodules..."
      system "DYLD_LIBRARY_PATH=${destroot}${prefix}/lib ${destroot}${prefix}/bin/gtk-query-immodules-2.0 ${destroot}${prefix}/lib/gtk-2.0/2.10.0/immodules/*.so >${destroot}${prefix}/etc/gtk-2.0/gtk.immodules"
      reinplace "s|${destroot}||" ${destroot}${prefix}/etc/gtk-2.0/gtk.immodules
      }

      post-activate {
      ui_debug "Updating gdk-pixbuf.loaders..."
      system "${prefix}/bin/gdk-pixbuf-query-loaders >${prefix}/etc/gtk-2.0/gdk-pixbuf.loaders"
      }

      platform darwin 6 {
      patchfiles-append patch-gtk-xdgmime-xdgmimemagic.c.diff
      }

      platform darwin 7 {
      depends_build-append port:cups-headers
      }

      Variant: quartz conflicts x11 description {Enable Quartz rendering} {
      pre-fetch {
      if {![file exists ${prefix}/include/cairo/cairo-quartz.h]} {
      ui_error "Please uninstall or deactivate the cairo port and reinstall it by running `port install cairo +quartz`."
      error "cairo must be installed with the quartz variant enabled."
      }
      }

      configure.args-append --with-gdktarget=quartz
      }

      Variant: x11 conflicts quartz description {Enable rendering in X11 (default)} {
      depends_lib-append port:xrender lib:libX11.6:xorg

      configure.cppflags-append -I${x11prefix}/include
      }

      livecheck.check regex
      livecheck.url ftp://ftp.gtk.org/pub/gtk/${branch}/
      livecheck.regex {LATEST-(\d+(?:\.\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/gtk2
      % sudo port install gtk2
      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 gtk2
      ---> Verifying checksum for gtk2
      ---> Extracting gtk2
      ---> Configuring gtk2
      ---> Building gtk2 with target all
      ---> Staging gtk2 into destroot
      ---> Installing gtk2
    - 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 gtk2 with these commands:
      %  man gtk2
      % apropos gtk2
      % which gtk2
      % locate gtk2

     Where to find more information:

    Darwin Ports



    image test