Cairo version 1.8.8 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    version 1.8.8

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


      The cairo Portfile 58519 2009-09-30 06:16:15Z ryandesign macports.org $

      PortSystem 1.0
      PortGroup muniversal 1.0
      PortGroup archcheck 1.0

      Name: cairo
      conflicts cairo-devel
      set my_name cairo
      Version: 1.8.8
      Category: graphics
      Maintainers: ryandesign
      license LGPLv2.1/MPLv1.1
      Homepage: http://cairographics.org/
      Master Sites: ${homepage}releases/
      Platform: darwin macosx
      use_parallel_build yes
      dist_subdir ${my_name}
      distname ${my_name}-${version}

      Description: Cairo is a vector graphics library with cross-device output support.

      Long Description: Cairo is designed to produce identical output on all output media while taking advantage of display hardware acceleration when available (eg. through the X Render Extension).

      Checksums: md5 d3e1a1035ae563812d4dd44a74fb0dd0 sha1 e4b8b219427d1ca3dc95f5f44914dce1ae0c3766 rmd160 78af536ebaaffc608114b626b22fc9a20cff3750

      depends_build port:pkgconfig

      depends_lib path:lib/pkgconfig/pixman-1.pc:libpixman port:xrender port:fontconfig port:freetype port:libpng port:zlib port:expat

      archcheck.files lib/libpixman-1.dylib lib/libXrender.dylib lib/libfontconfig.dylib lib/libfreetype.dylib lib/libpng.dylib lib/libz.dylib lib/libexpat.dylib

      pre-extract {
      if {"darwin" == ${os.platform} && 8 == ${os.major}} {
      set minimum_xcodeversion 2.4.1
      set current_xcodeversion [exec defaults read /Developer/Applications/Xcode.app/Contents/Info CFBundleShortVersionString]
      if {[rpm-vercomp ${current_xcodeversion} ${minimum_xcodeversion}] < 0} {
      ui_error "On Mac OS X ${macosx_version}, ${name} ${version} requires Xcode ${minimum_xcodeversion} or later but you have Xcode ${current_xcodeversion}."
      return -code error "incompatible Xcode version"
      }
      }
      set pixman_minimum_version 0.12.0
      set pixman_installed_version [exec pkg-config pixman-1 --modversion]
      if {[rpm-vercomp ${pixman_installed_version} ${pixman_minimum_version}] < 0} {
      ui_error "${name} ${version} requires libpixman ${pixman_minimum_version} or later but you have libpixman ${pixman_installed_version}."
      return -code error "incompatible libpixman version"
      }
      }

      configure.args --disable-glitz --disable-quartz --disable-quartz-font --disable-quartz-image --disable-xcb --enable-ft --enable-pdf --enable-png --enable-ps --enable-svg --enable-xlib --enable-xlib-xrender --with-x --x-include=${prefix}/include --x-lib=${prefix}/lib

      Variant: glitz conflicts no_x11 description {Add glitz graphics interface} {
      depends_lib-append port:glitz
      archcheck.files-append lib/libglitz.dylib
      configure.args-delete --disable-glitz
      configure.args-append --enable-glitz
      }

      platform macosx {}
      Variant: quartz requires macosx {
      configure.args-delete --disable-quartz --disable-quartz-font --disable-quartz-image
      configure.args-append --enable-quartz --enable-quartz-font --enable-quartz-image
      }

      Variant: no_x11 conflicts glitz x11_xcb {
      depends_lib-delete port:xrender
      archcheck.files-delete lib/libXrender.dylib
      configure.args-delete --enable-xlib --enable-xlib-xrender --with-x
      configure.args-append --disable-xlib --disable-xlib-xrender --without-x
      }

      Variant: x11_xcb conflicts no_x11 description {Use libxcb for X11 protocol communication} {
      configure.args-delete --disable-xcb
      configure.args-append --enable-xcb
      depends_lib-append port:xorg-xcb-util
      archcheck.files-append lib/libxcb-render-util.dylib
      }

      test.run yes
      test.target check

      livecheck.type regex
      livecheck.url ${homepage}news/
      livecheck.regex ${my_name}-(\[0-9\]+\\.\[0-9\]*\[02468\]\\.\[0-9\]+)

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.