Ticket #46493: cmake_3.1.3.diff
File cmake_3.1.3.diff, 10.1 KB (added by michaelld (Michael Dickens), 10 years ago) |
---|
-
Portfile
5 5 PortGroup muniversal 1.0 6 6 7 7 name cmake 8 version 3.0.2 9 revision 1 8 version 3.1.3 10 9 set branch [join [lrange [split ${version} .] 0 1] .] 11 10 categories devel 12 11 license BSD 13 12 installs_libs no 14 maintainers css13 maintainers michaelld css 15 14 description Cross-platform make 16 15 long_description An extensible, open-source system that manages the build \ 17 16 process in an operating system and compiler independent manner. \ … … 21 20 master_sites http://www.cmake.org/files/v${branch}/ 22 21 platforms darwin freebsd 23 22 24 checksums rmd160 b94ea2ed4dced373e289fa5f66674a227135f350\25 sha256 6b4ea61eadbbd9bec0ccb383c29d1f4496eacc121ef7acf37c7a24777805693e23 checksums rmd160 2693ac550a2e08fbc34601e5d8b60f2abec99d1f \ 24 sha256 45f4d3fa8a2f61cc092ae461aac4cac1bab4ac6706f98274ea7f314dd315c6d0 26 25 27 26 depends_lib-append port:libidn \ 28 27 port:openssl \ … … 36 35 patch-Modules-FindFreetype.cmake.diff \ 37 36 patch-Modules-FindQt4.cmake.diff \ 38 37 patch-Modules-Platform-Darwin.cmake.diff \ 38 patch-Modules-Platform-Darwin-Initialize.cmake.diff \ 39 39 patch-Modules-noArchCheck.diff 40 40 41 41 configure.env-append \ -
files/patch-CMakeFindFrameworks.cmake.diff
1 --- Modules/CMakeFindFrameworks.cmake 2012-11-02 10:05:18.000000000 -07002 +++ Modules/CMakeFindFrameworks.cmake 2012-11-02 10:12:23.000000000 -07001 --- Modules/CMakeFindFrameworks.cmake.orig 2 +++ Modules/CMakeFindFrameworks.cmake 3 3 @@ -24,6 +24,7 @@ 4 4 if(APPLE) 5 5 foreach(dir -
files/patch-CMakeLists.txt.diff
1 --- CMakeLists.txt 1 --- CMakeLists.txt.orig 2 2 +++ CMakeLists.txt 3 3 @@ -476,7 +476,7 @@ if(BUILD_CursesDialog) 4 4 endif() -
files/patch-Modules-FindFreetype.cmake.diff
1 1 --- Modules/FindFreetype.cmake.orig 2 2 +++ Modules/FindFreetype.cmake 3 @@ -5 5,10 +55,6 @@ find_path(FREETYPE_INCLUDE_DIR_ft2build ft2build.h3 @@ -57,10 +57,6 @@ 4 4 HINTS 5 5 ENV FREETYPE_DIR 6 6 PATHS … … 11 11 ENV GTKMM_BASEPATH 12 12 [HKEY_CURRENT_USER\\SOFTWARE\\gtkmm\\2.4;Path] 13 13 [HKEY_LOCAL_MACHINE\\SOFTWARE\\gtkmm\\2.4;Path] 14 @@ -7 2,10 +68,6 @@ find_path(FREETYPE_INCLUDE_DIR_freetype214 @@ -78,10 +74,6 @@ 15 15 HINTS 16 16 ENV FREETYPE_DIR 17 17 PATHS … … 22 22 ENV GTKMM_BASEPATH 23 23 [HKEY_CURRENT_USER\\SOFTWARE\\gtkmm\\2.4;Path] 24 24 [HKEY_LOCAL_MACHINE\\SOFTWARE\\gtkmm\\2.4;Path] 25 @@ -88,10 +80,6 @@ find_library(FREETYPE_LIBRARY 25 @@ -99,10 +91,6 @@ 26 HINTS 26 27 ENV FREETYPE_DIR 27 PATH_SUFFIXES lib28 28 PATHS 29 29 - /usr/X11R6 30 30 - /usr/local/X11R6 -
files/patch-Modules-FindQt4.cmake.diff
1 1 --- Modules/FindQt4.cmake.orig 2 2 +++ Modules/FindQt4.cmake 3 @@ -7 28,9 +728,7 @@ if (QT_QMAKE_EXECUTABLE AND QTVERSION)3 @@ -741,9 +741,7 @@ 4 4 find_path(QT_IMPORTS_DIR NAMES Qt 5 5 HINTS ${qt_cross_paths} ${qt_imports_dir} 6 6 DOC "The location of the Qt imports" -
files/patch-Modules-Platform-Darwin-Initialize.cmake.diff
1 --- Modules/Platform/Darwin-Initialize.cmake.orig 2 +++ Modules/Platform/Darwin-Initialize.cmake 3 @@ -94,11 +94,17 @@ 4 NOT CMAKE_OSX_DEPLOYMENT_TARGET VERSION_EQUAL ${_CMAKE_OSX_DEPLOYMENT_TARGET}) 5 set(_CMAKE_OSX_SDKS_VER ${CMAKE_OSX_DEPLOYMENT_TARGET}${_CMAKE_OSX_SDKS_VER_SUFFIX_${CMAKE_OSX_DEPLOYMENT_TARGET}}) 6 set(_CMAKE_OSX_SYSROOT_CHECK "${_CMAKE_OSX_SDKS_DIR}/MacOSX${_CMAKE_OSX_SDKS_VER}.sdk") 7 - message(WARNING 8 - "CMAKE_OSX_DEPLOYMENT_TARGET is '${CMAKE_OSX_DEPLOYMENT_TARGET}' " 9 - "but the matching SDK does not exist at:\n \"${_CMAKE_OSX_SYSROOT_CHECK}\"\n" 10 - "Instead using SDK:\n \"${_CMAKE_OSX_SYSROOT_DEFAULT}\"." 11 - ) 12 + if(IS_DIRECTORY "${_CMAKE_OSX_SYSROOT_DEFAULT}") 13 + if(NOT "${CMAKE_OSX_DEPLOYMENT_TARGET}" STREQUAL "${_CURRENT_OSX_VERSION}") 14 + message(WARNING 15 + "CMAKE_OSX_DEPLOYMENT_TARGET is '${CMAKE_OSX_DEPLOYMENT_TARGET}' " 16 + "but the matching SDK does not exist at:\n \"${_CMAKE_OSX_SYSROOT_CHECK}\"\n" 17 + "Instead using SDK:\n \"${_CMAKE_OSX_SYSROOT_DEFAULT}\"." 18 + ) 19 + endif() 20 + else() 21 + set(_CMAKE_OSX_SYSROOT_DEFAULT "") 22 + endif() 23 endif() 24 else() 25 # Assume developer files are in root (such as Xcode 4.5 command-line tools). -
files/patch-Modules-Platform-Darwin.cmake.diff
1 --- Modules/Platform/Darwin.cmake.orig 2014-09-11 23:24:00.000000000 +1000 2 +++ Modules/Platform/Darwin.cmake 2014-10-21 14:02:52.000000000 +1100 3 @@ -140,12 +140,18 @@ 4 else() 5 set(_CMAKE_OSX_SDKS_VER ${_CURRENT_OSX_VERSION}${_CMAKE_OSX_SDKS_VER_SUFFIX_${_CURRENT_OSX_VERSION}}) 6 set(_CMAKE_OSX_SYSROOT_DEFAULT "${_CMAKE_OSX_SDKS_DIR}/MacOSX${_CMAKE_OSX_SDKS_VER}.sdk") 7 - message(WARNING 8 - "CMAKE_OSX_DEPLOYMENT_TARGET is '${CMAKE_OSX_DEPLOYMENT_TARGET}' " 9 - "but the matching SDK does not exist at:\n \"${_CMAKE_OSX_SYSROOT_CHECK}\"\n" 10 - "Instead using SDK:\n \"${_CMAKE_OSX_SYSROOT_DEFAULT}\"\n" 11 - "matching the host OS X version." 12 - ) 13 + if(IS_DIRECTORY "${_CMAKE_OSX_SYSROOT_DEFAULT}") 14 + if (NOT "${CMAKE_OSX_DEPLOYMENT_TARGET}" STREQUAL "${_CURRENT_OSX_VERSION}") 15 + message(WARNING 16 + "CMAKE_OSX_DEPLOYMENT_TARGET is '${CMAKE_OSX_DEPLOYMENT_TARGET}' " 17 + "but the matching SDK does not exist at:\n \"${_CMAKE_OSX_SYSROOT_CHECK}\"\n" 18 + "Instead using SDK:\n \"${_CMAKE_OSX_SYSROOT_DEFAULT}\"\n" 19 + "matching the host OS X version." 20 + ) 21 + endif() 22 + else () 23 + set(_CMAKE_OSX_SYSROOT_DEFAULT "") 24 + endif() 25 endif() 26 else() 27 set(_CMAKE_OSX_SDKS_VER ${_CURRENT_OSX_VERSION}${_CMAKE_OSX_SDKS_VER_SUFFIX_${_CURRENT_OSX_VERSION}}) 28 @@ -207,6 +213,8 @@ 1 --- Modules/Platform/Darwin.cmake.orig 2 +++ Modules/Platform/Darwin.cmake 3 @@ -70,7 +70,8 @@ 29 4 set(_sdk_ver "${CMAKE_MATCH_1}") 30 5 elseif("${_CMAKE_OSX_SYSROOT_ORIG}" MATCHES "^macosx([0-9]+\\.[0-9]+)$") 31 6 set(_sdk_ver "${CMAKE_MATCH_1}") 32 + elseif("${_CMAKE_OSX_SYSROOT_ORIG}" STREQUAL "/" OR "${_CMAKE_OSX_SYSROOT_ORIG}" STREQUAL "") 33 + set(_sdk_ver "${_CURRENT_OSX_VERSION}") 7 - elseif("${_CMAKE_OSX_SYSROOT_ORIG}" STREQUAL "/") 8 + elseif("${_CMAKE_OSX_SYSROOT_ORIG}" STREQUAL "/" OR 9 + "${_CMAKE_OSX_SYSROOT_ORIG}" STREQUAL "") 10 set(_sdk_ver "${_CURRENT_OSX_VERSION}") 34 11 else() 35 12 message(FATAL_ERROR 36 "CMAKE_OSX_DEPLOYMENT_TARGET is '${CMAKE_OSX_DEPLOYMENT_TARGET}' " -
files/patch-Modules-noArchCheck.diff
1 diff -ur ../cmake-2.8.12-orig/Modules/BasicConfigVersion-AnyNewerVersion.cmake.in ./Modules/BasicConfigVersion-AnyNewerVersion.cmake.in 2 --- ../cmake-2.8.12-orig/Modules/BasicConfigVersion-AnyNewerVersion.cmake.in 2013-10-08 00:31:00.000000000 +0900 3 +++ ./Modules/BasicConfigVersion-AnyNewerVersion.cmake.in 2013-12-25 16:14:04.000000000 +0900 1 --- Modules/BasicConfigVersion-AnyNewerVersion.cmake.in.orig 2 +++ Modules/BasicConfigVersion-AnyNewerVersion.cmake.in 4 3 @@ -17,15 +17,3 @@ 5 4 set(PACKAGE_VERSION_EXACT TRUE) 6 5 endif() … … 17 16 - set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)") 18 17 - set(PACKAGE_VERSION_UNSUITABLE TRUE) 19 18 -endif() 20 diff -ur ../cmake-2.8.12-orig/Modules/BasicConfigVersion-ExactVersion.cmake.in ./Modules/BasicConfigVersion-ExactVersion.cmake.in 21 --- ../cmake-2.8.12-orig/Modules/BasicConfigVersion-ExactVersion.cmake.in 2013-10-08 00:31:00.000000000 +0900 22 +++ ./Modules/BasicConfigVersion-ExactVersion.cmake.in 2013-12-25 16:14:00.000000000 +0900 19 --- Modules/BasicConfigVersion-ExactVersion.cmake.in.orig 20 +++ Modules/BasicConfigVersion-ExactVersion.cmake.in 23 21 @@ -32,16 +32,3 @@ 24 22 if( "${PACKAGE_FIND_VERSION}" STREQUAL "${PACKAGE_VERSION}") 25 23 set(PACKAGE_VERSION_EXACT TRUE) … … 37 35 - set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)") 38 36 - set(PACKAGE_VERSION_UNSUITABLE TRUE) 39 37 -endif() 40 diff -ur ../cmake-2.8.12-orig/Modules/BasicConfigVersion-SameMajorVersion.cmake.in ./Modules/BasicConfigVersion-SameMajorVersion.cmake.in 41 --- ../cmake-2.8.12-orig/Modules/BasicConfigVersion-SameMajorVersion.cmake.in 2013-10-08 00:31:00.000000000 +0900 42 +++ ./Modules/BasicConfigVersion-SameMajorVersion.cmake.in 2013-12-25 16:13:52.000000000 +0900 38 --- Modules/BasicConfigVersion-SameMajorVersion.cmake.in.orig 39 +++ Modules/BasicConfigVersion-SameMajorVersion.cmake.in 43 40 @@ -31,16 +31,3 @@ 44 41 set(PACKAGE_VERSION_EXACT TRUE) 45 42 endif()