Changeset 79681
- Timestamp:
- 06/23/11 07:48:00 (4 years ago)
- File:
-
- 1 edited
-
trunk/dports/math/eigen3/Portfile (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/math/eigen3/Portfile
r79657 r79681 2 2 3 3 PortSystem 1.0 4 #PortGroup cmake 1.05 4 6 5 name eigen3 … … 27 26 configure.universal_args "" 28 27 28 # Install via CMake by default. Slower than a header-only install, but makes other CMake-based builds happy 29 default_variants +cmake 30 29 31 # Variants 30 32 variant gcc44 description { Use MacPorts' gcc44 compilers } conflicts gcc45 { … … 36 38 } 37 39 38 variant doc description { Place local documentation into <prefix>/share/doc/eigen3/html } conflicts no_cmake {40 variant doc description { Place local documentation into <prefix>/share/doc/eigen3/html } requires cmake { 39 41 depends_build-append port:doxygen port:texlive-latex 40 42 build.target-append doc 41 43 } 42 44 43 variant blas description { Build eigen-based blas (libeigen_blas*) } conflicts no_cmake {45 variant blas description { Build eigen-based blas (libeigen_blas*) } requires cmake { 44 46 if {![variant_isset gcc44] && ![variant_isset gcc45]} { 45 ui_error "eigen3 +blas needs either +gcc44 or +gcc45 enabled!"47 ui_error "eigen3: ##### +blas needs either +gcc44 or +gcc45 enabled #####" 46 48 return -code error 47 49 } else { 48 50 build.target-append blas 49 51 } 50 }51 52 variant no_cmake description { Header-only install: Removes CMake dependency, breaks FindEigen3.cmake } {53 52 } 54 53 … … 90 89 } 91 90 92 91 # Conditional phase modifications 93 92 # Are we doing a header-only or cmake (for 'port test' or +doc/+blas) build? 94 if { [variant_isset no_cmake]} {93 if {![variant_isset cmake]} { 95 94 # We can skip everything and just copy the headers -- fast! 96 95 use_configure no … … 106 105 test.run yes 107 106 test { 108 ui_error "!!! TESTING IS UNSUPPORTED WITH +no_cmake VARIANT !!!"107 ui_error "!!! TESTING IS UNSUPPORTED WITHOUT +cmake VARIANT !!!" 109 108 } 110 } else { 109 } 110 111 variant cmake description { CMake-based install: Disabling removes CMake support } { 111 112 PortGroup muniversal 1.0 112 113 # Not using cmake portgroup as it sets -DCMAKE_OSX_ARCHITECTURES
Note: See TracChangeset
for help on using the changeset viewer.

