[96188] trunk/dports/gis/cgal

vince at macports.org vince at macports.org
Thu Aug 2 12:03:00 PDT 2012


Revision: 96188
          https://trac.macports.org/changeset/96188
Author:   vince at macports.org
Date:     2012-08-02 12:02:56 -0700 (Thu, 02 Aug 2012)
Log Message:
-----------
Bump to 4.0.2

Modified Paths:
--------------
    trunk/dports/gis/cgal/Portfile

Added Paths:
-----------
    trunk/dports/gis/cgal/files/patch-CGAL_SetupBoost.cmake.diff

Modified: trunk/dports/gis/cgal/Portfile
===================================================================
--- trunk/dports/gis/cgal/Portfile	2012-08-02 17:32:08 UTC (rev 96187)
+++ trunk/dports/gis/cgal/Portfile	2012-08-02 19:02:56 UTC (rev 96188)
@@ -5,8 +5,8 @@
 PortGroup			cmake 1.0
 
 name				cgal
-version				4.0
-revision			1
+version				4.0.2
+# revision			1
 license				LGPL-3+ GPL-3+
 categories			gis science
 maintainers			vince
@@ -25,41 +25,45 @@
 homepage			http://www.cgal.org/
 
 fetch.ignore_sslcert 	yes
-master_sites		https://gforge.inria.fr/frs/download.php/30387/
+master_sites		https://gforge.inria.fr/frs/download.php/31175/
 
 distname			CGAL-${version}
-checksums           rmd160  57b3112a511a5c811e1382dfe7cac3b8600c9b56 \
-                    sha256  dde1431f56537890666dc6a396bcd591f04397998dfbe20c2897c4ed74da5099
+checksums           rmd160  1d11da6d1d78ae22cc113f7378d66247cf5afae2 \
+      sha256  f125ed9d484e1e58d351f173aad184ce7a0d13c3f79205e69d819789727cfb2a 
 
+worksrcdir          CGAL-${version}
 depends_lib-append	port:boost \
 					port:mpfr \
 					port:zlib \
-					port:gmp
+					port:gmp \
+					port:eigen3
 
+patchfiles			patch-CGAL_SetupBoost.cmake.diff
+
 configure.args-append   -DCGAL_INSTALL_CMAKE_DIR="lib/cmake" \
                         -DWITH_CGAL_Qt3:BOOL=OFF \
                         -DWITH_CGAL_Qt4:BOOL=OFF
 
 # gcc 4.0 is too old to compile CGAL properly; see <http://www.cgal.org/FAQ.html#mac_optimization_bug>
+# CGAL does not compile with CLANG
+
 if {${configure.compiler} == "gcc-4.0"} {
     configure.compiler gcc-4.2
     if {![file executable ${configure.cc}]} {
         depends_build-append port:apple-gcc42
         configure.compiler apple-gcc-4.2
     }
+} elseif {[string match "*clang*" ${configure.cc}]} {
+	configure.compiler	llvm-gcc-4.2
 }
 
 variant demos description {Create demos} requires qt4 {
 	depends_lib-append		port:libQGLViewer \
-							port:ipe
+							port:ipe \
+							port:metis
 
-	patchfiles				patch-CMakeLists.txt.diff
+	patchfiles-append		patch-CMakeLists.txt.diff
 
-        # The demos don't compile with clang.
-        if {${configure.compiler} == "clang"} {
-            configure.compiler llvm-gcc-4.2
-        }
-
 	configure.args-append	-DWITH_examples=TRUE
 	configure.args-append	-DWITH_demos=TRUE
 

Added: trunk/dports/gis/cgal/files/patch-CGAL_SetupBoost.cmake.diff
===================================================================
--- trunk/dports/gis/cgal/files/patch-CGAL_SetupBoost.cmake.diff	                        (rev 0)
+++ trunk/dports/gis/cgal/files/patch-CGAL_SetupBoost.cmake.diff	2012-08-02 19:02:56 UTC (rev 96188)
@@ -0,0 +1,11 @@
+--- cmake/modules/CGAL_SetupBoost.cmake.orig	2012-07-13 17:08:31.000000000 +0200
++++ cmake/modules/CGAL_SetupBoost.cmake	2012-07-13 17:09:32.000000000 +0200
+@@ -3,7 +3,7 @@
+   include(CGAL_TweakFindBoost)
+   # In the documentation, we say we require Boost-1.39, but technically we
+   # require 1.33.1. Some packages may require more recent versions, though.
+-  find_package( Boost 1.33.1 REQUIRED thread )
++  find_package( Boost 1.33.1 REQUIRED thread system )
+   
+   message( STATUS "Boost include:     ${Boost_INCLUDE_DIRS}" )
+   message( STATUS "Boost libraries:   ${Boost_LIBRARIES}" )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120802/390a6a82/attachment.html>


More information about the macports-changes mailing list