Ticket #49714: Portfile.diff

File Portfile.diff, 2.7 KB (added by florian@…, 8 years ago)

Portfile patch

  • dports/science/gmt5/Portfile

     
    55PortGroup           cmake 1.0
    66
    77name                gmt5
    8 version             5.1.2
    9 revision            1
     8version             5.2.1
    109categories          science
    1110platforms           darwin
    1211maintainers         eprofs.de:florian \
     
    2827                    ftp://gd.tuwien.ac.at/pub/gmt           \
    2928                    ftp://ftp.scc.u-tokai.ac.jp/pub/gmt     \
    3029                    ftp://gmt.mirror.ac.za/pub/gmt
    31 use_bzip2           yes
     30use_xz              yes
    3231distname            gmt-${version}
    3332distfiles           ${distname}-src${extract.suffix}
    34 checksums           rmd160  85a12fed90b1019333e7530b62e147def30752a5 \
    35                     sha256  59d0cca9dda5301110e47b18a401f35584e37c409e482b2bdac14f847e570da9
     33checksums           rmd160  f6ae3a2c0e5e0d6d56bfee38de005fb12a032bf1 \
     34                    sha256  01c199525bdfa78ad388959e739f34eca8effb8d82475c8786a066e04b5e19af
    3635
    3736depends_lib         port:dcw-gmt \
    3837                    port:ghostscript \
     
    5049if {[variant_isset debug]} {
    5150    configure.optflags      -O0
    5251} else {
    53     configure.optflags      -O3
     52    # optflags deliberately unset:
     53    configure.optflags
     54    # Set CMAKE_BUILD_TYPE=RelWithDebInfo to get reliable backtraces:
     55    configure.args-delete   -DCMAKE_BUILD_TYPE=Release
     56    configure.args-append   -DCMAKE_BUILD_TYPE=RelWithDebInfo
    5457}
    5558
    5659configure.cflags-append     -fstrict-aliasing
     
    6063                            -DFFTW3_ROOT=off \
    6164                            -DGDAL_ROOT=off \
    6265                            -DPCRE_ROOT=off \
     66                            -DGMT_OPENMP=off \
    6367                            -DGMT_INSTALL_MODULE_LINKS=off \
    6468                            -DGMT_INSTALL_TRADITIONAL_FOLDERNAMES=off \
    6569                            -DLICENSE_RESTRICTED=GPL
     
    8286    configure.args-append   -DPCRE_ROOT=${prefix}
    8387}
    8488
     89variant openmp description {Enable experimental OpenMP parallel acceleration} {
     90    configure.args-delete   -DGMT_OPENMP=off
     91    configure.args-append   -DGMT_OPENMP=on
     92
     93    # FIXME: llvm-gcc42 is broken, https://trac.macports.org/ticket/40713
     94    # Only clang really needs to be blacklisted
     95    compiler.blacklist *gcc-4.2 *clang*
     96    compiler.fallback macports-gcc-5 macports-gcc-4.9 macports-gcc-4.8 macports-gcc-4.7 macports-gcc-4.6 macports-gcc-4.5 macports-gcc-4.4 macports-gcc-4.3
     97
     98    # Needed for compiling with GCC and Accelerate Framework on OSX:
     99    configure.cflags-append -flax-vector-conversions
     100}
     101
    85102variant lgpl conflicts nonfree description {disallow use of GPL code, license will be LGPL} {
    86103    license-delete          GPL-3
    87104    license-append          LGPL-3