libreoffice: update to 24.8.4.2
[oi-userland.git] / components / image / plplot / patches / 02-directories.patch
blob921be6b2ce541a8f9250e2f4d5b41bae285b8e0c
1 plplot forgets about install prefix while searching for self
3 There's a mess in cmake infrastructure if CMAKE_INSTALL_FOO_DIR is
4 relative or not. Trying to fix it.
6 --- plplot-5.13.0/cmake/modules/instdirs.cmake.~1~ 2017-08-26 05:43:25.000000000 +0000
7 +++ plplot-5.13.0/cmake/modules/instdirs.cmake 2018-09-07 18:45:27.925109366 +0000
8 @@ -34,6 +34,8 @@
9 # locations below (without the CMAKE_INSTALL prefix) that are directly
10 # used for installations.
12 +INCLUDE(GNUInstallDirs)
14 set(INSTALL_LOCATION_VARIABLES_LIST)
15 set(
16 CMAKE_INSTALL_EXEC_PREFIX
17 @@ -99,56 +101,56 @@
19 set(
20 DATA_DIR
21 - ${CMAKE_INSTALL_DATADIR}/${PACKAGE}${PLPLOT_VERSION}
22 + ${CMAKE_INSTALL_FULL_DATADIR}/${PACKAGE}${PLPLOT_VERSION}
23 CACHE PATH "PLplot install location for architecture-independent data"
25 list(APPEND INSTALL_LOCATION_VARIABLES_LIST DATA_DIR)
27 set(
28 LIB_DIR
29 - ${CMAKE_INSTALL_LIBDIR}
30 + ${CMAKE_INSTALL_FULL_LIBDIR}
31 CACHE PATH "PLplot install location for object code libraries"
33 list(APPEND INSTALL_LOCATION_VARIABLES_LIST LIB_DIR)
35 set(
36 INCLUDE_DIR
37 - ${CMAKE_INSTALL_INCLUDEDIR}/${PACKAGE}
38 + ${CMAKE_INSTALL_FULL_INCLUDEDIR}/${PACKAGE}
39 CACHE PATH "PLplot install location for C header files"
41 list(APPEND INSTALL_LOCATION_VARIABLES_LIST INCLUDE_DIR)
43 set(
44 BIN_DIR
45 - ${CMAKE_INSTALL_BINDIR}
46 + ${CMAKE_INSTALL_FULL_BINDIR}
47 CACHE PATH "PLplot install location for user executables"
49 list(APPEND INSTALL_LOCATION_VARIABLES_LIST BIN_DIR)
51 set(
52 DRV_DIR
53 - ${CMAKE_INSTALL_LIBDIR}/${PACKAGE}${PLPLOT_VERSION}/drivers
54 + ${CMAKE_INSTALL_FULL_LIBDIR}/${PACKAGE}${PLPLOT_VERSION}/drivers
55 CACHE PATH "PLplot install location for dynamically loaded devices"
57 list(APPEND INSTALL_LOCATION_VARIABLES_LIST DRV_DIR)
59 set(
60 DOC_DIR
61 - ${CMAKE_INSTALL_DATADIR}/doc/${PACKAGE}
62 + ${CMAKE_INSTALL_FULL_DATADIR}/doc/${PACKAGE}
63 CACHE PATH "PLplot install location for (architecture-independent) documentation files"
65 list(APPEND INSTALL_LOCATION_VARIABLES_LIST DOC_DIR)
67 set(
68 INFO_DIR
69 - ${CMAKE_INSTALL_INFODIR}
70 + ${CMAKE_INSTALL_FULL_INFODIR}
71 CACHE PATH "PLplot install location for (architecture-independent) info files"
73 list(APPEND INSTALL_LOCATION_VARIABLES_LIST INFO_DIR)
75 set(
76 MAN_DIR
77 - ${CMAKE_INSTALL_MANDIR}
78 + ${CMAKE_INSTALL_FULL_MANDIR}
79 CACHE PATH "PLplot install location for (architecture-independent) man files"
81 list(APPEND INSTALL_LOCATION_VARIABLES_LIST MAN_DIR)