source: trunk/dports/gis/libkml/Portfile @ 113061

Last change on this file since 113061 was 113061, checked in by stromnov@…, 6 years ago

libkml: fix compiling with clang and gcc47+

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 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 113061 2013-11-07 10:08:37Z stromnov@macports.org $
3
4PortSystem              1.0
5
6name                    libkml
7version                 1.2.0
8revision                1
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
23checksums               md5     25d534437f971bf55a945608e39fea79 \
24                        sha1    3fa5acdc2b2185d7f0316d205002b7162f079894 \
25                        rmd160  f73ed3ce47d38c5d45bd04c9498a847b24c572da
26
27# Not sure what needs cURL, but the configure script looks for it
28depends_build-append    port:curl
29
30depends_lib-append      port:expat \
31                        port:zlib
32
33patchfiles              patch-src_kml_base_file_posix.cc.diff
34
35post-patch {
36    # Fix build with clang
37    fs-traverse f ${worksrcpath} {
38        switch [file tail ${f}] {
39            Makefile.in {
40                reinplace "s| -Werror||g" ${f}
41            }
42        }
43    }
44}
45
46# Otherwise SWIG will be used if it's installed
47configure.args-append   --disable-swig
48
49test.run                yes
50test.target             check
51
52post-destroot {
53    set docdir ${destroot}${prefix}/share/doc/${name}
54    xinstall -d ${docdir}
55    xinstall -W ${worksrcpath} -m 644 \
56        AUTHORS \
57        COPYING \
58        ChangeLog \
59        NEWS \
60        README \
61        ${docdir}
62}
Note: See TracBrowser for help on using the repository browser.