Changeset 79682
- Timestamp:
- 06/23/11 07:51:45 (4 years ago)
- File:
-
- 1 edited
-
trunk/dports/math/eigen3/Portfile (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/math/eigen3/Portfile
r79681 r79682 30 30 31 31 # Variants 32 variant gcc44 description { Use MacPorts' gcc44 compilers} conflicts gcc45 {32 variant gcc44 description {Use MacPorts' gcc44 compilers} conflicts gcc45 { 33 33 configure.compiler macports-gcc-4.4 34 34 } 35 35 36 variant gcc45 description { Use MacPorts' gcc45 compilers} conflicts gcc44 {36 variant gcc45 description {Use MacPorts' gcc45 compilers} conflicts gcc44 { 37 37 configure.compiler macports-gcc-4.5 38 38 } 39 39 40 variant doc description { Place local documentation into <prefix>/share/doc/eigen3/html} requires cmake {40 variant doc description {Place local documentation into <prefix>/share/doc/eigen3/html} requires cmake { 41 41 depends_build-append port:doxygen port:texlive-latex 42 42 build.target-append doc 43 43 } 44 44 45 variant blas description { Build eigen-based blas (libeigen_blas*)} requires cmake {45 variant blas description {Build eigen-based blas (libeigen_blas*)} requires cmake { 46 46 if {![variant_isset gcc44] && ![variant_isset gcc45]} { 47 47 ui_error "eigen3: ##### +blas needs either +gcc44 or +gcc45 enabled #####" … … 49 49 } else { 50 50 build.target-append blas 51 } 52 } 53 54 variant cmake description {CMake-based install: Disabling removes CMake support} { 55 PortGroup muniversal 1.0 56 # Not using cmake portgroup as it sets -DCMAKE_OSX_ARCHITECTURES 57 # in a way we don't seem to be able disable. 58 set cmake_share_module_dir ${prefix}/share/cmake/modules 59 60 depends_build-append port:cmake 61 62 configure.cmd cmake 63 64 configure.pre_args -DCMAKE_INSTALL_PREFIX=${prefix} 65 66 configure.args -DCMAKE_VERBOSE_MAKEFILE=ON \ 67 -DCMAKE_COLOR_MAKEFILE=ON \ 68 -DCMAKE_BUILD_TYPE=Release \ 69 -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \ 70 -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib \ 71 -DCMAKE_SYSTEM_PREFIX_PATH=\"${prefix}\;/usr\" \ 72 -DCMAKE_MODULE_PATH=${cmake_share_module_dir} \ 73 -Wno-dev 74 75 # Out of source build 76 configure.args-append ../eigen_src 77 78 # Enable test cases if we've actually configured 79 test.run yes 80 test.target check 81 test.env-append EIGEN_MAKE_ARGS=-j{build.jobs} \ 82 EIGEN_CTEST_ARGS=-j{build.jobs} 83 84 # Enable parallel builds 85 build.env-append EIGEN_MAKE_ARGS=-j{build.jobs} 86 } 87 88 # Conditional phase modifications 89 # Are we doing a header-only or cmake (for 'port test' or +doc/+blas) build? 90 if {![variant_isset cmake]} { 91 # We can skip everything and just copy the headers -- fast! 92 use_configure no 93 build {} 94 destroot { 95 set incldir ${destroot}${prefix}/include/${name} 96 xinstall -d ${incldir} 97 file copy ${workpath}/eigen_src/Eigen ${incldir} 98 file copy ${workpath}/eigen_src/unsupported ${incldir} 99 } 100 101 # Fail with message if user tries to test 102 test.run yes 103 test { 104 ui_error "!!! TESTING IS UNSUPPORTED WITHOUT +cmake VARIANT !!!" 51 105 } 52 106 } … … 89 143 } 90 144 91 # Conditional phase modifications92 # Are we doing a header-only or cmake (for 'port test' or +doc/+blas) build?93 if {![variant_isset cmake]} {94 # We can skip everything and just copy the headers -- fast!95 use_configure no96 build {}97 destroot {98 set incldir ${destroot}${prefix}/include/${name}99 xinstall -d ${incldir}100 file copy ${workpath}/eigen_src/Eigen ${incldir}101 file copy ${workpath}/eigen_src/unsupported ${incldir}102 }103 104 # Fail with message if user tries to test105 test.run yes106 test {107 ui_error "!!! TESTING IS UNSUPPORTED WITHOUT +cmake VARIANT !!!"108 }109 }110 111 variant cmake description { CMake-based install: Disabling removes CMake support } {112 PortGroup muniversal 1.0113 # Not using cmake portgroup as it sets -DCMAKE_OSX_ARCHITECTURES114 # in a way we don't seem to be able disable.115 set cmake_share_module_dir ${prefix}/share/cmake/modules116 117 depends_build-append port:cmake118 119 configure.cmd cmake120 121 configure.pre_args -DCMAKE_INSTALL_PREFIX=${prefix}122 123 configure.args -DCMAKE_VERBOSE_MAKEFILE=ON \124 -DCMAKE_COLOR_MAKEFILE=ON \125 -DCMAKE_BUILD_TYPE=Release \126 -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \127 -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib \128 -DCMAKE_SYSTEM_PREFIX_PATH=\"${prefix}\;/usr\" \129 -DCMAKE_MODULE_PATH=${cmake_share_module_dir} \130 -Wno-dev131 132 # Out of source build133 configure.args-append ../eigen_src134 135 # Enable test cases if we've actually configured136 test.run yes137 test.target check138 test.env-append EIGEN_MAKE_ARGS=-j{build.jobs} \139 EIGEN_CTEST_ARGS=-j{build.jobs}140 141 # Enable parallel builds142 build.env-append EIGEN_MAKE_ARGS=-j{build.jobs}143 }144 145 145 livecheck.type regex 146 146 livecheck.url ${homepage}index.php?title=ChangeLog
Note: See TracChangeset
for help on using the changeset viewer.

