diff -u -r cmake-orig/Portfile cmake/Portfile
old
|
new
|
|
6 | 6 | |
7 | 7 | name cmake |
8 | 8 | version 2.8.9 |
9 | | revision 1 |
| 9 | revision 2 |
10 | 10 | set branch [join [lrange [split ${version} .] 0 1] .] |
11 | 11 | categories devel |
12 | 12 | license BSD |
… |
… |
|
70 | 70 | xinstall -m 0644 -W ${worksrcpath}/Docs cmake-${type}.vim \ |
71 | 71 | ${destroot}${prefix}/share/vim/vimfiles/${type} |
72 | 72 | } |
| 73 | if ([variant_isset gui]) { |
| 74 | set app CMake |
| 75 | xinstall -d ${destroot}${applications_dir}/${app}.app/Contents/MacOS \ |
| 76 | ${destroot}${applications_dir}/${app}.app/Contents/Resources |
| 77 | xinstall -m 644 ${filespath}/Info.plist.in ${destroot}${applications_dir}/${app}.app/Contents/Info.plist |
| 78 | reinplace "s|@VERSION@|${version}|g" ${destroot}${applications_dir}/${app}.app/Contents/Info.plist |
| 79 | reinplace "s|@PREFIX@|${prefix}|g" ${destroot}${applications_dir}/${app}.app/Contents/Info.plist |
| 80 | ln -s ${prefix}/bin/cmake-gui ${destroot}${applications_dir}/${app}.app/Contents/MacOS/cmake-gui |
| 81 | xinstall -m 644 ${worksrcpath}/Source/QtDialog/CMakeSetup.icns ${destroot}${applications_dir}/${app}.app/Contents/Resources/CMakeSetup.icns |
| 82 | } |
73 | 83 | } |
74 | 84 | |
75 | 85 | variant gui description {Qt4 based cmake-gui} { |
76 | 86 | PortGroup qt4 1.0 |
77 | | # patchfiles-append patch-CMakeLists.txt.diff |
| 87 | patchfiles-append patch-CMakeLists.txt.diff |
78 | 88 | configure.args-append --qt-gui --qt-qmake=${qt_qmake_cmd} |
79 | 89 | } |
80 | 90 | |
Only in cmake/files: Info.plist.in
diff -u -r cmake-orig/files/patch-CMakeFindFrameworks.cmake.diff cmake/files/patch-CMakeFindFrameworks.cmake.diff
old
|
new
|
|
1 | | --- Modules/CMakeFindFrameworks.cmake 2012-05-11 11:39:53.000000000 +0200 |
2 | | +++ Modules/CMakeFindFrameworks.cmake 2012-05-11 11:47:07.000000000 +0200 |
| 1 | --- Modules/CMakeFindFrameworks.cmake 2012-10-07 15:26:05.000000000 +0200 |
| 2 | +++ Modules/CMakeFindFrameworks.cmake 2012-10-07 15:50:10.000000000 +0200 |
3 | 3 | @@ -20,6 +20,7 @@ |
4 | 4 | IF(APPLE) |
5 | 5 | FOREACH(dir |
diff -u -r cmake-orig/files/patch-CMakeLists.txt.diff cmake/files/patch-CMakeLists.txt.diff
old
|
new
|
|
1 | | --- CMakeLists.txt 2012-05-11 11:39:53.000000000 +0200 |
2 | | +++ CMakeLists.txt 2012-05-11 11:48:15.000000000 +0200 |
3 | | @@ -542,7 +542,7 @@ |
| 1 | --- CMakeLists.txt 2012-10-07 15:26:05.000000000 +0200 |
| 2 | +++ CMakeLists.txt 2012-10-07 15:52:38.000000000 +0200 |
| 3 | @@ -528,7 +528,7 @@ |
4 | 4 | ENDIF(BUILD_CursesDialog) |
5 | 5 | |
6 | 6 | IF(BUILD_QtDialog) |
… |
… |
|
9 | 9 | SET(CMAKE_BUNDLE_NAME |
10 | 10 | "CMake ${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}-${CMake_VERSION_PATCH}") |
11 | 11 | SET(CMAKE_BUNDLE_LOCATION "${CMAKE_INSTALL_PREFIX}") |
12 | | @@ -555,7 +555,7 @@ |
| 12 | @@ -541,7 +541,7 @@ |
13 | 13 | ENDIF(NOT "${ENDCH}" STREQUAL "/") |
14 | 14 | SET(CMAKE_INSTALL_PREFIX |
15 | 15 | "${CMAKE_INSTALL_PREFIX}${CMAKE_BUNDLE_NAME}.app/Contents") |
… |
… |
|
18 | 18 | |
19 | 19 | SET(QT_NEED_RPATH FALSE) |
20 | 20 | IF(NOT "${QT_LIBRARY_DIR}" STREQUAL "/lib" AND NOT "${QT_LIBRARY_DIR}" STREQUAL "/usr/lib" AND NOT "${QT_LIBRARY_DIR}" STREQUAL "/lib64" AND NOT "${QT_LIBRARY_DIR}" STREQUAL "/usr/lib64") |
21 | | --- Source/QtDialog/CMakeLists.txt 2012-05-11 11:39:53.000000000 +0200 |
22 | | +++ Source/QtDialog/CMakeLists.txt 2012-05-11 11:48:15.000000000 +0200 |
| 21 | diff -u -r cmake-2.8.9-orig/Modules/CMakeFindFrameworks.cmake cmake-2.8.9/Modules/CMakeFindFrameworks.cmake |
| 22 | --- Source/QtDialog/CMakeLists.txt 2012-10-07 15:26:05.000000000 +0200 |
| 23 | +++ Source/QtDialog/CMakeLists.txt 2012-10-07 15:57:54.000000000 +0200 |
23 | 24 | @@ -59,23 +59,23 @@ |
24 | 25 | IF(Q_WS_WIN) |
25 | 26 | SET(SRCS ${SRCS} CMakeSetup.rc) |
… |
… |
|
46 | 47 | OUTPUT_NAME ${CMAKE_BUNDLE_NAME}) |
47 | 48 | - ENDIF(APPLE) |
48 | 49 | + ENDIF(FALSE) |
49 | | SET(CMAKE_INSTALL_DESTINATION_ARGS |
| 50 | SET(CMAKE_INSTALL_DESTINATION_ARGS |
50 | 51 | BUNDLE DESTINATION "${CMAKE_BUNDLE_LOCATION}") |
51 | 52 | ENDIF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.4) |
52 | 53 | @@ -90,7 +90,7 @@ |
… |
… |
|
70 | 71 | # install rules for including 3rd party libs such as Qt |
71 | 72 | # if a system Qt is used (e.g. installed in /usr/lib/), it will not be included in the installation |
72 | 73 | set(fixup_exe "\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/bin/cmake-gui${CMAKE_EXECUTABLE_SUFFIX}") |
73 | | @@ -114,7 +114,7 @@ |
74 | | include(\"${CMake_SOURCE_DIR}/Modules/BundleUtilities.cmake\") |
| 74 | @@ -115,7 +115,7 @@ |
| 75 | set(BU_CHMOD_BUNDLE_ITEMS ON) |
75 | 76 | fixup_bundle(\"${fixup_exe}\" \"\" \"${QT_LIBRARY_DIR};${QT_BINARY_DIR}\") |
76 | 77 | ") |
77 | 78 | - endif(APPLE OR WIN32) |
78 | 79 | + endif(WIN32) |
79 | 80 | |
80 | 81 | CONFIGURE_FILE("${QtDialog_SOURCE_DIR}/QtDialogCPack.cmake.in" |
81 | | "${QtDialog_BINARY_DIR}/QtDialogCPack.cmake" @ONLY) |
| 82 | "${QtDialog_BINARY_DIR}/QtDialogCPack.cmake" @ONLY) |
diff -u -r cmake-orig/files/patch-Modules-FindQt4.cmake.diff cmake/files/patch-Modules-FindQt4.cmake.diff
old
|
new
|
|
1 | | --- Modules/FindQt4.cmake 2012-05-11 11:39:53.000000000 +0200 |
2 | | +++ Modules/FindQt4.cmake 2012-05-11 11:49:04.000000000 +0200 |
3 | | @@ -526,7 +526,8 @@ |
| 1 | --- Modules/FindQt4.cmake 2012-10-07 15:26:05.000000000 +0200 |
| 2 | +++ Modules/FindQt4.cmake 2012-10-07 15:46:05.000000000 +0200 |
| 3 | @@ -539,8 +539,9 @@ |
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} |
7 | 7 | - DOC "The location of the Qt mkspecs containing qconfig.pri") |
| 8 | - ENDIF() |
8 | 9 | + DOC "The location of the Qt mkspecs containing qconfig.pri" |
9 | 10 | + NO_DEFAULT_PATH) |
10 | | ENDIF() |
| 11 | + ENDIF() |
11 | 12 | |
12 | 13 | IF(EXISTS "${QT_MKSPECS_DIR}/qconfig.pri") |
13 | | @@ -620,6 +621,7 @@ |
| 14 | FILE(READ ${QT_MKSPECS_DIR}/qconfig.pri _qconfig_FILE_contents) |
| 15 | @@ -633,6 +634,7 @@ |
14 | 16 | FIND_PATH(QT_QTCORE_INCLUDE_DIR QtCore |
15 | 17 | HINTS ${qt_headers} ${QT_LIBRARY_DIR} |
16 | 18 | PATH_SUFFIXES QtCore qt4/QtCore |
… |
… |
|
18 | 20 | ) |
19 | 21 | |
20 | 22 | # Set QT_HEADERS_DIR based on finding QtCore header |
21 | | @@ -672,7 +674,8 @@ |
| 23 | @@ -685,7 +687,8 @@ |
22 | 24 | endforeach(qt_cross_path) |
23 | 25 | FIND_PATH(QT_PLUGINS_DIR NAMES accessible imageformats sqldrivers codecs designer |
24 | 26 | HINTS ${qt_cross_paths} ${qt_plugins_dir} |
… |
… |
|
28 | 30 | ENDIF (QT_LIBRARY_DIR AND NOT QT_PLUGINS_DIR OR QT_QMAKE_CHANGED) |
29 | 31 | |
30 | 32 | # ask qmake for the translations directory |
31 | | @@ -692,8 +695,7 @@ |
| 33 | @@ -705,8 +708,7 @@ |
32 | 34 | FIND_PATH(QT_IMPORTS_DIR NAMES Qt |
33 | 35 | HINTS ${qt_cross_paths} ${qt_imports_dir} |
34 | 36 | DOC "The location of the Qt imports" |