# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id: Portfile 136082 2015-05-11 18:22:15Z ryandesign@macports.org $ PortSystem 1.0 name libkml version 1.2.0 revision 2 license BSD platforms darwin categories gis maintainers ryandesign openmaintainer 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 # Development might move to one of these forks: # https://github.com/google/libkml # https://github.com/CPB9/libkml # https://github.com/libkml/libkml checksums md5 25d534437f971bf55a945608e39fea79 \ sha1 3fa5acdc2b2185d7f0316d205002b7162f079894 \ rmd160 f73ed3ce47d38c5d45bd04c9498a847b24c572da # If curl is found, the networking examples will be built. There is no # configure flag to turn this off, but the examples are not installed. #depends_build-append port:curl depends_build-append port:boost depends_lib-append port:expat \ port:uriparser \ port:zlib patchfiles patch-configure.ac.diff \ patch-support-external-liburiparse-and-boost.diff post-patch { # Fix build with clang fs-traverse f ${worksrcpath} { switch [file tail ${f}] { Makefile.am { reinplace "s| -Werror||g" ${f} } } } } use_autoreconf yes configure.args-append --disable-dependency-tracking \ --disable-silent-rules \ --disable-swig \ --with-boost=${prefix} \ --with-liburiparser=${prefix} test.run yes test.target check post-destroot { set docdir ${prefix}/share/doc/${subport} xinstall -d ${destroot}${docdir} xinstall -W ${worksrcpath} -m 644 \ AUTHORS \ COPYING \ ChangeLog \ NEWS \ README \ ${destroot}${docdir} }