aboutsummaryrefslogtreecommitdiff
path: root/finance/kmymoney/files/patch-cmake_modules_FindLibOfx.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'finance/kmymoney/files/patch-cmake_modules_FindLibOfx.cmake')
-rw-r--r--finance/kmymoney/files/patch-cmake_modules_FindLibOfx.cmake20
1 files changed, 20 insertions, 0 deletions
diff --git a/finance/kmymoney/files/patch-cmake_modules_FindLibOfx.cmake b/finance/kmymoney/files/patch-cmake_modules_FindLibOfx.cmake
new file mode 100644
index 000000000000..8da21c0a3704
--- /dev/null
+++ b/finance/kmymoney/files/patch-cmake_modules_FindLibOfx.cmake
@@ -0,0 +1,20 @@
+Use CMake to find libofx instead of just relying on pkgconf
+
+--- cmake/modules/FindLibOfx.cmake.orig 2018-02-06 18:22:38 UTC
++++ cmake/modules/FindLibOfx.cmake
+@@ -25,14 +25,13 @@ IF (NOT WIN32)
+ # use pkg-config to get the directories and then use these values
+ # in the FIND_PATH() and FIND_LIBRARY() calls
+ FIND_PACKAGE(PkgConfig)
+- PKG_CHECK_MODULES(LIBOFX libofx>=${LIBOFX_MIN_VERSION})
++ PKG_CHECK_MODULES(PC_OFX libofx>=${LIBOFX_MIN_VERSION})
+ # I am not sure what the next statement should do, since the
+ # var LIBOFX_DEFINITIONS is not used anywhere. Leave it here
+ # in case I overlooked something, but it could really go
+ # at some point in time (ipwizard, 2011-02-15)
+ # SET(LIBOFX_DEFINITIONS ${LIBOFX_CFLAGS_OTHER})
+
+-ELSE (NOT WIN32)
+ FIND_PATH(LIBOFX_INCLUDE_DIR libofx/libofx.h
+ PATHS
+ ${PC_OFX_INCLUDEDIR}