Gd2 version 2.0.35 - How to Download and Install on Mac OS X
Saturday the 20th of March, 2010

    version 2.0.35

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


      The gd2 Portfile 57758 2009-09-16 07:48:28Z ryandesign macports.org $

      PortSystem 1.0
      PortGroup muniversal 1.0

      Name: gd2
      Version: 2.0.35
      Revision: 5
      Category: graphics
      Maintainers: ryandesign
      license gd
      Homepage: http://www.libgd.org/
      Platform: darwin
      distname gd-${version}
      use_bzip2 yes
      use_parallel_build yes

      Description: GD creates PNG and JPEG images, among other formats

      Long Description: gd is a graphics library. It allows your code to quickly draw images complete with lines, arcs, text, multiple colors, cut and paste from other images, and flood fills, and write out the result as a .PNG file. This is particularly useful in World Wide Web applications, where .PNG is the format used for inline images. gd is not a paint program. If you are looking for a paint program, you are looking in the wrong place. If you are not a programmer, you are looking in the wrong place.

      Master Sites: ${homepage}releases/ ${homepage}releases/oldreleases/

      Checksums: md5 6c6c3dbb7bf079e0bb5fbbfd3bb8a71c sha1 ccf34a610abff2dbf133a20c4d2a4aa94939018a rmd160 f452a2c333b2ba9b7b4c143983ec2af18a335516

      depends_build port:gettext

      depends_lib port:zlib port:libpng port:jpeg port:freetype port:fontconfig port:libiconv port:expat port:xpm

      Patch Files: patch-gdft.c.diff

      post-patch {
      if {[file exists ${prefix}/share/libtool/config/ltmain.sh]} {
      copy -force ${prefix}/share/libtool/config/ltmain.sh ${worksrcpath}/config
      } else {
      copy -force ${prefix}/share/libtool/ltmain.sh ${worksrcpath}/config
      }
      }

      use_autoreconf yes

      post-build {
      if {[variant_isset universal]} {
      foreach arch ${universal_archs_to_use} {
      reinplace "s| ${configure.universal_ldflags}||" ${worksrcpath}-${arch}/config/gdlib-config
      reinplace "s| [muniversal_get_arch_flag ${arch}]||" ${worksrcpath}-${arch}/config/gdlib-config
      }
      }
      }

      if { ! [variant_isset no_x11] } {
      configure.args-append --x-includes=${prefix}/include --x-libraries=${prefix}/lib
      }

      Variant: no_x11 {
      depends_lib-delete port:xpm
      configure.args-append --without-x --without-xpm
      }

      livecheck.type regex
      livecheck.url ${homepage}Downloads
      livecheck.regex gd-(\[0-9.\]+)\\.tar

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.