eigen3: Update to 3.2.3. Fix pkgconfig file.

This commit is contained in:
Alexpux
2014-12-21 00:53:09 +03:00
parent bad194271d
commit 39e4e9bf07
2 changed files with 34 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
_realname=eigen
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}3")
pkgver=3.2.2
pkgver=3.2.3
pkgrel=1
pkgdesc="Lightweight C++ template library for vector and matrix math (mingw-w64)"
arch=('any')
@@ -14,17 +14,20 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-gcc")
source=("http://bitbucket.org/eigen/eigen/get/${pkgver}.tar.bz2"
'eigen-3.1.2_osversion.patch'
'eigen-3.2_gcc58087.patch'
'TryRunResults.cmake')
md5sums=('fc2e814ae449d16b331f7e1f4e272bd3'
'TryRunResults.cmake'
'eigen-pkgconfig.patch')
md5sums=('a88bf9a8e674762619429e80f46005bf'
'89587f79971efc8f363d478f48f86829'
'1db055c7681799bb21118b2dcf95980a'
'67e151de214f29c1e6cf00452916d7d4')
'67e151de214f29c1e6cf00452916d7d4'
'1add870c05bb4c7bfcb4b739bc895cd4')
prepare() {
cd "${srcdir}"/eigen-eigen-*
patch -Np2 -i "${srcdir}/eigen-3.1.2_osversion.patch"
patch -Np1 -i "${srcdir}/eigen-3.2_gcc58087.patch"
patch -Np1 -i "${srcdir}/eigen-pkgconfig.patch"
}
build() {

View File

@@ -0,0 +1,27 @@
--- eigen-eigen-1306d75b4a21/eigen3.pc.in.orig 2014-08-04 13:51:54.000000000 +0300
+++ eigen-eigen-1306d75b4a21/eigen3.pc.in 2014-12-21 00:44:50.850000000 +0300
@@ -1,6 +1,11 @@
+prefix=@CMAKE_INSTALL_PREFIX@
+exec_prefix=${prefix}
+libdir=@INCLUDE_INSTALL_DIR@
+includedir=@INCLUDE_INSTALL_DIR@
+
Name: Eigen3
Description: A C++ template library for linear algebra: vectors, matrices, and related algorithms
Requires:
-Version: ${EIGEN_VERSION_NUMBER}
+Version: @EIGEN_VERSION_NUMBER@
Libs:
-Cflags: -I${INCLUDE_INSTALL_DIR}
+Cflags: -I${includedir}
--- eigen-eigen-1306d75b4a21/CMakeLists.txt.orig 2014-12-21 00:45:25.606600000 +0300
+++ eigen-eigen-1306d75b4a21/CMakeLists.txt 2014-12-21 00:45:50.519800000 +0300
@@ -336,7 +336,7 @@
message(STATUS "pkgconfig not found; installing in ${pkg_config_install_dir}" )
endif(pkg_config_libdir)
- configure_file(eigen3.pc.in eigen3.pc)
+ configure_file(eigen3.pc.in eigen3.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/eigen3.pc
DESTINATION ${pkg_config_install_dir}/pkgconfig
)