Php5-gtk version 2.0.1 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    php5-gtk  most recent diff


    version 2.0.1

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


      # -*- 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
      The php5-gtk Portfile 52836 2009-06-24 02:00:03Z ryandesign macports.org $

      PortSystem 1.0

      Name: php5-gtk
      Version: 2.0.1
      Category: php x11
      Maintainers: kix.in:anant
      Homepage: http://gtk.php.net/
      distname php-gtk-${version}
      Platform: darwin freebsd

      Description: PHP-GTK: Gtk+ bindings for PHP 5.

      Long Description: PHP-GTK is a Gtk+ bindings for the PHP 5 scripting language, allowing you to build rich, cross-platform desktop applications using PHP.

      Master Sites: http://gtk.php.net/distributions/

      Checksums: md5 d57ce885f32749320765e01c079e113b sha1 a4f42c715b51554c1322de4beb3054012ec58696 rmd160 2e305f45d95a2c1abbe8cd551c794823dfc3d919

      depends_lib port:gtk2 path:bin/php:php5 port:libglade2

      configure.args --disable-glibtest --disable-gtktest

      Variant: extra {
      depends_lib-append port:gtk2-extra
      configure.args-append --with-extra
      }

      Variant: html {
      depends_lib-append port:libgtkhtml3
      configure.args-append --with-html
      }

      Variant: libsexy {
      depends_lib-append port:libsexy
      configure.args-append --with-libsexy
      }

      Variant: sourceview {
      depends_lib-append port:gtksourceview
      configure.args-append --with-sourceview
      }

      Variant: spell {
      depends_lib-append port:gtkspell2
      configure.args-append --with-spell
      }

      configure.args --enable-scintilla

      pre-configure {
      system "cd ${worksrcpath} && ./buildconf"
      }

      use_parallel_build yes

      destroot.destdir INSTALL_ROOT=${destroot}

      post-destroot {
      set docdir ${prefix}/share/doc/${distname}
      xinstall -d ${destroot}${docdir}

      xinstall -m 644 -W ${worksrcpath} README README.KNOWN-ISSUES NEWS AUTHORS ${destroot}${docdir}
      }

      post-install {
      ui_msg "\nIf this is your first install, you might want to enable PHP-GTK in the"
      ui_msg "ini file. Append the line: extension=php_gtk2.so to ${prefix}/etc/php.ini\n"
      }

      livecheck.name php-gtk

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.