diff options
3 files changed, 17 insertions, 51 deletions
diff --git a/meta-oe/recipes-extended/liblightmodbus/liblightmodbus/0001-cmake-Use-GNUInstallDirs-instead-of-hardcoding-lib-p.patch b/meta-oe/recipes-extended/liblightmodbus/liblightmodbus/0001-cmake-Use-GNUInstallDirs-instead-of-hardcoding-lib-p.patch deleted file mode 100644 index 321b41289d..0000000000 --- a/meta-oe/recipes-extended/liblightmodbus/liblightmodbus/0001-cmake-Use-GNUInstallDirs-instead-of-hardcoding-lib-p.patch +++ /dev/null | |||
| @@ -1,37 +0,0 @@ | |||
| 1 | From 066c49158a71ea77598c9e1ae16bba63d6ac6bb5 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Thu, 19 Dec 2019 23:41:35 -0800 | ||
| 4 | Subject: [PATCH] cmake: Use GNUInstallDirs instead of hardcoding lib path | ||
| 5 | |||
| 6 | Upstream-Status: Submitted [https://github.com/Jacajack/liblightmodbus/pull/12] | ||
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 8 | --- | ||
| 9 | CMakeLists.txt | 6 +++--- | ||
| 10 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
| 11 | |||
| 12 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
| 13 | index ce6cc88..bee83aa 100644 | ||
| 14 | --- a/CMakeLists.txt | ||
| 15 | +++ b/CMakeLists.txt | ||
| 16 | @@ -242,14 +242,14 @@ if ( DEFINED AVR ) | ||
| 17 | ) | ||
| 18 | endif( ) | ||
| 19 | |||
| 20 | - | ||
| 21 | +include(GNUInstallDirs) | ||
| 22 | #Installation | ||
| 23 | install( | ||
| 24 | TARGETS lightmodbus | ||
| 25 | - ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/" | ||
| 26 | + ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/" | ||
| 27 | ) | ||
| 28 | |||
| 29 | #Install headers | ||
| 30 | install( | ||
| 31 | DIRECTORY "${CMAKE_SOURCE_DIR}/include/" DESTINATION "${CMAKE_INSTALL_PREFIX}/include/" FILES_MATCHING PATTERN "*.h" | ||
| 32 | -) | ||
| 33 | \ No newline at end of file | ||
| 34 | +) | ||
| 35 | -- | ||
| 36 | 2.24.1 | ||
| 37 | |||
diff --git a/meta-oe/recipes-extended/liblightmodbus/liblightmodbus_2.0.2.bb b/meta-oe/recipes-extended/liblightmodbus/liblightmodbus_2.0.2.bb deleted file mode 100644 index c310e0f527..0000000000 --- a/meta-oe/recipes-extended/liblightmodbus/liblightmodbus_2.0.2.bb +++ /dev/null | |||
| @@ -1,14 +0,0 @@ | |||
| 1 | SUMMARY = "A cross-platform, lightweight Modbus RTU library" | ||
| 2 | DESCRIPTION = "liblightmodbus is a very lightweight, highly configurable, \ | ||
| 3 | platform-independent Modbus RTU library." | ||
| 4 | |||
| 5 | LICENSE = "GPL-3.0-only" | ||
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=84dcc94da3adb52b53ae4fa38fe49e5d" | ||
| 7 | |||
| 8 | inherit cmake pkgconfig | ||
| 9 | |||
| 10 | SRC_URI = "git://github.com/Jacajack/liblightmodbus.git;protocol=https;branch=master \ | ||
| 11 | file://0001-cmake-Use-GNUInstallDirs-instead-of-hardcoding-lib-p.patch \ | ||
| 12 | " | ||
| 13 | SRCREV = "59d2b405f95701e5b04326589786dbb43ce49e81" | ||
| 14 | |||
diff --git a/meta-oe/recipes-extended/liblightmodbus/liblightmodbus_3.0.bb b/meta-oe/recipes-extended/liblightmodbus/liblightmodbus_3.0.bb new file mode 100644 index 0000000000..5f1233b2b4 --- /dev/null +++ b/meta-oe/recipes-extended/liblightmodbus/liblightmodbus_3.0.bb | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | SUMMARY = "A cross-platform, lightweight Modbus RTU library" | ||
| 2 | DESCRIPTION = "liblightmodbus is a very lightweight, highly configurable, \ | ||
| 3 | platform-independent Modbus RTU library." | ||
| 4 | |||
| 5 | LICENSE = "GPL-3.0-only" | ||
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=84dcc94da3adb52b53ae4fa38fe49e5d" | ||
| 7 | |||
| 8 | SRC_URI = "git://github.com/Jacajack/liblightmodbus.git;protocol=https;nobranch=1;tag=v${PV}" | ||
| 9 | SRCREV = "e7be88bc65abec4a902f4e5194d7235ebd3a19aa" | ||
| 10 | |||
| 11 | do_install() { | ||
| 12 | install -d ${D}${includedir}/lightmodbus | ||
| 13 | install -m 0644 ${S}/include/lightmodbus/*.h ${D}${includedir}/lightmodbus/ | ||
| 14 | |||
| 15 | install -d ${D}${libdir}/cmake/lightmodbus | ||
| 16 | install -m 0644 ${S}/lightmodbusConfig.cmake ${D}${libdir}/cmake/lightmodbus/ | ||
| 17 | } | ||
