source: trunk/dports/gis/libkml/Portfile

Last change on this file was 136082, checked in by ryandesign@…, 2 years ago

libkml: build with MacPorts boost, because although libkml includes its own internal copy of boost, there doesn't seem to be a good way to tell it to use the internal copy if the MacPorts version is installed

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# -*- 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
2# $Id: Portfile 136082 2015-05-11 18:22:15Z ryandesign@macports.org $
3
4PortSystem              1.0
5
6name                    libkml
7version                 1.2.0
8revision                2
9license                 BSD
10platforms               darwin
11categories              gis
12maintainers             ryandesign openmaintainer
13
14description             library to parse, generate and operate on KML
15
16long_description        ${name} is Google's library for use with applications \
17                        that want to parse, generate and operate on KML. It \
18                        is an implementation of the OGC KML 2.2 standard.
19
20homepage                http://code.google.com/p/libkml/
21master_sites            googlecode
22
23# Development might move to one of these forks:
24# https://github.com/google/libkml
25# https://github.com/CPB9/libkml
26# https://github.com/libkml/libkml
27
28checksums               md5     25d534437f971bf55a945608e39fea79 \
29                        sha1    3fa5acdc2b2185d7f0316d205002b7162f079894 \
30                        rmd160  f73ed3ce47d38c5d45bd04c9498a847b24c572da
31
32# If curl is found, the networking examples will be built. There is no
33# configure flag to turn this off, but the examples are not installed.
34#depends_build-append    port:curl
35
36depends_build-append    port:boost
37
38depends_lib-append      port:expat \
39                        port:uriparser \
40                        port:zlib
41
42patchfiles              patch-configure.ac.diff \
43                        patch-support-external-liburiparse-and-boost.diff
44
45post-patch {
46    # Fix build with clang
47    fs-traverse f ${worksrcpath} {
48        switch [file tail ${f}] {
49            Makefile.am {
50                reinplace "s| -Werror||g" ${f}
51            }
52        }
53    }
54}
55
56use_autoreconf          yes
57
58configure.args-append   --disable-dependency-tracking \
59                        --disable-silent-rules \
60                        --disable-swig \
61                        --with-boost=${prefix} \
62                        --with-liburiparser=${prefix}
63
64test.run                yes
65test.target             check
66
67post-destroot {
68    set docdir ${prefix}/share/doc/${subport}
69    xinstall -d ${destroot}${docdir}
70    xinstall -W ${worksrcpath} -m 644 \
71        AUTHORS \
72        COPYING \
73        ChangeLog \
74        NEWS \
75        README \
76        ${destroot}${docdir}
77}
Note: See TracBrowser for help on using the repository browser.