Move koffice to applications/office
[nixpkgs-libre.git] / pkgs / applications / office / koffice / wpd.patch
blob56a5b65e50b3aa5c4c85db36926c2b2d26fd001f
1 diff cmake/modules/FindWPD.cmake cmake/modules/FindWPD.cmake
2 index 9bd788c..927785a 100644
3 --- cmake/modules/FindWPD.cmake
4 +++ cmake/modules/FindWPD.cmake
5 @@ -19,14 +19,17 @@ if (WPD_INCLUDE_DIR AND WPD_LIBRARIES)
6 else (WPD_INCLUDE_DIR AND WPD_LIBRARIES)
7 if(NOT WIN32)
8 INCLUDE(FindPkgConfig)
9 - pkg_check_modules(WPD libwpd-0.8)
10 + pkg_check_modules(PKG_WPD libwpd-0.8)
11 endif(NOT WIN32)
13 FIND_PATH(WPD_INCLUDE_DIR libwpd/libwpd.h
14 - ${WPD_INCLUDE_DIR}
15 + ${PKG_WPD_INCLUDE_DIRS}
16 /usr/include/libwpd-0.8
19 + FIND_LIBRARY(WPD_LIBRARIES wpd-0.8
20 + ${PKG_WPD_LIBRARY_DIRS}
21 + )
23 include(FindPackageHandleStandardArgs)
24 FIND_PACKAGE_HANDLE_STANDARD_ARGS(WPD DEFAULT_MSG WPD_INCLUDE_DIR WPD_LIBRARIES )