[119141] trunk/dports/math/eigen3/Portfile
eborisch at macports.org
eborisch at macports.org
Thu Apr 17 21:22:00 PDT 2014
Revision: 119141
https://trac.macports.org/changeset/119141
Author: eborisch at macports.org
Date: 2014-04-17 21:22:00 -0700 (Thu, 17 Apr 2014)
Log Message:
-----------
eigen3[-devel]: Use standard cmake PortGroup. Copy FindEigen3.cmake into cmake's module directory. Closes #43390
Modified Paths:
--------------
trunk/dports/math/eigen3/Portfile
Modified: trunk/dports/math/eigen3/Portfile
===================================================================
--- trunk/dports/math/eigen3/Portfile 2014-04-18 04:14:02 UTC (rev 119140)
+++ trunk/dports/math/eigen3/Portfile 2014-04-18 04:22:00 UTC (rev 119141)
@@ -3,10 +3,11 @@
PortSystem 1.0
PortGroup compilers 1.0
+PortGroup cmake 1.0
name eigen3
version 3.2.1
-revision 1
+revision 2
license MPL-2 LGPL-3+
categories math science
maintainers eborisch \
@@ -41,7 +42,7 @@
conflicts eigen3
# No current development version (other than rolling snapshot)
version 3.2.1
- revision 1
+ revision 2
# rc version seen as older than beta
epoch 1
distname ${version}
@@ -68,32 +69,6 @@
configure.universal_args ""
}
-### CMAKE SUPPORT
-
-# Install is only done via cmake (depends_build) now. Since packages are
-# available for the default install -- which is essentially just headers --
-# users who just install the default won't need. Users who wanted more than
-# default (+doc, +blas) would have needed cmake in the past, anyway.
-
-# Not using cmake portgroup as it sets -DCMAKE_OSX_ARCHITECTURES in a way we
-# don't seem to be able disable.
-set cmake_share_module_dir ${prefix}/share/cmake/modules
-
-depends_build-append port:cmake
-
-configure.cmd cmake
-
-configure.pre_args -DCMAKE_INSTALL_PREFIX=${prefix}
-
-configure.args -DCMAKE_VERBOSE_MAKEFILE=ON \
- -DCMAKE_COLOR_MAKEFILE=ON \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
- -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib \
- -DCMAKE_SYSTEM_PREFIX_PATH=\"${prefix}\;/usr\" \
- -DCMAKE_MODULE_PATH=${cmake_share_module_dir} \
- -Wno-dev
-
# Out of source build
configure.args-append ../eigen_src
@@ -175,12 +150,17 @@
}
}
-# Grab extra items install doesn't out of unsupported
post-destroot {
+ # Grab extra items install doesn't out of unsupported
foreach n {README.txt bench doc test} {
file copy ${workpath}/eigen_src/unsupported/${n} \
${destroot}${prefix}/include/${name}/unsupported
}
+
+ # Install FindEigen3.cmake file
+ xinstall -d ${destroot}${cmake_share_module_dir}
+ xinstall -m 444 ${workpath}/eigen_src/cmake/FindEigen3.cmake \
+ ${destroot}${cmake_share_module_dir}
}
notes {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140417/7cf75420/attachment.html>
More information about the macports-changes
mailing list