Changeset 140077 for trunk/dports/math


Ignore:
Timestamp:
Sep 8, 2015, 8:05:23 PM (4 years ago)
Author:
eborisch@…
Message:

eigen3: Use cmake.out_of_source = yes (instead of doing our own out-of-source build.) Update eigen3-devel to 3.3-alpha1.

File:
1 edited

Legend:

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

    r137793 r140077  
    4040} else {
    4141    # No current development version (other than rolling snapshot)
    42     bitbucket.setup     eigen eigen 90c881e
     42    bitbucket.setup     eigen eigen 3.3-alpha1
    4343    name                eigen3-devel
    4444    conflicts           eigen3
    4545   
    46     version             3.2.90.20150619
    47     revision            0
    4846    # rc version seen as older than beta
    4947    epoch               1
    5048    checksums \
    51         rmd160  e1f4144d5841f7c9ee146439b6804125fd4a0e5f \
    52         sha256  0c40b0c8829ba6b72f19336583abfcdb6a0bc20a2fd09430b6c5efc138bad6df
     49        rmd160  5dbf3e6619c788b4b278aaa3b27af996fe9370b0 \
     50        sha256  db432d0c5b8a51292d527c8d235e5af5787cb4855186e439b9570c5428471f20
    5351}
    5452
     
    7169}
    7270
    73 # Out of source build
    74 configure.post_args     ../eigen_src
    7571configure.env-append    PKG_CONFIG_LIBDIR=${prefix}/lib/pkgconfig
    76 # We're doing our own
    77 cmake.out_of_source     no
     72cmake.out_of_source     yes
    7873
    7974test.run            yes
     
    111106
    112107post-patch {
    113     # Move directory for out-of-source build
    114     move ${worksrcpath} ${workpath}/eigen_src
    115108    copy ${filespath}/CMakeLists-eigenvalues.txt \
    116         ${workpath}/eigen_src/unsupported/Eigen/src/Eigenvalues/CMakeLists.txt
    117     file mkdir ${worksrcpath}
     109        ${worksrcpath}/unsupported/Eigen/src/Eigenvalues/CMakeLists.txt
    118110}
    119111
     
    133125        set docdir ${destroot}${sfx}${prefix}/share/doc/eigen3
    134126        xinstall -d ${docdir}
    135         xinstall -m 644 -W ${workpath}/eigen_src \
     127        xinstall -m 644 -W ${worksrcpath} \
    136128            COPYING.GPL COPYING.LGPL ${docdir}
    137129
     
    142134                # which makes muniversal hiccup. Just copy one set of docs
    143135                # into destroot directories.
    144                 file copy ${worksrcpath}${sfx}/doc/html ${docdir}
     136                file copy ${cmake.build_dir}${sfx}/doc/html ${docdir}
    145137                # Temporary fix for doxygen changes
    146138                file copy ${filespath}/ftv2node.png ${docdir}/html
     
    155147            xinstall -d ${libdir}
    156148            eval file copy \
    157                 [glob ${worksrcpath}${sfx}/blas/libeigen_blas*] ${libdir}
     149                [glob ${cmake.build_dir}${sfx}/blas/libeigen_blas*] ${libdir}
    158150        }
    159151    }
     
    162154post-destroot {
    163155    # Grab extra items install doesn't out of unsupported
    164     foreach n {README.txt bench doc test} {
    165         file copy ${workpath}/eigen_src/unsupported/${n} \
     156    foreach n {README.txt bench} {
     157        file copy ${worksrcpath}/unsupported/${n} \
    166158            ${destroot}${prefix}/include/eigen3/unsupported
    167159    }
     
    169161    # Install FindEigen3.cmake file
    170162    xinstall -d ${destroot}${cmake_share_module_dir}
    171     xinstall -m 444 ${workpath}/eigen_src/cmake/FindEigen3.cmake \
     163    xinstall -m 444 ${worksrcpath}/cmake/FindEigen3.cmake \
    172164        ${destroot}${cmake_share_module_dir}
    173165}
Note: See TracChangeset for help on using the changeset viewer.