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

    cairo-devel  most recent diff


    version 1.9.4

      View the most recent changes for the cairo-devel port at: cairo-devel.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for cairo-devel.
      The raw portfile for cairo-devel 1.9.4 is located here:
      http://cairo-devel.darwinports.com/dports/graphics/cairo-devel/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-devel


      The cairo-devel Portfile 59707 2009-10-20 20:07:23Z ryandesign macports.org $

      PortSystem 1.0
      PortGroup muniversal 1.0
      PortGroup archcheck 1.0

      Name: cairo-devel
      conflicts cairo
      set my_name cairo
      Version: 1.9.4
      Category: graphics
      Maintainers: ryandesign
      license LGPLv2.1/MPLv1.1
      Homepage: http://cairographics.org/
      Master Sites: ${homepage}snapshots/
      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 872f460cda044c36c2b55e6307a8cc29 sha1 144d80cf01758a0f048b149b4c54aa792e401ae3 rmd160 8fe023f48661116ea869c9d2c342ccde3ecf89aa

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.