diff options
Diffstat (limited to 'meta-oe/recipes-extended/qhull')
-rw-r--r-- | meta-oe/recipes-extended/qhull/qhull/0001-Use-LIB_INSTALL_DIR-for-cmake-and-pkgconfig-files-to.patch | 35 | ||||
-rw-r--r-- | meta-oe/recipes-extended/qhull/qhull_2020.2.bb | 26 |
2 files changed, 61 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/qhull/qhull/0001-Use-LIB_INSTALL_DIR-for-cmake-and-pkgconfig-files-to.patch b/meta-oe/recipes-extended/qhull/qhull/0001-Use-LIB_INSTALL_DIR-for-cmake-and-pkgconfig-files-to.patch new file mode 100644 index 0000000000..7003dd76c2 --- /dev/null +++ b/meta-oe/recipes-extended/qhull/qhull/0001-Use-LIB_INSTALL_DIR-for-cmake-and-pkgconfig-files-to.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From f72312ae0becb581cd428d17dbbcdf1b6f02ebee Mon Sep 17 00:00:00 2001 | ||
2 | From: Orion Poplawski <orion@nwra.com> | ||
3 | Date: Tue, 4 Oct 2022 21:56:58 -0600 | ||
4 | Subject: [PATCH] Use ${LIB_INSTALL_DIR} for cmake and pkgconfig files to | ||
5 | support multi-lib on Fedora/RedHat | ||
6 | |||
7 | Upstream-Status: Backport [https://github.com/qhull/qhull/commit/67d231c872aa1bae892e5da9646a10b303477039] | ||
8 | |||
9 | Signed-off-by: Martin Jansa <martin.jansa@gmail.com> | ||
10 | --- | ||
11 | CMakeLists.txt | 4 ++-- | ||
12 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
13 | |||
14 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
15 | index f50b187..c2248f9 100644 | ||
16 | --- a/CMakeLists.txt | ||
17 | +++ b/CMakeLists.txt | ||
18 | @@ -709,7 +709,7 @@ configure_file(${PROJECT_SOURCE_DIR}/build/config.cmake.in | ||
19 | @ONLY | ||
20 | ) | ||
21 | |||
22 | -set(ConfigPackageLocation lib/cmake/Qhull) | ||
23 | +set(ConfigPackageLocation ${LIB_INSTALL_DIR}/cmake/Qhull) | ||
24 | install(EXPORT QhullTargets | ||
25 | FILE | ||
26 | QhullTargets.cmake | ||
27 | @@ -728,7 +728,7 @@ install( | ||
28 | Devel | ||
29 | ) | ||
30 | |||
31 | -set(PkgConfigLocation lib/pkgconfig) | ||
32 | +set(PkgConfigLocation ${LIB_INSTALL_DIR}/pkgconfig) | ||
33 | foreach(pkgconfig IN ITEMS "${qhull_SHAREDR};Qhull reentrant shared library" | ||
34 | "${qhull_STATIC};Qhull static library" | ||
35 | "${qhull_STATICR};Qhull reentrant static library" | ||
diff --git a/meta-oe/recipes-extended/qhull/qhull_2020.2.bb b/meta-oe/recipes-extended/qhull/qhull_2020.2.bb new file mode 100644 index 0000000000..13638c391b --- /dev/null +++ b/meta-oe/recipes-extended/qhull/qhull_2020.2.bb | |||
@@ -0,0 +1,26 @@ | |||
1 | DESCRIPTION = "library to compute convex hulls, Delaunay triangulations and Voronoi diagrams." | ||
2 | HOMEPAGE = "http://www.qhull.org/" | ||
3 | SECTION = "libs" | ||
4 | LICENSE = "Qhull" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING.txt;md5=484ee0cacf0472e8b40225b116f6296c" | ||
6 | |||
7 | SRC_URI = "http://www.qhull.org/download/qhull-2020-src-8.0.2.tgz \ | ||
8 | file://0001-Use-LIB_INSTALL_DIR-for-cmake-and-pkgconfig-files-to.patch \ | ||
9 | " | ||
10 | SRC_URI[sha256sum] = "b5c2d7eb833278881b952c8a52d20179eab87766b00b865000469a45c1838b7e" | ||
11 | |||
12 | CFLAGS += "-fPIC" | ||
13 | |||
14 | EXTRA_OECMAKE += "\ | ||
15 | -DCMAKE_SKIP_RPATH=ON \ | ||
16 | -DLIB_INSTALL_DIR=${baselib} \ | ||
17 | " | ||
18 | |||
19 | inherit cmake | ||
20 | |||
21 | # The QhullTargets-noconfig.cmake checks for the executables despite not | ||
22 | # needing to execute them for the build. Staging bindir to the sysroot | ||
23 | # allows us to pass the check without building qhull natively | ||
24 | SYSROOT_DIRS:append = " \ | ||
25 | ${bindir} \ | ||
26 | " | ||