[105914] trunk/dports/gis/cgal/Portfile
vince at macports.org
vince at macports.org
Thu May 9 12:59:13 PDT 2013
Revision: 105914
https://trac.macports.org/changeset/105914
Author: vince at macports.org
Date: 2013-05-09 12:59:13 -0700 (Thu, 09 May 2013)
Log Message:
-----------
Bump to 4.2
Modified Paths:
--------------
trunk/dports/gis/cgal/Portfile
Modified: trunk/dports/gis/cgal/Portfile
===================================================================
--- trunk/dports/gis/cgal/Portfile 2013-05-09 18:30:21 UTC (rev 105913)
+++ trunk/dports/gis/cgal/Portfile 2013-05-09 19:59:13 UTC (rev 105914)
@@ -5,8 +5,7 @@
PortGroup cmake 1.0
name cgal
-version 4.1
-# revision 1
+version 4.2
license LGPL-3+ GPL-3+
categories gis science
maintainers vince
@@ -25,15 +24,15 @@
homepage http://www.cgal.org/
fetch.ignore_sslcert yes
-master_sites https://gforge.inria.fr/frs/download.php/31640
+master_sites https://gforge.inria.fr/frs/download.php/32359
distname CGAL-${version}
-checksums rmd160 183e1842ab0d30061fc5670f762e6f70d1d003fb \
- sha256 878d4c3e579d886c2de05e04e8dc2cc9ebf094c5700ca4187521ef0fb673658e
+checksums rmd160 90ebc257eb0f84c3d2ee8063e2f4881e5b933091 \
+ sha256 a14268c5dae86e4f2f5c9fd0c12c5fcd36cfd9db2b5e3af34e04a7233bac820d
+# currently, the 4.2 bz2 tar ball is actually compressed with gzip
+#use_bzip2 yes
-use_bzip2 yes
-
worksrcdir CGAL-${version}
depends_lib-append port:boost \
port:mpfr \
@@ -41,9 +40,7 @@
port:gmp \
port:eigen3
-#patchfiles patch-CGAL_SetupBoost.cmake.diff
-
-configure.args-append -DCGAL_INSTALL_CMAKE_DIR="lib/cmake" \
+configure.args-append -DCGAL_INSTALL_CMAKE_DIR="share/CGAL/cmake" \
-DWITH_CGAL_Qt3:BOOL=OFF \
-DWITH_CGAL_Qt4:BOOL=OFF \
-DBoost_DIR:PATH=${prefix} \
@@ -53,20 +50,6 @@
# gcc 4.0 is too old to compile CGAL properly; see <http://www.cgal.org/FAQ.html#mac_optimization_bug>
compiler.blacklist-append gcc-4.0
-# TODO: base should do this: http://trac.macports.org/ticket/32542
-if {[info exists portconfigure::compiler_name_map(${configure.compiler})]} {
- depends_build-append port:$portconfigure::compiler_name_map(${configure.compiler})
-
- # base 2.1.x ignores the argument and just use ${configure.compiler}
- if {[portconfigure::arch_flag_supported ${configure.compiler}]} {
- depends_skip_archcheck-append $portconfigure::compiler_name_map(${configure.compiler})
- }
-
- if {[string match macports-gcc* ${configure.compiler}]} {
- depends_lib-append port:$portconfigure::compiler_name_map(${configure.compiler})
- }
-}
-
variant demos description {Create demos} requires qt4 {
depends_lib-append port:libQGLViewer \
port:ipe \
@@ -85,6 +68,14 @@
# include Qt's CMake defines, just in case
configure.args-append ${qt_cmake_defines}
+
+ post-configure {
+ # Workaround a bug in the link.txt files of the ipelets demos
+ set ipelink [glob ${worksrcpath}/demo/CGAL_ipelets/CMakeFiles/*/link.txt]
+ foreach linkfile ${ipelink} {
+ reinplace -E "s|(.*)|\\1 -lipe|" ${linkfile}
+ }
+ }
build.target-append examples demos
use_parallel_build no
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130509/111d534d/attachment.html>
More information about the macports-changes
mailing list