Ignore:
Timestamp:
Nov 10, 2011, 8:17:22 PM (8 years ago)
Author:
ryandesign@…
Message:

cgal: update to 3.9, use gcc-4.2 instead of 4.0 and when demos variant is being used; see #31562

File:
1 edited

Legend:

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

    r78082 r87107  
    66
    77name                            cgal
    8 version                         3.8
     8version                         3.9
    99license                         LGPL-2.1 QPL Commercial
    1010categories                      gis science
     
    2525
    2626fetch.ignore_sslcert    yes
    27 master_sites            https://gforge.inria.fr/frs/download.php/28500/
     27master_sites            https://gforge.inria.fr/frs/download.php/29125/
    2828
    2929distname                        CGAL-${version}
    30 checksums           md5     b8a79e62e4d8ba8b649d815aebbd1c0a \
    31                     sha1    23748df1e60d62da166d2e395732ae2fe274317d \
    32                     rmd160  5e5e1323ae453d928e85b4f6a7647f9d6d2973d0
     30checksums           rmd160  0a5a929ecedeeac3833ec90f802b7f5ac069ad47 \
     31                    sha256  241194ad9487d62d1287f863eab3adbbfd0836e2bebcd50c9fc21d473f947ba4
    3332
    3433depends_lib-append      port:boost \
     
    3635                                        port:zlib \
    3736                                        port:gmp
     37
     38configure.args-append   -DCGAL_INSTALL_CMAKE_DIR="${prefix}/lib/cmake"
     39
     40# gcc 4.0 is too old to compile CGAL properly; see <http://www.cgal.org/FAQ.html#mac_optimization_bug>
     41# And the demos don't compile with llvm-gcc-4.2 or clang
     42if {${configure.compiler} == "gcc-4.0" || [variant_isset demos]} {
     43    configure.compiler gcc-4.2
     44    if {![file executable ${configure.cc}]} {
     45        depends_build-append port:apple-gcc42
     46        configure.compiler apple-gcc-4.2
     47        # base (as of 2.0.3) doesn't set cxx for apple-gcc-4.2
     48        configure.cxx ${prefix}/bin/g++-apple-4.2
     49    }
     50}
    3851
    3952variant demos description {Create demos} {
Note: See TracChangeset for help on using the changeset viewer.