]> git.pld-linux.org Git - packages/plplot.git/commitdiff
- fix building with cmake 3.1
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 6 Apr 2015 14:15:11 +0000 (16:15 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Mon, 6 Apr 2015 14:15:11 +0000 (16:15 +0200)
plplot-cmake31.patch [new file with mode: 0644]
plplot.spec

diff --git a/plplot-cmake31.patch b/plplot-cmake31.patch
new file mode 100644 (file)
index 0000000..42c32cc
--- /dev/null
@@ -0,0 +1,25 @@
+diff -up plplot-5.10.0/cmake/modules/pkg-config.cmake.cmake31 plplot-5.10.0/cmake/modules/pkg-config.cmake
+--- plplot-5.10.0/cmake/modules/pkg-config.cmake.cmake31       2014-02-05 22:06:07.000000000 -0700
++++ plplot-5.10.0/cmake/modules/pkg-config.cmake       2015-02-06 08:49:06.376911059 -0700
+@@ -1,6 +1,6 @@
+ # cmake/modules/pkg-config.cmake
+ #
+-# Copyright (C) 2006  Alan W. Irwin
++# Copyright (C) 2006-2015  Alan W. Irwin
+ #
+ # This file is part of PLplot.
+ #
+@@ -94,7 +94,12 @@ macro(pkg_check_pkgconfig _package _incl
+     set(_xprefix ${_prefix})
+   endif(FORCE_EXTERNAL_STATIC)
+   
+-  _pkg_check_modules_internal(0 0 ${_prefix} "${_package}")
++  if(CMAKE_VERSION VERSION_LESS "3.1")
++    _pkg_check_modules_internal(0 0 ${_prefix} "${_package}")
++  else(CMAKE_VERSION VERSION_LESS "3.1")
++    _pkg_check_modules_internal(0 0 0 0 ${_prefix} "${_package}")
++  endif(CMAKE_VERSION VERSION_LESS "3.1")
++    
+   if(${_prefix}_FOUND)
+     cmake_link_flags(${_link_FLAGS} "${${_xprefix}_LDFLAGS}")
+     # If libraries cannot be not found, then that is equivalent to whole
index 0585f2280130b5cf4243e509d75b488cbffc90aa..9e38445331d5d906259e5a1478f21cbcaf491105 100644 (file)
@@ -35,6 +35,7 @@ Patch4:               %{name}-nofonts.patch
 Patch5:                %{name}-adadirs.patch
 Patch6:                %{name}-ocamldir.patch
 Patch7:                %{name}-d.patch
+Patch8:                %{name}-cmake31.patch
 URL:           http://plplot.sourceforge.net/
 BuildRequires: QtGui-devel >= 4
 BuildRequires: QtSvg-devel >= 4
@@ -614,6 +615,7 @@ Biblioteka PLplot - przykłady do wiązania dla Pythona.
 %patch5 -p1
 %patch6 -p1
 %patch7 -p1
+%patch8 -p1
 
 # "Posix" is reserved and can be set only automatically
 #%{__sed} -i -e 's/-version=Posix //' cmake/modules/language_support/cmake/Platform/Linux-dmd.cmake
This page took 0.136592 seconds and 4 git commands to generate.