<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[136039] trunk/dports</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/136039">136039</a></dd>
<dt>Author</dt> <dd>ryandesign@macports.org</dd>
<dt>Date</dt> <dd>2015-05-10 10:07:04 -0700 (Sun, 10 May 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>libkml: use the liburiparser installed by the uriparser port rather than installing a conflicting copy (#41271)</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportsdeveluriparserPortfile">trunk/dports/devel/uriparser/Portfile</a></li>
<li><a href="#trunkdportsgislibkmlPortfile">trunk/dports/gis/libkml/Portfile</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkdportsgislibkmlfilespatchconfigureacdiff">trunk/dports/gis/libkml/files/patch-configure.ac.diff</a></li>
<li><a href="#trunkdportsgislibkmlfilespatchsupportexternalliburiparseandboostdiff">trunk/dports/gis/libkml/files/patch-support-external-liburiparse-and-boost.diff</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkdportsgislibkmlfilespatchsrc_kml_base_file_posixccdiff">trunk/dports/gis/libkml/files/patch-src_kml_base_file_posix.cc.diff</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportsdeveluriparserPortfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/devel/uriparser/Portfile (136038 => 136039)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/devel/uriparser/Portfile        2015-05-10 17:02:28 UTC (rev 136038)
+++ trunk/dports/devel/uriparser/Portfile        2015-05-10 17:07:04 UTC (rev 136039)
</span><span class="lines">@@ -1,3 +1,4 @@
</span><ins>+# -*- 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
</ins><span class="cx"> # $Id$
</span><span class="cx"> 
</span><span class="cx"> PortSystem 1.0
</span><span class="lines">@@ -3,6 +4,6 @@
</span><span class="cx"> 
</span><span class="cx"> name            uriparser
</span><del>-conflicts       libkml
</del><span class="cx"> version         0.8.2
</span><ins>+revision        1
</ins><span class="cx"> categories      devel www
</span><span class="cx"> maintainers     ryandesign openmaintainer
</span><span class="lines">@@ -29,4 +30,18 @@
</span><span class="cx"> test.run        yes
</span><span class="cx"> test.target     check
</span><span class="cx"> 
</span><ins>+# Needed by libkml's build system.
+destroot.delete_la_files no
+
+pre-activate {
+    # libkml @1.2.0_1 and earlier installed a copy of liburiparser.dylib.
+    if {![catch {set installed [lindex [registry_active libkml] 0]}]} {
+        set _version [lindex $installed 1]
+        set _revision [lindex $installed 2]
+        if {[vercmp $_version 1.2.0] &lt; 0 || ([vercmp $_version 1.2.0] == 0 &amp;&amp; $_revision &lt;= 1)} {
+            registry_deactivate_composite libkml &quot;&quot; [list ports_nodepcheck 1]
+        }
+    }
+}
+
</ins><span class="cx"> livecheck.regex /${name}-(\[0-9.\]+)${extract.suffix}
</span></span></pre></div>
<a id="trunkdportsgislibkmlPortfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/gis/libkml/Portfile (136038 => 136039)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/gis/libkml/Portfile        2015-05-10 17:02:28 UTC (rev 136038)
+++ trunk/dports/gis/libkml/Portfile        2015-05-10 17:07:04 UTC (rev 136039)
</span><span class="lines">@@ -4,9 +4,8 @@
</span><span class="cx"> PortSystem              1.0
</span><span class="cx"> 
</span><span class="cx"> name                    libkml
</span><del>-conflicts               uriparser
</del><span class="cx"> version                 1.2.0
</span><del>-revision                1
</del><ins>+revision                2
</ins><span class="cx"> license                 BSD
</span><span class="cx"> platforms               darwin
</span><span class="cx"> categories              gis
</span><span class="lines">@@ -21,43 +20,56 @@
</span><span class="cx"> homepage                http://code.google.com/p/libkml/
</span><span class="cx"> master_sites            googlecode
</span><span class="cx"> 
</span><ins>+# Development might move to one of these forks:
+# https://github.com/google/libkml
+# https://github.com/CPB9/libkml
+# https://github.com/libkml/libkml
+
</ins><span class="cx"> checksums               md5     25d534437f971bf55a945608e39fea79 \
</span><span class="cx">                         sha1    3fa5acdc2b2185d7f0316d205002b7162f079894 \
</span><span class="cx">                         rmd160  f73ed3ce47d38c5d45bd04c9498a847b24c572da
</span><span class="cx"> 
</span><del>-# Not sure what needs cURL, but the configure script looks for it
-depends_build-append    port:curl
</del><ins>+# 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
</ins><span class="cx"> 
</span><span class="cx"> depends_lib-append      port:expat \
</span><ins>+                        port:uriparser \
</ins><span class="cx">                         port:zlib
</span><span class="cx"> 
</span><del>-patchfiles              patch-src_kml_base_file_posix.cc.diff
</del><ins>+patchfiles              patch-configure.ac.diff \
+                        patch-support-external-liburiparse-and-boost.diff
</ins><span class="cx"> 
</span><span class="cx"> post-patch {
</span><span class="cx">     # Fix build with clang
</span><span class="cx">     fs-traverse f ${worksrcpath} {
</span><span class="cx">         switch [file tail ${f}] {
</span><del>-            Makefile.in {
</del><ins>+            Makefile.am {
</ins><span class="cx">                 reinplace &quot;s| -Werror||g&quot; ${f}
</span><span class="cx">             }
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-# Otherwise SWIG will be used if it's installed
-configure.args-append   --disable-swig
</del><ins>+use_autoreconf          yes
</ins><span class="cx"> 
</span><ins>+configure.args-append   --disable-dependency-tracking \
+                        --disable-silent-rules \
+                        --disable-swig \
+                        --with-liburiparser=${prefix} \
+                        --without-boost
+
</ins><span class="cx"> test.run                yes
</span><span class="cx"> test.target             check
</span><span class="cx"> 
</span><span class="cx"> post-destroot {
</span><del>-    set docdir ${destroot}${prefix}/share/doc/${name}
-    xinstall -d ${docdir}
</del><ins>+    set docdir ${prefix}/share/doc/${subport}
+    xinstall -d ${destroot}${docdir}
</ins><span class="cx">     xinstall -W ${worksrcpath} -m 644 \
</span><span class="cx">         AUTHORS \
</span><span class="cx">         COPYING \
</span><span class="cx">         ChangeLog \
</span><span class="cx">         NEWS \
</span><span class="cx">         README \
</span><del>-        ${docdir}
</del><ins>+        ${destroot}${docdir}
</ins><span class="cx"> }
</span></span></pre></div>
<a id="trunkdportsgislibkmlfilespatchconfigureacdiff"></a>
<div class="addfile"><h4>Added: trunk/dports/gis/libkml/files/patch-configure.ac.diff (0 => 136039)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/gis/libkml/files/patch-configure.ac.diff                                (rev 0)
+++ trunk/dports/gis/libkml/files/patch-configure.ac.diff        2015-05-10 17:07:04 UTC (rev 136039)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+Fix autoreconf with autoconf 1.12+ by adding AM_PROG_AR
+https://code.google.com/p/libkml/issues/detail?id=186
+Fix autoreconf with autoconf 1.14+ by adding subdir-objects
+https://code.google.com/p/libkml/issues/detail?id=190
+--- configure.ac.orig        2010-01-13 18:16:35.000000000 -0600
++++ configure.ac        2015-05-10 08:16:51.000000000 -0500
+@@ -6,7 +6,8 @@
+ AC_INIT(libkml, 1.2.0, http://code.google.com/p/libkml/issues)
+ AC_CONFIG_SRCDIR(README)
+ AC_CONFIG_AUX_DIR(config)
+-AM_INIT_AUTOMAKE(-Wall -Werror)
++AM_INIT_AUTOMAKE(-Wall -Werror subdir-objects)
++m4_ifdef([AM_PROG_AR], [AM_PROG_AR])

+ AC_PROG_CPP
+ AC_PROG_CXX
</ins></span></pre></div>
<a id="trunkdportsgislibkmlfilespatchsrc_kml_base_file_posixccdiff"></a>
<div class="delfile"><h4>Deleted: trunk/dports/gis/libkml/files/patch-src_kml_base_file_posix.cc.diff (136038 => 136039)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/gis/libkml/files/patch-src_kml_base_file_posix.cc.diff        2015-05-10 17:02:28 UTC (rev 136038)
+++ trunk/dports/gis/libkml/files/patch-src_kml_base_file_posix.cc.diff        2015-05-10 17:07:04 UTC (rev 136039)
</span><span class="lines">@@ -1,10 +0,0 @@
</span><del>---- src/kml/base/file_posix.cc.orig        2013-11-07 13:58:08.000000000 +0400
-+++ src/kml/base/file_posix.cc        2013-11-07 13:58:19.000000000 +0400
-@@ -29,6 +29,7 @@
- #include &quot;kml/base/file.h&quot;
- #include &lt;stdlib.h&gt;
- #include &lt;string.h&gt;
-+#include &lt;unistd.h&gt;
- #include &lt;sys/types.h&gt;
- #include &lt;sys/stat.h&gt;

</del></span></pre></div>
<a id="trunkdportsgislibkmlfilespatchsupportexternalliburiparseandboostdiff"></a>
<div class="addfile"><h4>Added: trunk/dports/gis/libkml/files/patch-support-external-liburiparse-and-boost.diff (0 => 136039)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/gis/libkml/files/patch-support-external-liburiparse-and-boost.diff                                (rev 0)
+++ trunk/dports/gis/libkml/files/patch-support-external-liburiparse-and-boost.diff        2015-05-10 17:07:04 UTC (rev 136039)
</span><span class="lines">@@ -0,0 +1,319 @@
</span><ins>+Support external liburiparse and boost
+https://code.google.com/p/libkml/issues/detail?id=50
+--- configure.ac.orig
++++ configure.ac
+@@ -20,6 +20,8 @@ AC_FUNC_STRTOD
+ AC_HEADER_STDBOOL
+ AC_TYPE_SIZE_T

++m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])dnl backward compat
++
+ dnl Let Makefile know if we are GCC.
+ AM_CONDITIONAL(GCC, test &quot;$GCC&quot; = yes)

+@@ -68,6 +70,49 @@ AC_ARG_WITH(python-lib-dir,
+             [PYTHON_LIB_DIR=$withval],)
+ AC_SUBST(PYTHON_LIB_DIR)

++dnl use libs from system or our third_party?
++dnl CPPFLAGS_saved=&quot;$CPPFLAGS&quot;
++internal_boost_version=&quot;_1_34_1&quot;
++AC_LANG_PUSH(C++)
++AC_ARG_WITH([boost],
++            AC_HELP_STRING([--with-boost=DIR], [look in DIR for boost]),
++            [BOOST_INCS=$withval/include
++             test -d ${BOOST_INCS} \
++                &amp;&amp; AS_VAR_APPEND([CPPFLAGS],[&quot; -I$BOOST_INCS&quot;])
++             AC_CHECK_HEADERS([boost/shared_ptr.hpp],,
++               [AC_MSG_ERROR([Required $ac_header not found])])
++            ],
++            [AC_CHECK_HEADERS([boost/shared_ptr.hpp],,
++               [AC_MSG_WARN([Using third_party/boost$internal_boost_version])
++                BOOST_INCS=&quot;\$(top_srcdir)/third_party/boost$internal_boost_version&quot;
++dnl                AS_VAR_APPEND([CPPFLAGS],[&quot; -I\$(top_srcdir)/$BOOST_INCS&quot;])
++               ])
++            ])
++AC_LANG_POP
++dnl CPPFLAGS=&quot;$CPPFLAGS_saved&quot;
++AC_SUBST(BOOST_INCS)
++AM_CONDITIONAL([INTERNAL_BOOST], [test &quot;x$BOOST_INCS&quot; = &quot;xthird_party/boost$internal_boost_version&quot;])
++
++dnl FIXME: Allow for using distro's zlib
++AM_CONDITIONAL([INTERNAL_ZLIB], [true])
++
++internal_uriparser_version=&quot;-0.7.5&quot;
++CPPFLAGS_saved=&quot;$CPPFLAGS&quot;
++AC_ARG_WITH([liburiparser],
++            AC_HELP_STRING([--with-liburiparser=DIR], [look in DIR for liburiparser]),
++            [LIBURIPARSER_DIR=$withval
++             test -d ${LIBURIPARSER_DIR}/include \
++                &amp;&amp; AS_VAR_APPEND([CPPFLAGS],[&quot; -I$LIBURIPARSER_DIR/include&quot;])
++             AC_CHECK_HEADERS([uriparser/Uri.h],,
++               [AC_MSG_ERROR([Required $ac_header not found])])
++            ],
++            [AC_CHECK_HEADERS([uriparser/Uri.h],,
++               [AC_MSG_WARN([Using third_party/uriparser$internal_uriparser_version])
++                LIBURIPARSER_DIR=&quot;third_party/uriparser$internal_uriparser_version&quot;
++               ])
++            ])
++AC_SUBST(LIBURIPARSER_DIR)
++AM_CONDITIONAL([INTERNAL_LIBURIPARSER], [test &quot;x$LIBURIPARSER_DIR&quot; = &quot;xthird_party/uriparser$internal_uriparser_version&quot;])

+ AC_CHECK_HEADERS(expat.h, [expat_h_found=&quot;yes&quot;], [expat_h_found=&quot;no&quot;])
+ if test $expat_h_found = &quot;no&quot;
+@@ -78,7 +123,10 @@ AC_CHECK_LIB(expat, XML_ParserCreate, [],
+         AC_MSG_ERROR(&quot;Expat library not found. Use configure --help to see how to specify the search path&quot;))

+ AC_CHECK_HEADERS([float.h limits.h stdlib.h string.h])
+-AC_CHECK_FUNCS([floor memset strstr])
++dnl saved_LIBS=$LIBS
++dnl AC_SEARCH_LIBS([floor], [m])
++AC_CHECK_LIB([m], [floor])
++AC_CHECK_FUNCS([memset strstr])

+ dnl If SWIG is available we will try to generate bindings.
+ AC_ARG_ENABLE(swig,
+--- examples/engine/Makefile.am.orig
++++ examples/engine/Makefile.am
+@@ -1,5 +1,5 @@
+ AM_CPPFLAGS = -I$(top_srcdir)/src \
+-              -I$(top_srcdir)/third_party/boost_1_34_1
++              -I@BOOST_INCS@

+ if GCC
+ AM_CXXFLAGS = -Wall -Werror -ansi -pedantic -fno-rtti
+--- examples/gpx/Makefile.am.orig
++++ examples/gpx/Makefile.am
+@@ -1,5 +1,5 @@
+ AM_CPPFLAGS = -I$(top_srcdir)/src \
+-              -I$(top_srcdir)/third_party/boost_1_34_1
++              -I@BOOST_INCS@

+ if GCC
+ AM_CXXFLAGS = -Wall -Werror -ansi -pedantic -fno-rtti
+--- examples/gx/Makefile.am.orig
++++ examples/gx/Makefile.am
+@@ -1,5 +1,5 @@
+ AM_CPPFLAGS = -I$(top_srcdir)/src \
+-              -I$(top_srcdir)/third_party/boost_1_34_1
++              -I@BOOST_INCS@

+ if GCC
+ AM_CXXFLAGS = -Wall -Werror -ansi -pedantic -fno-rtti
+--- examples/hellonet/Makefile.am.orig
++++ examples/hellonet/Makefile.am
+@@ -1,7 +1,7 @@
+ if HAVE_CURL
+ AM_CPPFLAGS = -I$(top_srcdir)/src \
+               -I$(top_srcdir)/examples/hellonet \
+-              -I$(top_srcdir)/third_party/boost_1_34_1
++              -I@BOOST_INCS@

+ if GCC
+ AM_CXXFLAGS = -Wall -Werror -ansi -pedantic -fno-rtti
+--- examples/helloworld/Makefile.am.orig
++++ examples/helloworld/Makefile.am
+@@ -1,6 +1,6 @@
+ AM_CPPFLAGS = -I$(top_srcdir)/src \
+               -I$(top_srcdir)/examples/helloworld \
+-              -I$(top_srcdir)/third_party/boost_1_34_1
++              -I@BOOST_INCS@


+ if GCC
+--- examples/regionator/Makefile.am.orig
++++ examples/regionator/Makefile.am
+@@ -1,5 +1,5 @@
+ AM_CPPFLAGS = -I$(top_srcdir)/src \
+-              -I$(top_srcdir)/third_party/boost_1_34_1 \
++              -I@BOOST_INCS@ \
+               -I$(top_srcdir)/third_party/zlib-1.2.3/contrib

+ if GCC
+--- examples/xsd/Makefile.am.orig
++++ examples/xsd/Makefile.am
+@@ -1,6 +1,6 @@
+ AM_CPPFLAGS = -I$(top_srcdir)/src \
+               -I$(top_srcdir)/examples/xsd \
+-              -I$(top_srcdir)/third_party/boost_1_34_1
++              -I@BOOST_INCS@

+ if GCC
+ AM_CXXFLAGS = -Wall -Werror -ansi -pedantic -fno-rtti
+--- src/kml/base/Makefile.am.orig
++++ src/kml/base/Makefile.am
+@@ -1,8 +1,6 @@
+ AM_CPPFLAGS = -I$(top_srcdir)/src \
+-              -I$(top_srcdir)/third_party/boost_1_34_1 \
+-              -I$(top_srcdir)/third_party/googletest-r108/include \
+-              -I$(top_srcdir)/third_party/uriparser-0.7.5/include \
+-              -I$(top_srcdir)/third_party/zlib-1.2.3/contrib
++              -I@BOOST_INCS@ \
++              -I$(top_srcdir)/third_party/googletest-r108/include

+ if GCC
+ AM_CXXFLAGS = -Wall -Wextra -Wno-unused-parameter -Werror -ansi -pedantic -fno-rtti
+@@ -30,9 +28,19 @@ libkmlbase_la_SOURCES = \
+         xml_namespaces.cc \
+         zip_file.cc

+-libkmlbase_la_LIBADD = \
+-        $(top_builddir)/third_party/libminizip.la \
+-        $(top_builddir)/third_party/liburiparser.la
++libkmlbase_la_LIBADD =
++if INTERNAL_ZLIB
++libkmlbase_la_LIBADD += \
++        $(top_builddir)/third_party/libminizip.la
++AM_CPPFLAGS += -I$(top_srcdir)/third_party/zlib-1.2.3/contrib
++endif
++if INTERNAL_LIBURIPARSER
++AM_CPPFLAGS += -I$(top_srcdir)/@LIBURIPARSER_DIR@/include
++liburiparser_la_file = $(top_builddir)/third_party/liburiparser.la
++else
++liburiparser_la_file = $(LIBURIPARSER_DIR)/lib/liburiparser.la
++endif
++libkmlbase_la_LIBADD += $(liburiparser_la_file)

+ # These header files will be installed in $(includedir)/kml/base
+ libkmlbaseincludedir = $(includedir)/kml/base
+@@ -138,7 +146,6 @@ math_util_test_LDADD = libkmlbase.la \
+ net_cache_test_SOURCES = net_cache_test.cc
+ net_cache_test_CXXFLAGS = -DDATADIR=\&quot;$(DATA_DIR)\&quot; $(AM_TEST_CXXFLAGS)
+ net_cache_test_LDADD = libkmlbase.la \
+-        $(top_builddir)/third_party/liburiparser.la \
+         $(top_builddir)/third_party/libgtest.la

+ referent_test_SOURCES = referent_test.cc
+@@ -164,7 +171,6 @@ time_util_test_LDADD= libkmlbase.la \
+ uri_parser_test_SOURCES = uri_parser_test.cc
+ uri_parser_test_CXXFLAGS = -DDATADIR=\&quot;$(DATA_DIR)\&quot; $(AM_TEST_CXXFLAGS)
+ uri_parser_test_LDADD= libkmlbase.la \
+-        $(top_builddir)/third_party/liburiparser.la \
+         $(top_builddir)/third_party/libgtest.la

+ util_test_SOURCES = util_test.cc
+--- src/kml/base/file_posix.cc.orig
++++ src/kml/base/file_posix.cc
+@@ -25,8 +25,10 @@

+ // The file contains the implementation of the File methods specific to
+ // POSIX platforms.
++// err.. Ever heard about boost::filesystem?

+ #include &quot;kml/base/file.h&quot;
++#include &lt;unistd.h&gt; /* unlink() */
+ #include &lt;stdlib.h&gt;
+ #include &lt;string.h&gt;
+ #include &lt;sys/types.h&gt;
+--- src/kml/convenience/Makefile.am.orig
++++ src/kml/convenience/Makefile.am
+@@ -1,5 +1,5 @@
+ AM_CPPFLAGS = -I$(top_srcdir)/src \
+-              -I$(top_srcdir)/third_party/boost_1_34_1 \
++              -I@BOOST_INCS@ \
+               -I$(top_srcdir)/third_party/googletest-r108/include

+ if GCC
+--- src/kml/dom/Makefile.am.orig
++++ src/kml/dom/Makefile.am
+@@ -1,5 +1,5 @@
+ AM_CPPFLAGS= -I$(top_srcdir)/src \
+-             -I$(top_srcdir)/third_party/boost_1_34_1 \
++             -I@BOOST_INCS@ \
+              -I$(top_srcdir)/third_party/googletest-r108/include

+ if GCC
+--- src/kml/engine/Makefile.am.orig
++++ src/kml/engine/Makefile.am
+@@ -1,5 +1,5 @@
+ AM_CPPFLAGS= -I$(top_srcdir)/src \
+-             -I$(top_srcdir)/third_party/boost_1_34_1 \
++             -I@BOOST_INCS@ \
+              -I$(top_srcdir)/third_party/googletest-r108/include

+ if GCC
+--- src/kml/regionator/Makefile.am.orig
++++ src/kml/regionator/Makefile.am
+@@ -1,5 +1,5 @@
+ AM_CPPFLAGS= -I$(top_srcdir)/src \
+-             -I$(top_srcdir)/third_party/boost_1_34_1 \
++             -I@BOOST_INCS@ \
+              -I$(top_srcdir)/third_party/googletest-r108/include


+--- src/kml/xsd/Makefile.am.orig
++++ src/kml/xsd/Makefile.am
+@@ -1,5 +1,5 @@
+ AM_CPPFLAGS = -I$(top_srcdir)/src \
+-              -I$(top_srcdir)/third_party/boost_1_34_1 \
++              -I@BOOST_INCS@ \
+               -I$(top_srcdir)/third_party/googletest-r108/include

+ if GCC
+--- src/swig/Makefile.am.orig
++++ src/swig/Makefile.am
+@@ -1,7 +1,7 @@
+ SUBDIRS = java python

+ AM_CPPFLAGS = -I$(top_srcdir)/src \
+-              -I$(top_srcdir)/third_party/boost_1_34_1 \
++              -I@BOOST_INCS@ \
+               -I$(top_srcdir)/third_party/uriparser-0.7.5/include

+ COMMONLIBS = $(top_builddir)/src/kml/engine/libkmlengine.la \
+--- third_party/Makefile.am.orig
++++ third_party/Makefile.am
+@@ -1,19 +1,26 @@
+ uriparser = uriparser-0.7.5

+-AM_CPPFLAGS = -I$(top_srcdir)/third_party/zlib-1.2.3/contrib \
+-              -I$(top_srcdir)/third_party/$(uriparser)/include \
+-              -I$(top_srcdir)/third_party/googletest-r108 \
+-              -I$(top_srcdir)/third_party/googletest-r108/include
++AM_CPPFLAGS =

+-lib_LTLIBRARIES = libminizip.la liburiparser.la
++lib_LTLIBRARIES =
+ noinst_LTLIBRARIES = libgtest.la

++if INTERNAL_ZLIB
++AM_CPPFLAGS += -I$(top_srcdir)/third_party/zlib-1.2.3/contrib
++lib_LTLIBRARIES += libminizip.la
++
+ libminizip_la_SOURCES = \
+         zlib-1.2.3/contrib/minizip/unzip.c \
+         zlib-1.2.3/contrib/minizip/ioapi.c \
+         zlib-1.2.3/contrib/minizip/iomem_simple.c \
+         zlib-1.2.3/contrib/minizip/zip.c
+ libminizip_la_LDFLAGS = -lz
++endif
++
++
++if INTERNAL_LIBURIPARSER
++AM_CPPFLAGS += -I$(top_srcdir)/third_party/$(uriparser)/include
++lib_LTLIBRARIES += liburiparser.la

+ liburiparser_la_SOURCES = \
+         $(uriparser)/lib/UriCommon.c \
+@@ -35,7 +42,10 @@ liburiparser_la_SOURCES = \
+         $(uriparser)/lib/UriResolve.c \
+         $(uriparser)/lib/UriShorten.c
+ liburiparser_la_LDFLAGS = -version-info 1:5:0
++endif

++
++if INTERNAL_BOOST
+ boost_root = boost_1_34_1
+ boost = $(boost_root)/boost
+ boostinc = $(includedir)/kml/third_party/$(boost)
+@@ -76,6 +86,10 @@ libboostconfigplatformincludedir = $(boostinc)/config/platform
+ libboostconfigplatforminclude_HEADERS = \
+         $(boost)/config/platform/linux.hpp \
+         $(boost)/config/platform/macos.hpp
++endif
++
++AM_CPPFLAGS += -I$(top_srcdir)/third_party/googletest-r108 \
++              -I$(top_srcdir)/third_party/googletest-r108/include

+ googletest = googletest-r108
+ libgtest_la_SOURCES = \
</ins></span></pre>
</div>
</div>

</body>
</html>