summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2013-04-01 12:14:33 +0000
committerjoerg <joerg@pkgsrc.org>2013-04-01 12:14:33 +0000
commitcaaf61f387f3f73c94d73f77a8bc5e267627d919 (patch)
treefa7ceb5ae63b9673eeead8844c99fb9bd4aa871f /math
parent75829233654dae267aa7e4f894b19019e16cab22 (diff)
downloadpkgsrc-caaf61f387f3f73c94d73f77a8bc5e267627d919.tar.gz
Don't try to detect the pkgconfig directory, hard-wire the one used in
pkgsrc. It seems like the detection sometimes picked up the wrong value. Adjust PLIST and bump revision.
Diffstat (limited to 'math')
-rw-r--r--math/eigen3/Makefile3
-rw-r--r--math/eigen3/PLIST4
-rw-r--r--math/eigen3/distinfo3
-rw-r--r--math/eigen3/patches/patch-CMakeLists.txt30
4 files changed, 36 insertions, 4 deletions
diff --git a/math/eigen3/Makefile b/math/eigen3/Makefile
index 57ffed51237..680059b24fe 100644
--- a/math/eigen3/Makefile
+++ b/math/eigen3/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.1 2013/03/17 19:37:19 markd Exp $
+# $NetBSD: Makefile,v 1.2 2013/04/01 12:14:33 joerg Exp $
DISTNAME= 3.1.2
PKGNAME= eigen3-3.1.2
+PKGREVISION= 1
CATEGORIES= math
MASTER_SITES= http://bitbucket.org/eigen/eigen/get/
DIST_SUBDIR= eigen3
diff --git a/math/eigen3/PLIST b/math/eigen3/PLIST
index 4d9d6859de7..9756a4d0d77 100644
--- a/math/eigen3/PLIST
+++ b/math/eigen3/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2013/03/17 19:37:19 markd Exp $
+@comment $NetBSD: PLIST,v 1.2 2013/04/01 12:14:33 joerg Exp $
include/eigen3/Eigen/Array
include/eigen3/Eigen/Cholesky
include/eigen3/Eigen/CholmodSupport
@@ -323,4 +323,4 @@ include/eigen3/unsupported/Eigen/src/SparseExtra/RandomSetter.h
include/eigen3/unsupported/Eigen/src/Splines/Spline.h
include/eigen3/unsupported/Eigen/src/Splines/SplineFitting.h
include/eigen3/unsupported/Eigen/src/Splines/SplineFwd.h
-share/pkgconfig/eigen3.pc
+lib/pkgconfig/eigen3.pc
diff --git a/math/eigen3/distinfo b/math/eigen3/distinfo
index b23727987ec..07bc34e35c9 100644
--- a/math/eigen3/distinfo
+++ b/math/eigen3/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1 2013/03/17 19:37:19 markd Exp $
+$NetBSD: distinfo,v 1.2 2013/04/01 12:14:33 joerg Exp $
SHA1 (eigen3/3.1.2.tar.bz2) = b788877a4d4b1685ee2a5d738a65b04b6a21ff3d
RMD160 (eigen3/3.1.2.tar.bz2) = 6bfb07d444445b36fb6aa0e9ff0108bb69b67f10
Size (eigen3/3.1.2.tar.bz2) = 1052120 bytes
+SHA1 (patch-CMakeLists.txt) = c6b9aa6c9f100416d12640a8968e02d881238f36
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)
+