diff options
Diffstat (limited to 'meta-oe/recipes-graphics/openjpeg/openjpeg/0001-This-patch-fixed-include-dir-to-usr-include-.-Obviou.patch')
-rw-r--r-- | meta-oe/recipes-graphics/openjpeg/openjpeg/0001-This-patch-fixed-include-dir-to-usr-include-.-Obviou.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/openjpeg/openjpeg/0001-This-patch-fixed-include-dir-to-usr-include-.-Obviou.patch b/meta-oe/recipes-graphics/openjpeg/openjpeg/0001-This-patch-fixed-include-dir-to-usr-include-.-Obviou.patch new file mode 100644 index 0000000000..663f499df6 --- /dev/null +++ b/meta-oe/recipes-graphics/openjpeg/openjpeg/0001-This-patch-fixed-include-dir-to-usr-include-.-Obviou.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | From 3e4fe4c42d4d63c36df966baea87da6fbc032553 Mon Sep 17 00:00:00 2001 | ||
2 | From: Lei Maohui <leimaohui@cn.fujitsu.com> | ||
3 | Date: Thu, 7 Jan 2021 16:05:28 +0900 | ||
4 | Subject: [PATCH] This patch fixed include dir to /usr/include/. Obviously, it | ||
5 | is not suitble for cross-compile. So, removed this patch temporarily. | ||
6 | https://github.com/uclouvain/openjpeg/issues/1174 | ||
7 | |||
8 | Upsteam-Status: Pending | ||
9 | https://github.com/uclouvain/openjpeg/issues/1320 | ||
10 | |||
11 | Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com> | ||
12 | --- | ||
13 | cmake/OpenJPEGConfig.cmake.in | 6 +++++- | ||
14 | 1 file changed, 5 insertions(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/cmake/OpenJPEGConfig.cmake.in b/cmake/OpenJPEGConfig.cmake.in | ||
17 | index 8a726697..2925108a 100644 | ||
18 | --- a/cmake/OpenJPEGConfig.cmake.in | ||
19 | +++ b/cmake/OpenJPEGConfig.cmake.in | ||
20 | @@ -27,8 +27,12 @@ if(EXISTS ${SELF_DIR}/OpenJPEGTargets.cmake) | ||
21 | # This is an install tree | ||
22 | include(${SELF_DIR}/OpenJPEGTargets.cmake) | ||
23 | |||
24 | + # We find a relative path from the PKG directory to header files. | ||
25 | + set(PKG_DIR "@CMAKE_INSTALL_PREFIX@/@OPENJPEG_INSTALL_PACKAGE_DIR@") | ||
26 | set(INC_DIR "@CMAKE_INSTALL_PREFIX@/@OPENJPEG_INSTALL_INCLUDE_DIR@") | ||
27 | - get_filename_component(OPENJPEG_INCLUDE_DIRS "${INC_DIR}" ABSOLUTE) | ||
28 | + file(RELATIVE_PATH PKG_TO_INC_RPATH "${PKG_DIR}" "${INC_DIR}") | ||
29 | + | ||
30 | + get_filename_component(OPENJPEG_INCLUDE_DIRS "${SELF_DIR}/${PKG_TO_INC_RPATH}" ABSOLUTE) | ||
31 | |||
32 | else() | ||
33 | if(EXISTS ${SELF_DIR}/OpenJPEGExports.cmake) | ||
34 | -- | ||
35 | 2.25.1 | ||
36 | |||