Ignore:
Timestamp:
Jun 20, 2015, 8:46:36 PM (5 years ago)
Author:
stromnov@…
Message:

mapnik: update to version 3.0.0-rc3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/gis/mapnik/Portfile

    r136737 r137820  
    66PortGroup           github 1.0
    77
    8 github.setup        mapnik mapnik 3.0.0-rc2 v
     8github.setup        mapnik mapnik 3.0.0-rc3 v
    99revision            0
    1010categories          gis devel
     
    2929homepage            http://mapnik.org
    3030
    31 checksums           rmd160  608071712cd81745a3a6d0abeb4c052603802eb0 \
    32                     sha256  b5f014ad703031760723ebc86b894bc8cefa552d153ca62964c00915fcda7d8e
     31checksums           rmd160  72d3217db9f3ad48ec998ff592887f502df1121d \
     32                    sha256  73669a9bd4a7ee1630350d95be848d6fd0721ac69a87e6683d648f1bb03b88eb
    3333
    3434depends_build       port:pkgconfig
     
    4646                    port:proj
    4747
    48 set python_suffixes {27 34}
    49 set python_ports {}
    50 foreach s ${python_suffixes} {
    51     lappend python_ports python${s}
    52 }
    53 foreach s ${python_suffixes} {
    54     set p python${s}
    55     set v [string index ${s} 0].[string index ${s} 1]
    56     set i [lsearch -exact ${python_ports} ${p}]
    57     set c [lreplace ${python_ports} ${i} ${i}]
    58     eval [subst {
    59         variant ${p} conflicts ${c} description {Build Python bindings} {
    60             depends_lib-append      port:${p}
    61             configure.args-delete   BINDINGS=none
    62             configure.args-append   BINDINGS=python
    63             configure.args-append   PYTHON=${prefix}/bin/python${v}
    64         }
    65     }]
    66 }
    67 
    68 proc python_branch {} {
    69     global python_suffixes
    70     foreach s ${python_suffixes} {
    71         if {[variant_isset python${s}]} { return ${s} }
    72     }
    73     error "Python support not enabled."
    74 }
    75 
    76 set input_plugins {shape geojson raster csv}
     48set input_plugins {shape csv raster geojson topojson}
    7749
    7850variant cairo description {Enable Cairo support for PDF, PostScript, and SVG} {
     
    8052    configure.args-append   CAIRO=True
    8153    depends_lib-append      path:lib/pkgconfig/cairo.pc:cairo
    82     if {![catch {set s [python_branch]}]} {
    83         set pf Python.framework/Versions/[string index ${s} 0].[string index ${s} 1]
    84         depends_lib-append  port:py${s}-cairo
    85         configure.args-append PKG_CONFIG_PATH=${frameworks_dir}/${pf}/lib/pkgconfig
    86         lappend input_plugins python
    87     }
    8854}
    8955
     
    11278}
    11379
    114 if {![variant_isset python34]} {
    115     default_variants    +python27
    116 }
    117 
    11880universal_variant   no
    11981
    12082configure.pkg_config ${prefix}/bin/pkg-config
    12183
    122 if {[variant_isset python27]} {
    123     configure.python    ${prefix}/bin/python2.7
    124 } elseif {[variant_isset python34]} {
    125     configure.python    ${prefix}/bin/python3.4
    126 } else {
    127     configure.python    /usr/bin/python
    128 }
     84configure.python    /usr/bin/python
    12985
    13086build.cmd           ${configure.python} scons/scons.py
     
    14399                    CAIRO=False \
    144100                    CPP_TESTS=False \
    145                     FRAMEWORK_PYTHON=False \
    146101                    BINDINGS=none \
    147102                    JOBS=${build.jobs} \
     
    156111
    157112pre-configure {
    158     # Hack to check for correct boost variant
    159     if {![catch {set pys [python_branch]}]} {
    160         set boost_py ${prefix}/lib/libboost_python-mt.dylib
    161         if {![file exists ${boost_py}]} {
    162             ui_error "
    163 ****
    164 **** Your current boost does not have Python support. Please reinstall
    165 **** boost before trying ${name} +python${pys} again:
    166 ****
    167 ****     sudo port install boost +python${pys}
    168 ****
    169 "
    170             return -code error "Boost.Python missing"
    171         }
    172         regexp {Python\.framework/Versions/([[:digit:]]\.[[:digit:]])} \
    173           [exec /usr/bin/otool -L ${boost_py}] foo bpv
    174         if {[set bps [string replace ${bpv} 1 1]] != ${pys}} {
    175             if {${bps} ni ${python_suffixes}} {
    176                 ui_error "
    177 ****
    178 **** Your current boost is incompatible with ${name} +python${pys}.
    179 **** Please install the boost variant that matches ${name}:
    180 ****
    181 ****     sudo port install boost +python${pys}
    182 ****
    183 "
    184                 return -code error "Incompatible Boost.Python"
    185             }
    186             ui_error "
    187 ****
    188 **** ${name} +python${pys} is incompatible with your current boost.
    189 **** Please install the ${name} variant that matches boost +python${bps}:
    190 ****
    191 ****     sudo port install ${name} +python${bps}
    192 ****
    193 **** or install the boost variant that matches ${name} +python${pys}:
    194 ****
    195 ****     sudo port install boost +python${pys}
    196 ****
    197 "
    198             return -code error "Incompatible Boost.Python"
    199         }
    200     }
    201 
    202113    # Must be evaluated after the variants
    203114    configure.args-append   INPUT_PLUGINS=[join ${input_plugins} ","]
Note: See TracChangeset for help on using the changeset viewer.