Ticket #33649: Portfile-cgal-qt4-debug.patch

File Portfile-cgal-qt4-debug.patch, 2.2 KB (added by seanfarley (Sean Farley), 12 years ago)

Fix livecheck and Qt4 checks; add debug

  • Portfile

     
    55PortGroup                       cmake 1.0
    66
    77name                            cgal
    8 version                         3.9
    9 license                         LGPL-2.1 QPL Commercial
     8version                         4.0
     9license                         LGPL-3+ GPL-3+
    1010categories                      gis science
    1111maintainers                     vince
    1212description                     Computational Geometry Algorithm Library
     
    2424homepage                        http://www.cgal.org/
    2525
    2626fetch.ignore_sslcert    yes
    27 master_sites            https://gforge.inria.fr/frs/download.php/29125/
     27master_sites            https://gforge.inria.fr/frs/download.php/30387/
    2828
    2929distname                        CGAL-${version}
    30 checksums           rmd160  0a5a929ecedeeac3833ec90f802b7f5ac069ad47 \
    31                     sha256  241194ad9487d62d1287f863eab3adbbfd0836e2bebcd50c9fc21d473f947ba4
     30checksums           rmd160  57b3112a511a5c811e1382dfe7cac3b8600c9b56 \
     31                    sha256  dde1431f56537890666dc6a396bcd591f04397998dfbe20c2897c4ed74da5099
    3232
    3333depends_lib-append      port:boost \
    3434                                        port:mpfr \
    3535                                        port:zlib \
    3636                                        port:gmp
    3737
    38 patchfiles              patch-src-config.h.diff
     38configure.args-append   -DCGAL_INSTALL_CMAKE_DIR="${prefix}/lib/cmake" \
     39                        -DWITH_CGAL_Qt3:BOOL=OFF \
     40                        -DWITH_CGAL_Qt4:BOOL=OFF
    3941
    40 configure.args-append   -DCGAL_INSTALL_CMAKE_DIR="${prefix}/lib/cmake"
    41 
    4242# gcc 4.0 is too old to compile CGAL properly; see <http://www.cgal.org/FAQ.html#mac_optimization_bug>
    4343# And the demos don't compile with llvm-gcc-4.2 or clang
    4444if {${configure.compiler} == "gcc-4.0" || [variant_isset demos]} {
     
    8989                                                        copy ${worksrcpath}/examples ${destroot}${prefix}/share/${name}
    9090        }
    9191}
     92
     93variant debug description {Build with debug symbols} {
     94    configure.args-append   -DCMAKE_BUILD_TYPE=Debug
     95
     96    post-destroot {
     97        eval exec dsymutil [glob ${destroot}${prefix}/lib/*.dylib]
     98    }
     99}
     100
     101variant qt4 description {Build with Qt4 bindings} {
     102    depends_lib-append      port:qt4-mac
     103    configure.args-delete   -DWITH_CGAL_Qt3:BOOL=OFF \
     104                            -DWITH_CGAL_Qt4:BOOL=OFF
     105}
     106
     107livecheck.type      regex
     108livecheck.url       ${homepage}
     109livecheck.regex     CGAL-(\[0-9.\]+)\ is\ released