summaryrefslogtreecommitdiff
path: root/libraries/blas/patches/generate-pkgconfig.diff
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/blas/patches/generate-pkgconfig.diff')
-rw-r--r--libraries/blas/patches/generate-pkgconfig.diff26
1 files changed, 18 insertions, 8 deletions
diff --git a/libraries/blas/patches/generate-pkgconfig.diff b/libraries/blas/patches/generate-pkgconfig.diff
index f481ab8085..b351f46d56 100644
--- a/libraries/blas/patches/generate-pkgconfig.diff
+++ b/libraries/blas/patches/generate-pkgconfig.diff
@@ -13,15 +13,20 @@ diff --git a/BLAS/CMakeLists.txt b/BLAS/CMakeLists.txt
diff --git a/BLAS/blas.pc.in b/BLAS/blas.pc.in
--- a/BLAS/blas.pc.in
+++ b/BLAS/blas.pc.in
-@@ -1,7 +1,7 @@
- prefix=@prefix@
- libdir=@libdir@
+@@ -1,9 +1,9 @@
+-prefix=@CMAKE_INSTALL_PREFIX@
+-libdir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@
++prefix=@prefix@
++libdir=@libdir@
-Name: blas
+Name: BLAS
Description: Basic Linear Algebra Subprograms F77 reference implementations
Version: @LAPACK_VERSION@
URL: http://www.netlib.org/blas/
+-Libs: -L@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@ -lblas
++Libs: -L${libdir} -lblas
+ Libs.private: -lm
diff --git a/CBLAS/CMakeLists.txt b/CBLAS/CMakeLists.txt
--- a/CBLAS/CMakeLists.txt
+++ b/CBLAS/CMakeLists.txt
@@ -53,7 +58,7 @@ diff --git a/CBLAS/cblas.pc.in b/CBLAS/cblas.pc.in
diff --git a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
-@@ -112,6 +112,13 @@
+@@ -138,6 +138,13 @@
set(DSECOND_SRC ${LAPACK_SOURCE_DIR}/INSTALL/dsecnd_${TIME_FUNC}.f)
set(PKG_CONFIG_DIR ${LIBRARY_DIR}/pkgconfig)
@@ -67,7 +72,7 @@ diff --git a/CMakeLists.txt b/CMakeLists.txt
# --------------------------------------------------
# Precision to build
# By default all precisions are generated
-@@ -333,7 +340,7 @@
+@@ -359,7 +366,7 @@
${LAPACK_BINARY_DIR}/lapack-config.cmake @ONLY)
@@ -106,12 +111,17 @@ diff --git a/LAPACKE/lapacke.pc.in b/LAPACKE/lapacke.pc.in
diff --git a/lapack.pc.in b/lapack.pc.in
--- a/lapack.pc.in
+++ b/lapack.pc.in
-@@ -1,7 +1,7 @@
- prefix=@prefix@
- libdir=@libdir@
+@@ -1,9 +1,9 @@
+-prefix=@CMAKE_INSTALL_PREFIX@
+-libdir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@
++prefix=@prefix@
++libdir=@libdir@
-Name: lapack
+Name: LAPACK
Description: FORTRAN reference implementation of LAPACK Linear Algebra PACKage
Version: @LAPACK_VERSION@
URL: http://www.netlib.org/lapack/
+-Libs: -L@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@ -llapack
++Libs: -L${libdir} -llapack
+ Requires: blas