summaryrefslogtreecommitdiff
path: root/math/eigen3/patches/patch-CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'math/eigen3/patches/patch-CMakeLists.txt')
-rw-r--r--math/eigen3/patches/patch-CMakeLists.txt30
1 files changed, 30 insertions, 0 deletions
diff --git a/math/eigen3/patches/patch-CMakeLists.txt b/math/eigen3/patches/patch-CMakeLists.txt
new file mode 100644
index 00000000000..9eb14732900
--- /dev/null
+++ b/math/eigen3/patches/patch-CMakeLists.txt
@@ -0,0 +1,30 @@
+$NetBSD: patch-CMakeLists.txt,v 1.1 2013/04/01 12:14:34 joerg Exp $
+
+--- CMakeLists.txt.orig 2013-03-31 22:44:57.000000000 +0000
++++ CMakeLists.txt
+@@ -284,24 +284,10 @@ install(FILES
+ DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel
+ )
+
+-if(EIGEN_BUILD_PKGCONFIG)
+- SET(path_separator ":")
+- STRING(REPLACE ${path_separator} ";" pkg_config_libdir_search "$ENV{PKG_CONFIG_LIBDIR}")
+- message(STATUS "searching for 'pkgconfig' directory in PKG_CONFIG_LIBDIR ( $ENV{PKG_CONFIG_LIBDIR} ), ${CMAKE_INSTALL_PREFIX}/share, and ${CMAKE_INSTALL_PREFIX}/lib")
+- FIND_PATH(pkg_config_libdir pkgconfig ${pkg_config_libdir_search} ${CMAKE_INSTALL_PREFIX}/share ${CMAKE_INSTALL_PREFIX}/lib ${pkg_config_libdir_search})
+- if(pkg_config_libdir)
+- SET(pkg_config_install_dir ${pkg_config_libdir})
+- message(STATUS "found ${pkg_config_libdir}/pkgconfig" )
+- else(pkg_config_libdir)
+- SET(pkg_config_install_dir ${CMAKE_INSTALL_PREFIX}/share)
+- message(STATUS "pkgconfig not found; installing in ${pkg_config_install_dir}" )
+- endif(pkg_config_libdir)
+-
+ configure_file(eigen3.pc.in eigen3.pc)
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/eigen3.pc
+- DESTINATION ${pkg_config_install_dir}/pkgconfig
++ DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig"
+ )
+-endif(EIGEN_BUILD_PKGCONFIG)
+
+ add_subdirectory(Eigen)
+