/[gentoo-x86]/dev-util/cmake/files/cmake-2.8.0-darwin-no-app-with-qt.patch
Gentoo

Contents of /dev-util/cmake/files/cmake-2.8.0-darwin-no-app-with-qt.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun May 8 11:33:39 2011 UTC (3 years, 2 months ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Drop older stuff. Keep just latest stable.

(Portage version: 2.2.0_alpha31/cvs/Linux x86_64)

1 Description: Don't build the GUI's app-bundle.
2 Author: Heiko Przybyl <zuxez@cs.tu-berlin.de>
3 --- cmake-2.8.0/CMakeLists.txt.orig 2010-02-10 19:38:03 +0100
4 +++ cmake-2.8.0/CMakeLists.txt 2010-02-10 19:38:49 +0100
5 @@ -381,7 +381,7 @@ IF(BUILD_CursesDialog)
6 ENDIF(BUILD_CursesDialog)
7
8 IF(BUILD_QtDialog)
9 - IF(APPLE)
10 + IF(FALSE)
11 SET(CMAKE_BUNDLE_NAME
12 "CMake ${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}-${CMake_VERSION_PATCH}")
13 SET(CMAKE_BUNDLE_LOCATION "${CMAKE_INSTALL_PREFIX}")
14 @@ -394,7 +394,7 @@ IF(BUILD_QtDialog)
15 ENDIF(NOT "${ENDCH}" STREQUAL "/")
16 SET(CMAKE_INSTALL_PREFIX
17 "${CMAKE_INSTALL_PREFIX}${CMAKE_BUNDLE_NAME}.app/Contents")
18 - ENDIF(APPLE)
19 + ENDIF(FALSE)
20
21 SET(QT_NEED_RPATH FALSE)
22 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")
23 --- cmake-2.8.0/Source/QtDialog/CMakeLists.txt.orig 2010-02-10 19:39:59 +0100
24 +++ cmake-2.8.0/Source/QtDialog/CMakeLists.txt 2010-02-10 19:42:12 +0100
25 @@ -66,12 +66,12 @@ ELSE(NOT QT4_FOUND)
26 IF(Q_WS_WIN)
27 SET(SRCS ${SRCS} CMakeSetup.rc)
28 ENDIF(Q_WS_WIN)
29 - IF(Q_WS_MAC)
30 + IF(FALSE)
31 SET(SRCS ${SRCS} CMakeSetup.icns)
32 SET(MACOSX_BUNDLE_ICON_FILE CMakeSetup.icns)
33 SET_SOURCE_FILES_PROPERTIES(CMakeSetup.icns PROPERTIES
34 MACOSX_PACKAGE_LOCATION Resources)
35 - ENDIF(Q_WS_MAC)
36 + ENDIF(FALSE)
37
38 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
39 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
40 @@ -79,13 +79,13 @@ ELSE(NOT QT4_FOUND)
41 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
42 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
43
44 - ADD_EXECUTABLE(cmake-gui WIN32 MACOSX_BUNDLE ${SRCS})
45 + ADD_EXECUTABLE(cmake-gui WIN32 ${SRCS})
46 TARGET_LINK_LIBRARIES(cmake-gui CMakeLib ${QT_QTMAIN_LIBRARY} ${QT_LIBRARIES})
47 IF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.4)
48 - IF(APPLE)
49 + IF(FALSE)
50 SET_TARGET_PROPERTIES(cmake-gui PROPERTIES
51 OUTPUT_NAME ${CMAKE_BUNDLE_NAME})
52 - ENDIF(APPLE)
53 + ENDIF(FALSE)
54 SET(CMAKE_INSTALL_DESTINATION_ARGS
55 BUNDLE DESTINATION "${CMAKE_BUNDLE_LOCATION}")
56 ENDIF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.4)
57 @@ -101,7 +101,7 @@ ELSE(NOT QT4_FOUND)
58 INSTALL(FILES cmakecache.xml DESTINATION share/mime/packages )
59 ENDIF(UNIX)
60
61 - IF(APPLE)
62 + IF(FALSE)
63 SET(CMAKE_POSTFLIGHT_SCRIPT
64 "${CMake_BINARY_DIR}/Source/QtDialog/postflight.sh")
65 SET(CMAKE_POSTUPGRADE_SCRIPT
66 @@ -115,7 +115,7 @@ ELSE(NOT QT4_FOUND)
67 INSTALL(CODE "set(input_file
68 \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/MacOS/${CMAKE_BUNDLE_NAME}\")")
69 INSTALL(SCRIPT "${CMake_SOURCE_DIR}/Source/QtDialog/CMakeIngestOSXBundleLibraries.cmake")
70 - ENDIF(APPLE)
71 + ENDIF(FALSE)
72 CONFIGURE_FILE("${QtDialog_SOURCE_DIR}/QtDialogCPack.cmake.in"
73 "${QtDialog_BINARY_DIR}/QtDialogCPack.cmake" @ONLY)
74 ENDIF(NOT QT4_FOUND)

  ViewVC Help
Powered by ViewVC 1.1.20