diff options
| -rw-r--r-- | meta-oe/recipes-connectivity/gattlib/files/0001-cmake-Use-GNUInstallDirs.patch | 53 | ||||
| -rw-r--r-- | meta-oe/recipes-connectivity/gattlib/gattlib_git.bb | 8 |
2 files changed, 58 insertions, 3 deletions
diff --git a/meta-oe/recipes-connectivity/gattlib/files/0001-cmake-Use-GNUInstallDirs.patch b/meta-oe/recipes-connectivity/gattlib/files/0001-cmake-Use-GNUInstallDirs.patch new file mode 100644 index 0000000000..ffe0a00673 --- /dev/null +++ b/meta-oe/recipes-connectivity/gattlib/files/0001-cmake-Use-GNUInstallDirs.patch | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | From 63dc2d0c9384d85482dc4cbb3c179b4b0bb18d4e Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Thu, 19 Dec 2019 22:32:01 -0800 | ||
| 4 | Subject: [PATCH] cmake: Use GNUInstallDirs | ||
| 5 | |||
| 6 | Helps install cmakefiles in right libdir | ||
| 7 | |||
| 8 | Upstream-Status: Submitted [https://github.com/labapart/gattlib/pull/139] | ||
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 10 | --- | ||
| 11 | CMakeLists.txt | 5 +++-- | ||
| 12 | dbus/CMakeLists.txt | 18 ++++++++++-------- | ||
| 13 | 2 files changed, 13 insertions(+), 10 deletions(-) | ||
| 14 | |||
| 15 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
| 16 | index 12d8d71..ded7239 100644 | ||
| 17 | --- a/CMakeLists.txt | ||
| 18 | +++ b/CMakeLists.txt | ||
| 19 | @@ -152,7 +152,8 @@ endif() | ||
| 20 | # | ||
| 21 | # List of file to install | ||
| 22 | # | ||
| 23 | -install(FILES include/gattlib.h DESTINATION include) | ||
| 24 | -install(FILES ${PROJECT_BINARY_DIR}/gattlib.pc DESTINATION lib/pkgconfig) | ||
| 25 | +include(GNUInstallDirs) | ||
| 26 | +install(FILES include/gattlib.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) | ||
| 27 | +install(FILES ${PROJECT_BINARY_DIR}/gattlib.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) | ||
| 28 | |||
| 29 | include(CPack) | ||
| 30 | diff --git a/dbus/CMakeLists.txt b/dbus/CMakeLists.txt | ||
| 31 | index f5096ce..cef031f 100644 | ||
| 32 | --- a/dbus/CMakeLists.txt | ||
| 33 | +++ b/dbus/CMakeLists.txt | ||
| 34 | @@ -19,7 +19,7 @@ | ||
| 35 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 36 | # | ||
| 37 | |||
| 38 | -cmake_minimum_required(VERSION 2.6) | ||
| 39 | +cmake_minimum_required(VERSION 3.0) | ||
| 40 | |||
| 41 | find_package(PkgConfig REQUIRED) | ||
| 42 | |||
| 43 | @@ -119,4 +119,6 @@ endif() | ||
| 44 | add_library(gattlib SHARED ${gattlib_SRCS}) | ||
| 45 | target_link_libraries(gattlib ${gattlib_LIBS}) | ||
| 46 | |||
| 47 | -install(TARGETS gattlib LIBRARY DESTINATION lib) | ||
| 48 | +include(GNUInstallDirs) | ||
| 49 | + | ||
| 50 | +install(TARGETS gattlib LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) | ||
| 51 | -- | ||
| 52 | 2.24.1 | ||
| 53 | |||
diff --git a/meta-oe/recipes-connectivity/gattlib/gattlib_git.bb b/meta-oe/recipes-connectivity/gattlib/gattlib_git.bb index 0e6fce9c91..6b4decce51 100644 --- a/meta-oe/recipes-connectivity/gattlib/gattlib_git.bb +++ b/meta-oe/recipes-connectivity/gattlib/gattlib_git.bb | |||
| @@ -9,11 +9,13 @@ DEPENDS += "glib-2.0-native" | |||
| 9 | 9 | ||
| 10 | PV = "0.2+git${SRCPV}" | 10 | PV = "0.2+git${SRCPV}" |
| 11 | 11 | ||
| 12 | SRC_URI = "git://github.com/labapart/gattlib.git" | 12 | SRC_URI = "git://github.com/labapart/gattlib.git \ |
| 13 | SRC_URI += "file://dbus-avoid-strange-chars-from-the-build-dir.patch" | 13 | file://dbus-avoid-strange-chars-from-the-build-dir.patch \ |
| 14 | file://0001-cmake-Use-GNUInstallDirs.patch \ | ||
| 15 | " | ||
| 14 | 16 | ||
| 15 | SRCBRANCH = "master" | 17 | SRCBRANCH = "master" |
| 16 | SRCREV = "c6a33252221dff904cf277e085e2ce70aced8788" | 18 | SRCREV = "5c7ee43bd70ee09a7170ddd55b9fdbdef69e9080" |
| 17 | 19 | ||
| 18 | S = "${WORKDIR}/git" | 20 | S = "${WORKDIR}/git" |
| 19 | 21 | ||
