source: trunk/dports/gis/sfcgal/Portfile

Last change on this file was 153101, checked in by vince@…, 10 months ago

SFCGAL: bump to 1.3.0

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 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 153101 2016-09-24 18:57:09Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake   1.0
6PortGroup           github  1.0
7
8categories          gis
9maintainers         vince
10description         SFCGAL links CGAL to PostGIS
11long_description    SFCGAL (Simple Features for CGAL)\
12                    is a library that provides a SF-SQL API\
13                    to some CGAL routines, thereby enabling spatial\
14                    databases such as PostGIS to rely on CGAL to\
15                    perform 2D and 3D geometry operations (union,\
16                    intersections, buffering, etc.).
17
18platforms           darwin
19license             LGPL-2
20
21homepage            http://www.sfcgal.org/
22
23github.setup        Oslandia SFCGAL 1.3.0 v
24name                sfcgal
25
26checksums           rmd160  ff661697707d43b98a5169aa07ffd6b26381ca1a \
27                    sha256  bec5b10721f019404936db9e88dff1dbc0622e19d2bee9720f4e035d691b69c6
28
29depends_lib-append  port:cgal \
30                    port:mpfr \
31                    port:gmp
32
33# Variants
34
35variant viewer description {builds a Qt4-based viewer} {
36
37    PortGroup               qt4 1.0
38    depends_lib-append      port:openscenegraph
39    configure.args-append   -DSFCGAL_BUILD_VIEWER=ON
40}
41
42variant examples description {builds examples} {
43
44    configure.args-append   -DSFCGAL_BUILD_EXAMPLES=ON
45}
46
47post-configure {
48    if {[variant_isset viewer]} {
49        reinplace -E "s|(.*)|\\1 -F ${frameworks_dir} -lQtCore -lQtOpenGL -lQtGui|" \
50            ${worksrcpath}/viewer/CMakeFiles/viewer-SFCGAL.dir/link.txt
51    }
52}
53
54use_parallel_build  yes
Note: See TracBrowser for help on using the repository browser.