Ticket #38861: patch-Portfile.diff

File patch-Portfile.diff, 2.3 KB (added by mamoll (Mark Moll), 11 years ago)
  • Portfile

     
    55PortGroup                       cmake 1.0
    66
    77name                            cgal
    8 version                         4.1
    9 # revision                      1
     8version                         4.2
    109license                         LGPL-3+ GPL-3+
    1110categories                      gis science
    1211maintainers                     vince
     
    2524homepage                        http://www.cgal.org/
    2625
    2726fetch.ignore_sslcert    yes
    28 master_sites        https://gforge.inria.fr/frs/download.php/31640
     27master_sites        https://gforge.inria.fr/frs/download.php/32359
    2928
    3029distname                        CGAL-${version}
    31 checksums           rmd160  183e1842ab0d30061fc5670f762e6f70d1d003fb \
    32                     sha256  878d4c3e579d886c2de05e04e8dc2cc9ebf094c5700ca4187521ef0fb673658e
     30checksums           rmd160  90ebc257eb0f84c3d2ee8063e2f4881e5b933091 \
     31                    sha256  a14268c5dae86e4f2f5c9fd0c12c5fcd36cfd9db2b5e3af34e04a7233bac820d
    3332
     33# currently, the 4.2 bz2 tar ball is actually compressed with gzip
     34#use_bzip2                      yes
    3435
    35 use_bzip2                       yes
    36 
    3736worksrcdir          CGAL-${version}
    3837depends_lib-append      port:boost \
    3938                                        port:mpfr \
     
    4140                                        port:gmp \
    4241                                        port:eigen3
    4342
    44 #patchfiles                     patch-CGAL_SetupBoost.cmake.diff
    45 
    46 configure.args-append   -DCGAL_INSTALL_CMAKE_DIR="lib/cmake" \
     43configure.args-append   -DCGAL_INSTALL_CMAKE_DIR="share/CGAL/cmake" \
    4744                        -DWITH_CGAL_Qt3:BOOL=OFF \
    4845                        -DWITH_CGAL_Qt4:BOOL=OFF \
    4946                                                -DBoost_DIR:PATH=${prefix} \
     
    5350# gcc 4.0 is too old to compile CGAL properly; see <http://www.cgal.org/FAQ.html#mac_optimization_bug>
    5451compiler.blacklist-append gcc-4.0
    5552
    56 # TODO: base should do this: http://trac.macports.org/ticket/32542
    57 if {[info exists portconfigure::compiler_name_map(${configure.compiler})]} {
    58     depends_build-append port:$portconfigure::compiler_name_map(${configure.compiler})
    59 
    60     # base 2.1.x ignores the argument and just use ${configure.compiler}
    61     if {[portconfigure::arch_flag_supported ${configure.compiler}]} {
    62         depends_skip_archcheck-append $portconfigure::compiler_name_map(${configure.compiler})
    63     }
    64 
    65     if {[string match macports-gcc* ${configure.compiler}]} {
    66         depends_lib-append port:$portconfigure::compiler_name_map(${configure.compiler})
    67     }
    68 }
    69 
    7053variant demos description {Create demos} requires qt4 {
    7154        depends_lib-append              port:libQGLViewer \
    7255                                                        port:ipe \