aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrakuco <rakuco@FreeBSD.org>2013-07-10 05:36:23 +0800
committerrakuco <rakuco@FreeBSD.org>2013-07-10 05:36:23 +0800
commit74e9fbdccc0528fe3e88346da9ea357a75d21358 (patch)
tree328f4040905cd9c17fb8ba6ca18cf06a13a48c73
parent38f37f90b04996946b0f277fa4175dae15bd79f4 (diff)
downloadfreebsd-ports-gnome-74e9fbdccc0528fe3e88346da9ea357a75d21358.tar.gz
freebsd-ports-gnome-74e9fbdccc0528fe3e88346da9ea357a75d21358.tar.zst
freebsd-ports-gnome-74e9fbdccc0528fe3e88346da9ea357a75d21358.zip
Add patch fixing the behavior of FindLibkvm.cmake to prepare for CMake 2.8.11.2.
CMake >= 2.8.11 includes a bug fix [1] that ends up showing a problem with the current FindLibkvm.cmake that makes the port fail to build. Apply my upstream fix [2] to make everything work across all CMake versions. [1] http://public.kitware.com/Bug/view.php?id=13755 [2] https://github.com/fcitx/fcitx/pull/119 Approved by: portmgr (bapt)
-rw-r--r--chinese/fcitx/files/patch-cmake_modules_FindLibkvm.cmake34
1 files changed, 34 insertions, 0 deletions
diff --git a/chinese/fcitx/files/patch-cmake_modules_FindLibkvm.cmake b/chinese/fcitx/files/patch-cmake_modules_FindLibkvm.cmake
new file mode 100644
index 000000000000..f79e91036651
--- /dev/null
+++ b/chinese/fcitx/files/patch-cmake_modules_FindLibkvm.cmake
@@ -0,0 +1,34 @@
+diff --git a/cmake/FindLibkvm.cmake b/cmake/FindLibkvm.cmake
+index a66b85d..4453fd4 100644
+--- cmake/FindLibkvm.cmake
++++ cmake/FindLibkvm.cmake
+@@ -5,23 +5,11 @@
+ # LIBKVM_INCLUDE_DIR - Libkvm include directory
+ # LIBKVM_LIBRARIES - Libraries needed to use Libkvm
+ #
+-
+-if(LIBKVM_INCLUDE_DIR AND LIBKVM_FOUND)
+- set(Libkvm_FIND_QUIETLY TRUE)
+-endif(LIBKVM_INCLUDE_DIR AND LIBKVM_FOUND)
+-
++
+ find_path(LIBKVM_INCLUDE_DIR kvm.h)
+-
+-set(LIBKVM_FOUND FALSE)
+-
+-if(LIBKVM_INCLUDE_DIR)
+- find_library(LIBKVM_LIBRARIES NAMES kvm)
+- if(LIBKVM_LIBRARIES)
+- set(LIBKVM_FOUND TRUE)
+- endif(LIBKVM_LIBRARIES)
+-endif(LIBKVM_INCLUDE_DIR)
+-
++find_library(LIBKVM_LIBRARIES NAMES kvm)
++
+ include(FindPackageHandleStandardArgs)
+-find_package_handle_standard_args(Libkvm DEFAULT_MSG LIBKVM_INCLUDE_DIR LIBKVM_FOUND)
+-
+-mark_as_advanced(LIBKVM_INCLUDE_DIR LIBKVM_LIBRARIES LIBKVM_LIBC_HAS_KVM_OPEN LIBKVM_FOUND)
++find_package_handle_standard_args(Libkvm DEFAULT_MSG LIBKVM_INCLUDE_DIR LIBKVM_LIBRARIES)
++
++mark_as_advanced(LIBKVM_INCLUDE_DIR LIBKVM_LIBRARIES)