[99241] trunk/dports/gis/cgal/Portfile

vince at macports.org vince at macports.org
Tue Oct 30 01:44:20 PDT 2012


Revision: 99241
          http://trac.macports.org//changeset/99241
Author:   vince at macports.org
Date:     2012-10-30 01:44:20 -0700 (Tue, 30 Oct 2012)
Log Message:
-----------
Bump to 4.1, first version to officially support clang 3.1/3.2

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

Modified: trunk/dports/gis/cgal/Portfile
===================================================================
--- trunk/dports/gis/cgal/Portfile	2012-10-30 08:32:40 UTC (rev 99240)
+++ trunk/dports/gis/cgal/Portfile	2012-10-30 08:44:20 UTC (rev 99241)
@@ -5,7 +5,7 @@
 PortGroup			cmake 1.0
 
 name				cgal
-version				4.0.2
+version				4.1
 # revision			1
 license				LGPL-3+ GPL-3+
 categories			gis science
@@ -25,12 +25,15 @@
 homepage			http://www.cgal.org/
 
 fetch.ignore_sslcert 	yes
-master_sites		https://gforge.inria.fr/frs/download.php/31175/
+master_sites	    https://gforge.inria.fr/frs/download.php/31640
 
 distname			CGAL-${version}
-checksums           rmd160  1d11da6d1d78ae22cc113f7378d66247cf5afae2 \
-      sha256  f125ed9d484e1e58d351f173aad184ce7a0d13c3f79205e69d819789727cfb2a 
+checksums           rmd160  183e1842ab0d30061fc5670f762e6f70d1d003fb \
+                    sha256  878d4c3e579d886c2de05e04e8dc2cc9ebf094c5700ca4187521ef0fb673658e
 
+
+use_bzip2			yes
+
 worksrcdir          CGAL-${version}
 depends_lib-append	port:boost \
 					port:mpfr \
@@ -38,14 +41,17 @@
 					port:gmp \
 					port:eigen3
 
-patchfiles			patch-CGAL_SetupBoost.cmake.diff
+#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
+                        -DWITH_CGAL_Qt4:BOOL=OFF \
+						-DBoost_DIR:PATH=${prefix} \
+						-DWITH_Eigen3:BOOL=ON \
+						-DCGAL_EIGEN3_ENABLED:BOOL=ON \
+						-DWITH_ZLIB:BOOL=ON
 
 # 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
@@ -53,9 +59,10 @@
         depends_build-append port:apple-gcc42
         configure.compiler apple-gcc-4.2
     }
-} elseif {[string match "*clang*" ${configure.cc}]} {
-	configure.compiler	llvm-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 \
@@ -64,11 +71,13 @@
 
 	patchfiles-append		patch-CMakeLists.txt.diff
 
-	configure.args-append	-DWITH_examples=TRUE
-	configure.args-append	-DWITH_demos=TRUE
+	configure.args-append	-DWITH_examples:BOOL=ON
+	configure.args-append	-DWITH_demos:BOOL=ON
+	configure.args-append	-DWITH_QGLViewer:BOOL=ON
+	configure.args-append	-DWITH_OpenGL:BOOL=ON
 
   # MacPorts installs IPE version 7; make sure to use it.
-	configure.args-append	-DWITH_IPE_7=TRUE
+	configure.args-append	-DWITH_IPE_7:BOOL=ON
 
   # include Qt's CMake defines, just in case
 	configure.args-append	${qt_cmake_defines}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121030/00a435e8/attachment.html>


More information about the macports-changes mailing list