aboutsummaryrefslogtreecommitdiffstats
path: root/math/plplot
diff options
context:
space:
mode:
authorrakuco <rakuco@FreeBSD.org>2016-07-16 18:52:14 +0800
committerrakuco <rakuco@FreeBSD.org>2016-07-16 18:52:14 +0800
commit86c73eb71730f7cce5bf687a28c89d7fd14de964 (patch)
treefeb8b701f72c97bef40c751c91f99c4c8fe3bacf /math/plplot
parent8bbd4292a010fd7d0a7181809d302a3fe46626ab (diff)
downloadfreebsd-ports-gnome-86c73eb71730f7cce5bf687a28c89d7fd14de964.tar.gz
freebsd-ports-gnome-86c73eb71730f7cce5bf687a28c89d7fd14de964.tar.zst
freebsd-ports-gnome-86c73eb71730f7cce5bf687a28c89d7fd14de964.zip
Add a patch (sent upstream) to make configuration work with CMake 3.6.0.
PR: 210988
Diffstat (limited to 'math/plplot')
-rw-r--r--math/plplot/files/patch-cmake_modules_pkg-config.cmake18
1 files changed, 18 insertions, 0 deletions
diff --git a/math/plplot/files/patch-cmake_modules_pkg-config.cmake b/math/plplot/files/patch-cmake_modules_pkg-config.cmake
new file mode 100644
index 000000000000..0eab651034f2
--- /dev/null
+++ b/math/plplot/files/patch-cmake_modules_pkg-config.cmake
@@ -0,0 +1,18 @@
+Adjust parameters passed to _pkg_check_modules_internal().
+Required for building with CMake 3.6.0.
+
+Submitted upstream: https://sourceforge.net/p/plplot/patches/33/
+--- cmake/modules/pkg-config.cmake.orig 2016-07-16 10:36:31 UTC
++++ cmake/modules/pkg-config.cmake
+@@ -120,8 +120,10 @@ macro(pkg_check_pkgconfig _package _incl
+
+ if(CMAKE_VERSION VERSION_LESS "3.1")
+ _pkg_check_modules_internal(0 0 ${_prefix} "${_package}")
+- else(CMAKE_VERSION VERSION_LESS "3.1")
++ elseif(CMAKE_VERSION VERSION_LESS "3.6")
+ _pkg_check_modules_internal(0 0 0 0 ${_prefix} "${_package}")
++ else(CMAKE_VERSION VERSION_LESS "3.1")
++ _pkg_check_modules_internal(0 0 0 0 0 ${_prefix} "${_package}")
+ endif(CMAKE_VERSION VERSION_LESS "3.1")
+
+ if(${_prefix}_FOUND)