Ticket #39608: cmake-2.8.11.2.patch

File cmake-2.8.11.2.patch, 3.4 KB (added by mojca (Mojca Miklavec), 11 years ago)

patch for upgrading CMake to 2.8.2.11.2

  • Portfile

     
    55PortGroup       muniversal 1.0
    66
    77name            cmake
    8 version         2.8.10.2
     8version         2.8.11.2
    99set branch      [join [lrange [split ${version} .] 0 1] .]
    1010categories      devel
    1111license         BSD
     
    2121master_sites    http://www.cmake.org/files/v${branch}/
    2222platforms       darwin freebsd
    2323
    24 checksums           rmd160  03274f790edd5dd94a8e1c94eade36864eaf5b2b \
    25                     sha256  ce524fb39da06ee6d47534bbcec6e0b50422e18b62abc4781a4ba72ea2910eb1
     24checksums           rmd160  4fe1fe6306cae0d11da53b30266203c846e484d8 \
     25                    sha256  b32acb483afdd14339941c6e4ec25f633d916a7a472653a0b00838771a6c0562
    2626
    2727depends_lib-append port:libidn port:openssl
    2828
     
    4848}
    4949
    5050patchfiles      patch-CMakeFindFrameworks.cmake.diff \
    51                         patch-Modules-FindQt4.cmake.diff \
    52                         patch-Utilities-cmcurl-strequal.h.diff
     51                        patch-Modules-FindQt4.cmake.diff
    5352
    5453post-patch {
    5554        # copy cmake init file, ready to be patched below
  • files/patch-Modules-FindQt4.cmake.diff

     
    11--- Modules/FindQt4.cmake.orig  2013-01-03 21:15:16.000000000 -0500
    22+++ Modules/FindQt4.cmake       2013-01-03 21:24:55.000000000 -0500
    3 @@ -550,7 +550,8 @@
     3@@ -592,7 +592,8 @@
    44     set(QT_MKSPECS_DIR NOTFOUND)
    55     find_path(QT_MKSPECS_DIR NAMES qconfig.pri
    66       HINTS ${qt_cross_paths} ${qt_mkspecs_dirs}
     
    1010   endif()
    1111 
    1212   if(EXISTS "${QT_MKSPECS_DIR}/qconfig.pri")
    13 @@ -644,6 +645,7 @@
    14        find_path(QT_QTCORE_INCLUDE_DIR QtCore
    15                  HINTS ${qt_headers} ${QT_LIBRARY_DIR}
    16                  PATH_SUFFIXES QtCore qt4/QtCore
    17 +                NO_DEFAULT_PATH
    18          )
     13@@ -692,6 +693,7 @@
     14         find_path(QT_QTCORE_INCLUDE_DIR QtCore
     15                   HINTS ${qt_headers} ${QT_LIBRARY_DIR}
     16                   PATH_SUFFIXES QtCore qt4/QtCore
     17+                  NO_DEFAULT_PATH
     18           )
     19       endif()
    1920 
    20        # Set QT_HEADERS_DIR based on finding QtCore header
    21 @@ -696,7 +698,8 @@
     21@@ -745,7 +747,8 @@
    2222     endforeach()
    2323     find_path(QT_PLUGINS_DIR NAMES accessible imageformats sqldrivers codecs designer
    2424       HINTS ${qt_cross_paths} ${qt_plugins_dir}
     
    2828   endif ()
    2929 
    3030   # ask qmake for the translations directory
    31 @@ -716,8 +719,7 @@
     31@@ -765,8 +768,7 @@
    3232       find_path(QT_IMPORTS_DIR NAMES Qt
    3333         HINTS ${qt_cross_paths} ${qt_imports_dir}
    3434         DOC "The location of the Qt imports"
  • files/patch-Utilities-cmcurl-strequal.h.diff

     
    1 --- Utilities/cmcurl/strequal.h.orig    2013-02-08 09:04:39.000000000 -0800
    2 +++ Utilities/cmcurl/strequal.h 2013-02-08 09:05:41.000000000 -0800
    3 @@ -35,9 +35,10 @@
    4  /* case insensitive strstr() */
    5  char *Curl_strcasestr(const char *haystack, const char *needle);
    6  
    7 -#ifndef HAVE_STRLCAT
    8 +#ifdef HAVE_STRLCAT
    9 +#include <string.h>
    10 +#else
    11  #define strlcat(x,y,z) Curl_strlcat(x,y,z)
    12  #endif
    13 -size_t strlcat(char *dst, const char *src, size_t siz);
    14  
    15  #endif