Changeset 87615 for trunk/dports/gis


Ignore:
Timestamp:
Nov 28, 2011, 9:12:21 PM (8 years ago)
Author:
ryandesign@…
Message:

cgal: prevent build failure when old version is active; see #31562

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/gis/cgal/Portfile

    r87107 r87615  
    5050}
    5151
     52pre-build {
     53    # When building 3.9 with 3.8 active:
     54    # error: 'CGAL_CORE_finite' was not declared in this scope
     55    if {[file exists ${prefix}/include/CGAL/version.h]} {
     56        set installed_version [exec awk {/^#define +CGAL_VERSION +/ {print $3}} ${prefix}/include/CGAL/version.h]
     57        if {${version} != ${installed_version}} {
     58            ui_error "${name} ${version} cannot be built while ${name} ${installed_version} is installed and active."
     59            ui_error "Please deactivate ${name} ${installed_version} first."
     60            return -code error "incompatible ${name} version active"
     61        }
     62    }
     63}
     64
    5265variant demos description {Create demos} {
    5366        PortGroup                               qt4 1.0
Note: See TracChangeset for help on using the changeset viewer.