# -*- 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 # $Id$ PortSystem 1.0 PortGroup cmake 1.0 PortGroup github 1.0 categories gis maintainers vince description SFCGAL links CGAL to PostGIS long_description SFCGAL (“Simple Features for CGAL”)\ is a library that provides a SF-SQL API\ to some CGAL routines, thereby enabling spatial\ databases such as PostGIS to rely on CGAL to\ perform 2D and 3D geometry operations (union,\ intersections, buffering, etc.). platforms darwin license LGPL-2 homepage http://www.sfcgal.org/ github.setup Oslandia SFCGAL 1.0.4 v name sfcgal checksums rmd160 6f8d18199d95bdc28a578f26706d746e8f2eaa71 \ sha256 9259cd11bda3fa2910dd9c58144db75365c80bc6af1bdca893d2d636abc8b3f9 depends_lib-append port:cgal \ port:mpfr \ port:gmp # Variants variant viewer description {builds a Qt4-based viewer} { PortGroup qt4 1.0 depends_lib-append port:openscenegraph configure.args-append -DSFCGAL_BUILD_VIEWER=ON } variant examples description {builds examples} { configure.args-append -DSFCGAL_BUILD_EXAMPLES=ON } post-configure { if {[variant_isset viewer]} { reinplace -E "s|(.*)|\\1 -F ${frameworks_dir} -lQtCore -lQtOpenGL -lQtGui|" \ ${worksrcpath}/viewer/CMakeFiles/viewer-SFCGAL.dir/link.txt } } use_parallel_build yes