diff options
author | rakuco <rakuco@FreeBSD.org> | 2015-01-01 01:46:03 +0800 |
---|---|---|
committer | rakuco <rakuco@FreeBSD.org> | 2015-01-01 01:46:03 +0800 |
commit | 0a93b659596f27724d77d6a8c82bd87c270e91de (patch) | |
tree | 42d50be0b01b33e95f176b2726143b2638529228 /polish/kadu | |
parent | e54a3295abaeba296478793a9e45e752defa5216 (diff) | |
download | freebsd-ports-gnome-0a93b659596f27724d77d6a8c82bd87c270e91de.tar.gz freebsd-ports-gnome-0a93b659596f27724d77d6a8c82bd87c270e91de.tar.zst freebsd-ports-gnome-0a93b659596f27724d77d6a8c82bd87c270e91de.zip |
CMake 3.1.0 compatibility, take 2.
Add another patch of mine sent upstream to make the port build with CMake
3.1.0. No PORTREVISION bump as there should be no changes in functionality
or contents of the generated package.
Diffstat (limited to 'polish/kadu')
-rw-r--r-- | polish/kadu/files/patch-cmake_3.1.0 | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/polish/kadu/files/patch-cmake_3.1.0 b/polish/kadu/files/patch-cmake_3.1.0 new file mode 100644 index 000000000000..ac846bc560eb --- /dev/null +++ b/polish/kadu/files/patch-cmake_3.1.0 @@ -0,0 +1,37 @@ +Submitted upstream: https://gitorious.org/kadu/kadu/merge_requests/2122 + +From: Raphael Kubo da Costa <rakuco@FreeBSD.org> +Date: Wed, 31 Dec 2014 01:15:28 +0200 +Subject: [PATCH] Rename INSTALL_PREFIX to KADU_INSTALL_PREFIX. + +In CMake 3.1.0, INSTALL_PREFIX is now an optional argument to +configure_package_config_file(), so our call was confusing the +function's argument parsing code. + +Fix it by renaming INSTALL_PREFIX to KADU_INSTALL_PREFIX. + +Signed-off-by: Raphael Kubo da Costa <rakuco@FreeBSD.org> +--- CMakeLists.txt ++++ CMakeLists.txt +@@ -195,8 +195,8 @@ foreach (install_var ${install_vars}) + endif () + endforeach () + +-set (INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") +-set (path_vars INSTALL_PREFIX) ++set (KADU_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") ++set (path_vars KADU_INSTALL_PREFIX) + if (UNIX AND NOT APPLE) + list (APPEND path_vars DESKTOP_FILE_DIR) + endif () +--- cmake/KaduConfig.cmake.in ++++ cmake/KaduConfig.cmake.in +@@ -20,7 +20,7 @@ endif () + set (KADU_INCLUDE_DIR "@PACKAGE_INCLUDE_DIR@") + set (KADU_INCLUDE_DIRS "@PACKAGE_INCLUDE_DIR@" "@PACKAGE_INCLUDE_DIR@/kadu-core") + set (KADU_SDK_DIR "@PACKAGE_SDK_DIR@") +-set (KADU_INSTALL_PREFIX "@PACKAGE_INSTALL_PREFIX@") ++set (KADU_INSTALL_PREFIX "@PACKAGE_KADU_INSTALL_PREFIX@") + + set (KADU_INSTALL_SDK "@INSTALL_SDK@") + |