New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 79657


Ignore:
Timestamp:
06/22/11 12:15:37 (4 years ago)
Author:
eborisch@…
Message:

eigen3: Use CMake for install by default. Closes #29878. New no_cmake variant drops CMake dependency for those who do not need CMake compatibilty.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/eigen3/Portfile

    r79450 r79657  
    66name                eigen3 
    77version             3.0.1 
     8revision            1 
    89license             {{GPL-2+} {LGPL-3+}} 
    910categories          math science 
     
    2728 
    2829# Variants 
    29 variant gcc44 description { Use MacPort's gcc44 compilers } conflicts gcc45 { 
     30variant gcc44 description { Use MacPorts' gcc44 compilers } conflicts gcc45 { 
    3031  configure.compiler  macports-gcc-4.4 
    3132} 
    3233 
    33 variant gcc45 description { Use MacPort's gcc45 compilers } conflicts gcc44 { 
     34variant gcc45 description { Use MacPorts' gcc45 compilers } conflicts gcc44 { 
    3435  configure.compiler  macports-gcc-4.5 
    3536} 
    3637 
    37 variant doc description { Place local documentation into <prefix>/share/doc/eigen3/html } requires configured { 
     38variant doc description { Place local documentation into <prefix>/share/doc/eigen3/html } conflicts no_cmake { 
    3839  depends_build-append port:doxygen port:texlive-latex 
    3940  build.target-append doc 
    4041} 
    4142 
    42 variant blas description { Build eigen-based blas (libeigen_blas*) } requires configured { 
     43variant blas description { Build eigen-based blas (libeigen_blas*) } conflicts no_cmake { 
    4344  if {![variant_isset gcc44] && ![variant_isset gcc45]} { 
    4445    ui_error "eigen3 +blas needs either +gcc44 or +gcc45 enabled!" 
     
    4950} 
    5051 
    51 variant configured description { Enable configure steps. (Enables 'port test' target.) } { 
     52variant no_cmake description { Header-only install: Removes CMake dependency, breaks FindEigen3.cmake } { 
    5253} 
    5354 
     
    9091 
    9192 
    92 # Are we doing a header-only or configured (for 'port test' or +doc/+blas) build? 
    93 if {![variant_isset configured]} { 
     93# Are we doing a header-only or cmake (for 'port test' or +doc/+blas) build? 
     94if {[variant_isset no_cmake]} { 
    9495  # We can skip everything and just copy the headers -- fast! 
    9596  use_configure       no 
     
    105106  test.run            yes 
    106107  test { 
    107     ui_error "!!! TESTING IS UNSUPPORTED WITHOUT +configured VARIANT !!!" 
     108    ui_error "!!! TESTING IS UNSUPPORTED WITH +no_cmake VARIANT !!!" 
    108109  } 
    109110} else { 
Note: See TracChangeset for help on using the changeset viewer.