[91306] trunk/dports/gis/cgal/Portfile
vince at macports.org
vince at macports.org
Wed Mar 28 12:52:52 PDT 2012
Revision: 91306
https://trac.macports.org/changeset/91306
Author: vince at macports.org
Date: 2012-03-28 12:52:52 -0700 (Wed, 28 Mar 2012)
Log Message:
-----------
Bump to 4.0. Thanks to all.
Modified Paths:
--------------
trunk/dports/gis/cgal/Portfile
Modified: trunk/dports/gis/cgal/Portfile
===================================================================
--- trunk/dports/gis/cgal/Portfile 2012-03-28 18:15:12 UTC (rev 91305)
+++ trunk/dports/gis/cgal/Portfile 2012-03-28 19:52:52 UTC (rev 91306)
@@ -5,8 +5,8 @@
PortGroup cmake 1.0
name cgal
-version 3.9
-license LGPL-2.1 QPL Commercial
+version 4.0
+license LGPL-3+ GPL-3+
categories gis science
maintainers vince
description Computational Geometry Algorithm Library
@@ -24,54 +24,41 @@
homepage http://www.cgal.org/
fetch.ignore_sslcert yes
-master_sites https://gforge.inria.fr/frs/download.php/29125/
+master_sites https://gforge.inria.fr/frs/download.php/30387/
distname CGAL-${version}
-checksums rmd160 0a5a929ecedeeac3833ec90f802b7f5ac069ad47 \
- sha256 241194ad9487d62d1287f863eab3adbbfd0836e2bebcd50c9fc21d473f947ba4
+checksums rmd160 57b3112a511a5c811e1382dfe7cac3b8600c9b56 \
+ sha256 dde1431f56537890666dc6a396bcd591f04397998dfbe20c2897c4ed74da5099
depends_lib-append port:boost \
port:mpfr \
port:zlib \
port:gmp
-patchfiles patch-src-config.h.diff
+configure.args-append -DCGAL_INSTALL_CMAKE_DIR="lib/cmake" \
+ -DWITH_CGAL_Qt3:BOOL=OFF \
+ -DWITH_CGAL_Qt4:BOOL=OFF
-configure.args-append -DCGAL_INSTALL_CMAKE_DIR="${prefix}/lib/cmake"
-
# gcc 4.0 is too old to compile CGAL properly; see <http://www.cgal.org/FAQ.html#mac_optimization_bug>
-# And the demos don't compile with llvm-gcc-4.2 or clang
-if {${configure.compiler} == "gcc-4.0" || [variant_isset demos]} {
+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
- # base (as of 2.0.3) doesn't set cxx for apple-gcc-4.2
- configure.cxx ${prefix}/bin/g++-apple-4.2
}
}
-pre-build {
- # When building 3.9 with 3.8 active:
- # error: 'CGAL_CORE_finite' was not declared in this scope
- if {[file exists ${prefix}/include/CGAL/version.h]} {
- set installed_version [exec awk {/^#define +CGAL_VERSION +/ {print $3}} ${prefix}/include/CGAL/version.h]
- if {${version} != ${installed_version}} {
- ui_error "${name} ${version} cannot be built while ${name} ${installed_version} is installed and active."
- ui_error "Please deactivate ${name} ${installed_version} first."
- return -code error "incompatible ${name} version active"
- }
- }
-}
-
-variant demos description {Create demos} {
- PortGroup qt4 1.0
-
+variant demos description {Create demos} requires qt4 {
depends_lib-append port:libQGLViewer \
port:ipe
- patchfiles-append patch-CMakeLists.txt.diff
+ patchfiles 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
@@ -87,5 +74,26 @@
post-destroot { xinstall -d ${destroot}${prefix}/share/${name}
copy ${worksrcpath}/demo ${destroot}${prefix}/share/${name}
copy ${worksrcpath}/examples ${destroot}${prefix}/share/${name}
+ eval move [glob ${destroot}${prefix}/share/${name}/demo/*/*.dylib] ${destroot}${prefix}/lib/
}
}
+
+variant debug description {Build with debug symbols} {
+ configure.args-delete -DCMAKE_BUILD_TYPE=Release
+ configure.args-append -DCMAKE_BUILD_TYPE=Debug
+
+ post-destroot {
+ eval exec dsymutil [glob ${destroot}${prefix}/lib/*.dylib]
+ }
+}
+
+variant qt4 description {Build with Qt4 bindings} {
+ PortGroup qt4 1.0
+
+ configure.args-delete -DWITH_CGAL_Qt3:BOOL=OFF \
+ -DWITH_CGAL_Qt4:BOOL=OFF
+}
+
+livecheck.type regex
+livecheck.url ${homepage}
+livecheck.regex CGAL-(\[0-9.\]+)\ is\ released
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120328/1429241d/attachment.html>
More information about the macports-changes
mailing list