Skip to content
Permalink
Browse files

libkml: Update to 1.3.0

This is a fork of Google libkml which is trying to stay compatible with
it. Google has stopped developing libkml and has stopped responding to
bug reports and pull requests for it.

See: google/libkml#4

Closes: https://trac.macports.org/ticket/44499
  • Loading branch information
ryandesign committed Apr 28, 2019
1 parent c6dc4ad commit c46fa44f9b6b31d3f3a7e752847c027f1f84ded3
@@ -66,7 +66,6 @@ if {${name} eq ${subport}} {

subport minizip {
revision 0
conflicts libkml

description Minizip zip file manipulation library
long_description ${description}
@@ -1,80 +1,59 @@
# -*- 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

PortSystem 1.0
PortGroup conflicts_build 1.0
PortGroup cmake 1.1
PortGroup github 1.0

github.setup libkml libkml 1.3.0
revision 0
checksums rmd160 b13c1c8d072098f365ac315cc1588ef3eba4ad1d \
sha256 5ac678ec9b3f737749712206fc199acb27bbdb74ca8656607fc809cbc951a482 \
size 6640063

name libkml
version 1.2.0
revision 4
license BSD
platforms darwin
categories gis
maintainers {ryandesign @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 https://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 rmd160 f73ed3ce47d38c5d45bd04c9498a847b24c572da \
sha256 fae9085e4cd9f0d4ae0d0626be7acf4ad5cbb37991b9d886df29daf72df37cbc \
size 9041987

# 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
long_description ${name} is a library for parsing, generating and \
operating on KML. \
It is an implementation of the OGC KML 2.2 standard.

depends_build-append port:boost

# Only used by tests but detected at configure time.
depends_build-append port:gtest

depends_lib-append port:expat \
port:minizip \
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}
}
}
}
}

conflicts minizip
conflicts_build minizip

use_autoreconf yes
patchfiles DYLD_LIBRARY_PATH.patch

configure.args-append --disable-dependency-tracking \
--disable-silent-rules \
--disable-swig \
--with-boost=${prefix} \
--with-liburiparser=${prefix}
configure.args-append -DBoost_INCLUDE_DIR=${prefix}/include \
-DBUILD_EXAMPLES=OFF \
-DBUILD_TESTING=ON \
-DEXPAT_LIBRARY=${prefix}/lib/libexpat.dylib \
-DMINIZIP_LIBRARY=${prefix}/lib/libminizip.dylib \
-DURIPARSER_LIBRARY=${prefix}/lib/liburiparser.dylib \
-DWITH_JAVA=OFF \
-DWITH_PYTHON=OFF \
-DWITH_SWIG=OFF \
-DZLIB_LIBRARY_RELEASE=${prefix}/lib/libz.dylib

test.run yes
test.target check
test.target test

post-destroot {
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -W ${worksrcpath} -m 0644 \
AUTHORS \
COPYING \
ChangeLog \
NEWS \
README \
LICENSE \
README.md \
${destroot}${docdir}
}
@@ -0,0 +1,12 @@
Set DYLD_LIBRARY_PATH when running tests so that the just-built libraries
can be found and used.
--- cmake/LibKMLHelper.cmake.orig 2015-12-21 11:23:05.000000000 -0600
+++ cmake/LibKMLHelper.cmake 2019-04-28 11:50:32.000000000 -0500
@@ -48,6 +48,7 @@
add_dependencies(test_${TEST_NAME} ${TEST_DEPENDS})
target_link_libraries(test_${TEST_NAME} ${TEST_DEPENDS} ${TEST_LINKS} ${GTEST_LIBRARY})
add_test(${TEST_GROUP}_${TEST_NAME} ${CMAKE_BINARY_DIR}/bin/test_${TEST_NAME})
+ set_tests_properties(${TEST_GROUP}_${TEST_NAME} PROPERTIES ENVIRONMENT DYLD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/lib:$ENV{DYLD_LIBRARY_PATH})
endfunction(build_test)

function(build_example)

This file was deleted.

0 comments on commit c46fa44

Please sign in to comment.
You can’t perform that action at this time.