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

Last change on this file since 95685 was 95685, checked in by ryandesign@…, 7 years ago

libkml: fix build with clang by removing "-Werror" from Makefiles (#33104)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 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 95685 2012-07-19 09:55:25Z ryandesign@macports.org $
3
4PortSystem              1.0
5
6name                    libkml
7version                 1.2.0
8maintainers             ryandesign
9license                 BSD
10platforms               darwin
11categories              gis
12
13description             library to parse, generate and operate on KML
14
15long_description        ${name} is Google's library for use with applications \
16                        that want to parse, generate and operate on KML. It \
17                        is an implementation of the OGC KML 2.2 standard.
18
19homepage                http://code.google.com/p/libkml/
20master_sites            googlecode
21
22checksums               md5     25d534437f971bf55a945608e39fea79 \
23                        sha1    3fa5acdc2b2185d7f0316d205002b7162f079894 \
24                        rmd160  f73ed3ce47d38c5d45bd04c9498a847b24c572da
25
26# Not sure what needs cURL, but the configure script looks for it
27depends_build-append    port:curl
28
29depends_lib-append      port:expat \
30                        port:zlib
31
32post-patch {
33    # Fix build with clang
34    fs-traverse f ${worksrcpath} {
35        switch [file tail ${f}] {
36            Makefile.in {
37                reinplace "s| -Werror||g" ${f}
38            }
39        }
40    }
41}
42
43# Otherwise SWIG will be used if it's installed
44configure.args-append   --disable-swig
45
46test.run                yes
47test.target             check
48
49post-destroot {
50    set docdir ${destroot}${prefix}/share/doc/${name}
51    xinstall -d ${docdir}
52    xinstall -W ${worksrcpath} -m 644 \
53        AUTHORS \
54        COPYING \
55        ChangeLog \
56        NEWS \
57        README \
58        ${docdir}
59}
Note: See TracBrowser for help on using the repository browser.