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) |
---|
-
Portfile
5 5 PortGroup muniversal 1.0 6 6 7 7 name cmake 8 version 2.8.1 0.28 version 2.8.11.2 9 9 set branch [join [lrange [split ${version} .] 0 1] .] 10 10 categories devel 11 11 license BSD … … 21 21 master_sites http://www.cmake.org/files/v${branch}/ 22 22 platforms darwin freebsd 23 23 24 checksums rmd160 03274f790edd5dd94a8e1c94eade36864eaf5b2b\25 sha256 ce524fb39da06ee6d47534bbcec6e0b50422e18b62abc4781a4ba72ea2910eb124 checksums rmd160 4fe1fe6306cae0d11da53b30266203c846e484d8 \ 25 sha256 b32acb483afdd14339941c6e4ec25f633d916a7a472653a0b00838771a6c0562 26 26 27 27 depends_lib-append port:libidn port:openssl 28 28 … … 48 48 } 49 49 50 50 patchfiles patch-CMakeFindFrameworks.cmake.diff \ 51 patch-Modules-FindQt4.cmake.diff \ 52 patch-Utilities-cmcurl-strequal.h.diff 51 patch-Modules-FindQt4.cmake.diff 53 52 54 53 post-patch { 55 54 # copy cmake init file, ready to be patched below -
files/patch-Modules-FindQt4.cmake.diff
1 1 --- Modules/FindQt4.cmake.orig 2013-01-03 21:15:16.000000000 -0500 2 2 +++ Modules/FindQt4.cmake 2013-01-03 21:24:55.000000000 -0500 3 @@ -5 50,7 +550,8 @@3 @@ -592,7 +592,8 @@ 4 4 set(QT_MKSPECS_DIR NOTFOUND) 5 5 find_path(QT_MKSPECS_DIR NAMES qconfig.pri 6 6 HINTS ${qt_cross_paths} ${qt_mkspecs_dirs} … … 10 10 endif() 11 11 12 12 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() 19 20 20 # Set QT_HEADERS_DIR based on finding QtCore header 21 @@ -696,7 +698,8 @@ 21 @@ -745,7 +747,8 @@ 22 22 endforeach() 23 23 find_path(QT_PLUGINS_DIR NAMES accessible imageformats sqldrivers codecs designer 24 24 HINTS ${qt_cross_paths} ${qt_plugins_dir} … … 28 28 endif () 29 29 30 30 # ask qmake for the translations directory 31 @@ -7 16,8 +719,7 @@31 @@ -765,8 +768,7 @@ 32 32 find_path(QT_IMPORTS_DIR NAMES Qt 33 33 HINTS ${qt_cross_paths} ${qt_imports_dir} 34 34 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 -08002 +++ Utilities/cmcurl/strequal.h 2013-02-08 09:05:41.000000000 -08003 @@ -35,9 +35,10 @@4 /* case insensitive strstr() */5 char *Curl_strcasestr(const char *haystack, const char *needle);6 7 -#ifndef HAVE_STRLCAT8 +#ifdef HAVE_STRLCAT9 +#include <string.h>10 +#else11 #define strlcat(x,y,z) Curl_strlcat(x,y,z)12 #endif13 -size_t strlcat(char *dst, const char *src, size_t siz);14 15 #endif