gtk28 version 2.8.20 for Mac OS X 10.5 Leopard
Monday the 12th of May, 2008

    gtk28  most recent diff


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



      # $Id: Portfile 32882 2008-01-14 10:47:52Z ryandesign macports.org $

      PortSystem 1.0
      Name: gtk28
      Version: 2.8.20
      Category: x11
      Maintainers: nomaintainer
      Description: Gimp ToolKit version 2
      Homepage: http://www.gtk.org/
      Platform: darwin

      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.

      master_sites ftp://ftp.gtk.org/pub/gtk/v2.8 gnome:sources/gtk+/2.8

      distname gtk+-${version}
      checksums md5 74e7ca98194f1fadfe906e66d763d05d sha1 8ea2449ff139b8bc457f8b5bcdcad93b02cfba9e rmd160 d20254de9e5b37b19f432758fbd78fff4c6baf1e

      use_bzip2 yes

      depends_lib port:glib2 port:tiff port:libpng port:atk port:pango port:gettext lib:libX11.6:XFree86

      configure.ldflags-append "-lpango-1.0"
      configure.cppflags-append "-no-cpp-precomp -DX_LOCALE"
      configure.cflags "-O3 -funroll-loops -fstrict-aliasing"

      configure.args --disable-shm --disable-gtk-doc --with-included-loaders --mandir=${prefix}/share/man

      build.args CFLAGS+="-I${x11prefix}/include"

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

      platform darwin 8 { patchfiles-append patch-gtk-xdgmime-xdgmimecache.c patch-gtk-gdk-x11-gdkspawn-x11.c }

      post-patch { reinplace "s|xdg_data_dirs = \"/usr|xdg_data_dirs = \"${prefix}/share:/usr|g" ${worksrcpath}/gtk/xdgmime/xdgmime.c
      reinplace "s|g_strdup (\"/usr|g_strdup (\"${prefix}|g" ${worksrcpath}/gtk/gtkicontheme.c }

      post-destroot { system "install -d -m 755 ${destroot}${prefix}/etc/gtk-2.0"
      system "cp ${filespath}/gdk-pixbuf.loaders ${destroot}${prefix}/etc/gtk-2.0/gdk-pixbuf.loaders"
      reinplace "s|__PREFIX__|${prefix}|g" "${destroot}${prefix}/etc/gtk-2.0/gdk-pixbuf.loaders"
      system "env LANG=C DYLD_LIBRARY_PATH=${destroot}${prefix}/lib ${destroot}${prefix}/bin/gtk-query-immodules-2.0 ${destroot}${prefix}/lib/gtk-2.0/2.4.0/immodules/*.so | sed -e 's|${destroot}||g' > ${destroot}${prefix}/etc/gtk-2.0/gtk.immodules" }

      pre-activate {
      if { [file exists ${prefix}/lib/libgtk-x11-2.0.dylib] } {
      return -code error "\nThis port conflicts with gtk2. Please uninstall (or deactivate) the\ngtk2 port and try reinstalling this port.\n"
      }
      }

      post-activate { system "gdk-pixbuf-query-loaders ${prefix}/lib/gtk-2.0/2.4.0/loaders/*.so > ${prefix}/etc/gtk-2.0/gdk-pixbuf.loaders" }

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

     Where to find more information:

    Darwin Ports



    image test