diff options
author | 2021-01-09 16:37:59 -0500 | |
---|---|---|
committer | 2021-01-09 18:47:26 -0500 | |
commit | 333ffeb4deaa942c2c6101a4c5f9ea5774d307b7 (patch) | |
tree | 145585bea043df51e0559d962b080cf625816bd3 /dev-libs/unittest++/files/unittest++-2.0.0-cmake-fix-pkgconfig-dir-path-on-FreeBSD.patch | |
parent | kde-frameworks/extra-cmake-modules: Stabilize 5.77.0 ppc64, #759625 (diff) | |
download | gentoo-333ffeb4deaa942c2c6101a4c5f9ea5774d307b7.tar.gz gentoo-333ffeb4deaa942c2c6101a4c5f9ea5774d307b7.tar.bz2 gentoo-333ffeb4deaa942c2c6101a4c5f9ea5774d307b7.zip |
dev-libs/unittest++: Fix libdir
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'dev-libs/unittest++/files/unittest++-2.0.0-cmake-fix-pkgconfig-dir-path-on-FreeBSD.patch')
-rw-r--r-- | dev-libs/unittest++/files/unittest++-2.0.0-cmake-fix-pkgconfig-dir-path-on-FreeBSD.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-libs/unittest++/files/unittest++-2.0.0-cmake-fix-pkgconfig-dir-path-on-FreeBSD.patch b/dev-libs/unittest++/files/unittest++-2.0.0-cmake-fix-pkgconfig-dir-path-on-FreeBSD.patch new file mode 100644 index 000000000000..44c243670027 --- /dev/null +++ b/dev-libs/unittest++/files/unittest++-2.0.0-cmake-fix-pkgconfig-dir-path-on-FreeBSD.patch @@ -0,0 +1,28 @@ +From 85bade33f596a4dab33eb6d44f662d64fc20f510 Mon Sep 17 00:00:00 2001 +From: Iblis Lin <iblis@hs.ntnu.edu.tw> +Date: Sat, 14 Jan 2017 23:00:24 +0800 +Subject: [PATCH] cmake: fix pkgconfig dir path on FreeBSD + +--- + CMakeLists.txt | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index fb10f47..a0f5511 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -106,5 +106,10 @@ set(exec_prefix ${CMAKE_INSTALL_PREFIX}/bin) + set(libdir ${CMAKE_INSTALL_PREFIX}/lib) + set(includedir ${CMAKE_INSTALL_PREFIX}/include/UnitTest++) + configure_file("UnitTest++.pc.in" "UnitTest++.pc" @ONLY) ++if(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD") ++ set(pkgconfdir ${CMAKE_INSTALL_PREFIX}/libdata/pkgconfig) ++else() ++ set(pkgconfdir ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig) ++endif() + install(FILES "${CMAKE_CURRENT_BINARY_DIR}/UnitTest++.pc" +- DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig") ++ DESTINATION "${pkgconfdir}") +-- +2.26.2 + |