Libkml version 1.0.1 - How to Download and Install on Mac OS X
Saturday the 21st of November, 2009

    version 1.0.1

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


      The libkml Portfile 58047 2009-09-21 09:36:15Z ryandesign macports.org $

      PortSystem 1.0

      Name: libkml
      Version: 1.0.1
      Maintainers: ryandesign
      license BSD
      Platform: darwin
      Category: gis

      Description: library to parse, generate and operate on KML

      Long Description: ${name} is Google's library for use with applications that want to parse, generate and operate on KML. It is an implementation of the OGC KML 2.2 standard.

      Homepage: http://code.google.com/p/libkml/
      Master Sites: googlecode

      Checksums: md5 624dea8d12caaae762f6a80297995e09 sha1 586059f6a4a9eed71bf6362fe268cf6e1ed5e4cf rmd160 e0b209ed2a9186b7cf727184de5ce04f05e1170d

      # Not sure what needs cURL, but the configure script looks for it
      depends_build-append port:curl

      depends_lib-append port:expat port:zlib

      # Otherwise SWIG will be used if it's installed
      configure.args-append --disable-swig

      test.run yes
      test.target check

      post-destroot {
      set docdir ${destroot}${prefix}/share/doc/${name}
      xinstall -d ${docdir}
      xinstall -W ${worksrcpath} -m 644 AUTHORS COPYING ChangeLog NEWS README ${docdir}
      }

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.