source: trunk/dports/gis/cgal/Portfile

Last change on this file was 153100, checked in by vince@…, 12 months ago

cgal: bump to 4.9

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 153100 2016-09-24 18:56:48Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake   1.0
6PortGroup           github  1.0
7
8description         Computational Geometry Algorithm Library
9long_description    \
10                    The goal of the ${description} is to provide easy access to\
11                    efficient and reliable geometric algorithms in the\
12                    form of a C++ library. CGAL is used in various areas\
13                    needing geometric computation, such as: computer\
14                    graphics, scientific visualization, computer aided\
15                    design and modeling, geographic information systems,\
16                    molecular biology, medical imaging, robotics and\
17                    motion planning, mesh generation, numerical methods...
18
19platforms           darwin
20
21github.setup        CGAL cgal 4.9 releases%2FCGAL-
22github.tarball_from releases
23name                cgal
24license             LGPL-3+ GPL-3+
25categories          gis science
26maintainers         vince
27use_xz              yes
28
29homepage            http://www.cgal.org/
30
31checksums           rmd160  d30c38a7530f74850ab14380fa08bb6bc6a85b96 \
32                    sha256  63ac5df71f912f34f2f0f2e54a303578df51f4ec2627db593a65407d791f9039
33
34worksrcdir          CGAL-${version}
35depends_lib-append  port:boost \
36                    port:mpfr \
37                    port:zlib \
38                    port:gmp \
39                    port:eigen3
40
41configure.args-append   -DCGAL_INSTALL_CMAKE_DIR="share/CGAL/cmake" \
42                        -DWITH_CGAL_Qt5:BOOL=OFF \
43                        -DBoost_DIR:PATH=${prefix} \
44                        -DWITH_Eigen3:BOOL=ON \
45                        -DWITH_ZLIB:BOOL=ON
46
47# gcc 4.0 is too old to compile CGAL properly; see <http://www.cgal.org/FAQ.html#mac_optimization_bug>
48compiler.blacklist-append gcc-4.0
49
50variant debug description {Build with debug symbols} {
51    configure.args-delete   -DCMAKE_BUILD_TYPE=Release
52    configure.args-append   -DCMAKE_BUILD_TYPE=Debug
53
54    post-destroot {
55        eval exec dsymutil  [glob ${destroot}${prefix}/lib/*.dylib]
56    }
57}
58
59variant qt5 description {Build with Qt5 bindings} {
60    PortGroup               qt5 1.0
61
62    configure.args-delete   -DWITH_CGAL_Qt5:BOOL=OFF
63}
64
65livecheck.type      regex
66livecheck.url       ${homepage}
67livecheck.regex     CGAL (\[0-9.\]+)\ released
Note: See TracBrowser for help on using the repository browser.