Update patches.

- FindQt4.cmake2.6.diff - remove, no longer needed as original bug has been
  fixed since 2.6;
- FindQt3.cmake.diff - refresh, add DEP-3 headers;
- findmpeg2-addpath.diff - remove, bug fixed upstream (in other way);
- kfreebsd-Platform.diff - refresh, add DEP-3 headers;
- executables-dont-need-fpic.diff - refresh, app DEP-3 headers;
- manpage_friendly_docs.diff - remove, merged upstream;
- FindPerlLibs.cmake-perl-5.10.diff - remove, fixed upstream differently;
- FindJNI.cmake-more-arches.diff - remove, was taken from upstream;
- FindVTK.cmake-vtk-5.4.diff - remove, was taken from upstream.
ci/unstable
Modestas Vainius 15 years ago
parent ac9aeb918f
commit b152287dce

12
debian/changelog vendored

@ -1,6 +1,18 @@
cmake (2.8.0~rc2-0r1) UNRELEASED; urgency=low cmake (2.8.0~rc2-0r1) UNRELEASED; urgency=low
* New upstream development release. * New upstream development release.
* Update patches:
- FindQt4.cmake2.6.diff - remove, no longer needed as original bug has been
fixed since 2.6;
- FindQt3.cmake.diff - refresh, add DEP-3 headers;
- findmpeg2-addpath.diff - remove, bug fixed upstream (in other way);
- kfreebsd-Platform.diff - refresh, add DEP-3 headers;
- executables-dont-need-fpic.diff - refresh, app DEP-3 headers;
- manpage_friendly_docs.diff - remove, merged upstream;
- fix_bashisms.diff - add DEP-3 headers;
- FindPerlLibs.cmake-perl-5.10.diff - remove, fixed upstream differently;
- FindJNI.cmake-more-arches.diff - remove, was taken from upstream;
- FindVTK.cmake-vtk-5.4.diff - remove, was taken from upstream.
-- Modestas Vainius <modestas@vainius.eu> Sun, 04 Oct 2009 10:31:17 +0300 -- Modestas Vainius <modestas@vainius.eu> Sun, 04 Oct 2009 10:31:17 +0300

@ -1,132 +0,0 @@
From: Modestas Vainius <modestas@vainius.eu>
Subject: Arch independent FindJNI.cmake on Linux
Backport Modules/FindJNI.cmake from CMake 2.8 CVS. It supports most Linux
arches and is capable of finding Sun Java, OpenJDK, Kaffe and GCJ JVMs.
It also adds support for Debian specific "default-java" paths.
Bug: http://public.kitware.com/Bug/view.php?id=9611
Bug-Debian: http://bugs.debian.org/544674
--- a/Modules/FindJNI.cmake
+++ b/Modules/FindJNI.cmake
@@ -12,6 +12,53 @@
# JAVA_AWT_INCLUDE_PATH = the include path to jawt.h
#
+#=============================================================================
+# Copyright 2001-2009 Kitware, Inc.
+#
+# Distributed under the OSI-approved BSD License (the "License");
+# see accompanying file Copyright.txt for details.
+#
+# This software is distributed WITHOUT ANY WARRANTY; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+# See the License for more information.
+#=============================================================================
+# (To distributed this file outside of CMake, substitute the full
+# License text for the above reference.)
+
+# Expand {libarch} occurences to java_libarch subdirectory(-ies) and set ${_var}
+MACRO(java_append_library_directories _var)
+ # Determine java arch-specific library subdir
+ IF (CMAKE_SYSTEM_NAME MATCHES "Linux")
+ # Based on openjdk/jdk/make/common/shared/Platform.gmk as of 6b16
+ # and kaffe as of 1.1.8 which uses the first part of the
+ # GNU config.guess platform triplet.
+ IF(CMAKE_SYSTEM_PROCESSOR MATCHES "^i[3-9]86$")
+ SET(_java_libarch "i386")
+ ELSEIF(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
+ SET(_java_libarch "amd64" "x86_64")
+ ELSEIF(CMAKE_SYSTEM_PROCESSOR MATCHES "^ppc")
+ SET(_java_libarch "ppc" "powerpc" "ppc64")
+ ELSEIF(CMAKE_SYSTEM_PROCESSOR MATCHES "^sparc")
+ SET(_java_libarch "sparc" "sparcv9")
+ ELSE(CMAKE_SYSTEM_PROCESSOR MATCHES "^i[3-9]86$")
+ SET(_java_libarch "${CMAKE_SYSTEM_PROCESSOR}")
+ ENDIF(CMAKE_SYSTEM_PROCESSOR MATCHES "^i[3-9]86$")
+ ELSE(CMAKE_SYSTEM_NAME MATCHES "Linux")
+ SET(_java_libarch "i386" "amd64" "ppc") # previous default
+ ENDIF(CMAKE_SYSTEM_NAME MATCHES "Linux")
+
+ FOREACH(_path ${ARGN})
+ IF(_path MATCHES "{libarch}")
+ FOREACH(_libarch ${_java_libarch})
+ STRING(REPLACE "{libarch}" "${_libarch}" _newpath "${_path}")
+ LIST(APPEND ${_var} "${_newpath}")
+ ENDFOREACH(_libarch)
+ ELSE(_path MATCHES "{libarch}")
+ LIST(APPEND ${_var} "${_path}")
+ ENDIF(_path MATCHES "{libarch}")
+ ENDFOREACH(_path)
+ENDMACRO(java_append_library_directories)
+
GET_FILENAME_COMPONENT(java_install_version
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit;CurrentVersion]" NAME)
@@ -19,29 +66,29 @@
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.4;JavaHome]/lib"
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.3;JavaHome]/lib"
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\${java_install_version};JavaHome]/lib"
- $ENV{JAVA_HOME}/jre/lib/i386
- $ENV{JAVA_HOME}/jre/lib/amd64
- $ENV{JAVA_HOME}/jre/lib/ppc
+ )
+JAVA_APPEND_LIBRARY_DIRECTORIES(JAVA_AWT_LIBRARY_DIRECTORIES
+ $ENV{JAVA_HOME}/jre/lib/{libarch}
+ $ENV{JAVA_HOME}/jre/lib
+ $ENV{JAVA_HOME}/lib
+ $ENV{JAVA_HOME}
/usr/lib
/usr/local/lib
/usr/lib/jvm/java/lib
- /usr/lib/java/jre/lib/i386
- /usr/local/lib/java/jre/lib/i386
- /usr/local/share/java/jre/lib/i386
- /usr/lib/j2sdk1.4-sun/jre/lib/i386
- /usr/lib/j2sdk1.5-sun/jre/lib/i386
- /opt/sun-jdk-1.5.0.04/jre/lib/amd64
- /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/amd64
- /usr/lib/java/jre/lib/amd64
- /usr/local/lib/java/jre/lib/amd64
- /usr/local/share/java/jre/lib/amd64
- /usr/lib/j2sdk1.4-sun/jre/lib/amd64
- /usr/lib/j2sdk1.5-sun/jre/lib/amd64
- /usr/lib/java/jre/lib/ppc
- /usr/local/lib/java/jre/lib/ppc
- /usr/local/share/java/jre/lib/ppc
- /usr/lib/j2sdk1.4-sun/jre/lib/ppc
- /usr/lib/j2sdk1.5-sun/jre/lib/ppc
+ /usr/lib/java/jre/lib/{libarch}
+ /usr/local/lib/java/jre/lib/{libarch}
+ /usr/local/share/java/jre/lib/{libarch}
+ /usr/lib/j2sdk1.4-sun/jre/lib/{libarch}
+ /usr/lib/j2sdk1.5-sun/jre/lib/{libarch}
+ /opt/sun-jdk-1.5.0.04/jre/lib/{libarch}
+ /usr/lib/jvm/java-6-sun/jre/lib/{libarch}
+ /usr/lib/jvm/java-1.5.0-sun/jre/lib/{libarch}
+ /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/{libarch} # can this one be removed according to #8821 ? Alex
+ /usr/lib/jvm/java-6-openjdk/jre/lib/{libarch}
+ # Debian specific paths for default JVM
+ /usr/lib/jvm/default-java/jre/lib/{libarch}
+ /usr/lib/jvm/default-java/jre/lib
+ /usr/lib/jvm/default-java/lib
)
SET(JAVA_JVM_LIBRARY_DIRECTORIES)
@@ -65,11 +112,16 @@
/usr/lib/java/include
/usr/local/lib/java/include
/usr/lib/jvm/java/include
- /usr/lib/jvm/java-6-sun-1.6.0.00/include
+ /usr/lib/jvm/java-6-sun/include
+ /usr/lib/jvm/java-1.5.0-sun/include
+ /usr/lib/jvm/java-6-sun-1.6.0.00/include # can this one be removed according to #8821 ? Alex
+ /usr/lib/jvm/java-6-openjdk/include
/usr/local/share/java/include
/usr/lib/j2sdk1.4-sun/include
/usr/lib/j2sdk1.5-sun/include
/opt/sun-jdk-1.5.0.04/include
+ # Debian specific path for default JVM
+ /usr/lib/jvm/default-java/include
)
FOREACH(JAVA_PROG "${JAVA_RUNTIME}" "${JAVA_COMPILE}" "${JAVA_ARCHIVE}")

@ -1,19 +0,0 @@
--- a/Modules/FindPerlLibs.cmake
+++ b/Modules/FindPerlLibs.cmake
@@ -8,6 +8,7 @@
#
SET(PERL_POSSIBLE_INCLUDE_PATHS
+ /usr/lib/perl/5.10.0/CORE
/usr/lib/perl/5.8.3/CORE
/usr/lib/perl/5.8.2/CORE
/usr/lib/perl/5.8.1/CORE
@@ -48,7 +49,7 @@
ENDIF(PERL_EXECUTABLE)
FIND_LIBRARY(PERL_LIBRARY
- NAMES ${PERL_POSSIBLE_LIBRARY_NAME} perl5.8.0
+ NAMES ${PERL_POSSIBLE_LIBRARY_NAME} perl5.8.0 perl
PATHS ${PERL_POSSIBLE_LIB_PATHS}
)

@ -1,8 +1,12 @@
Prefer *-qt3 binaries to generic names which might come from Qt4 From: Modestas Vainius <modestas@vainius.eu>
Subject: Prefer *-qt3 binaries to generic names which might come from Qt4
*-qt3 names are Debian specific. Nevertheless, the patch could be applied
upstream.
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=538864
--- a/Modules/FindQt3.cmake --- a/Modules/FindQt3.cmake
+++ b/Modules/FindQt3.cmake +++ b/Modules/FindQt3.cmake
@@ -125,7 +125,7 @@ @@ -138,7 +138,7 @@
# qt 3 should prefer QTDIR over the PATH # qt 3 should prefer QTDIR over the PATH
FIND_PROGRAM(QT_MOC_EXECUTABLE FIND_PROGRAM(QT_MOC_EXECUTABLE
@ -11,7 +15,7 @@ Prefer *-qt3 binaries to generic names which might come from Qt4
HINTS HINTS
$ENV{QTDIR}/bin $ENV{QTDIR}/bin
PATHS PATHS
@@ -147,7 +147,8 @@ @@ -160,7 +160,8 @@
ENDIF(QT_MOC_EXECUTABLE) ENDIF(QT_MOC_EXECUTABLE)
# qt 3 should prefer QTDIR over the PATH # qt 3 should prefer QTDIR over the PATH

@ -1,213 +0,0 @@
--- a/Modules/FindQt4.cmake
+++ b/Modules/FindQt4.cmake
@@ -1357,199 +1357,6 @@
QT_QUERY_QMAKE(QMAKE_LIBS_OPENGL "QMAKE_LIBS_OPENGL")
SET (QT_QTOPENGL_LIB_DEPENDENCIES ${QT_QTOPENGL_LIB_DEPENDENCIES} ${QMAKE_LIBS_OPENGL})
- ## system png
- IF(QT_QCONFIG MATCHES "system-png")
- FIND_LIBRARY(QT_PNG_LIBRARY NAMES png)
- MARK_AS_ADVANCED(QT_PNG_LIBRARY)
- IF(QT_PNG_LIBRARY)
- SET(QT_QTGUI_LIB_DEPENDENCIES ${QT_QTGUI_LIB_DEPENDENCIES} ${QT_PNG_LIBRARY})
- ENDIF(QT_PNG_LIBRARY)
- ENDIF(QT_QCONFIG MATCHES "system-png")
-
- # for X11, get X11 library directory
- IF(Q_WS_X11)
- QT_QUERY_QMAKE(QMAKE_LIBDIR_X11 "QMAKE_LIBDIR_X11")
- ENDIF(Q_WS_X11)
-
- ## X11 SM
- IF(QT_QCONFIG MATCHES "x11sm")
- # ask qmake where the x11 libs are
- FIND_LIBRARY(QT_X11_SM_LIBRARY NAMES SM PATHS ${QMAKE_LIBDIR_X11})
- FIND_LIBRARY(QT_X11_ICE_LIBRARY NAMES ICE PATHS ${QMAKE_LIBDIR_X11})
- MARK_AS_ADVANCED(QT_X11_SM_LIBRARY)
- MARK_AS_ADVANCED(QT_X11_ICE_LIBRARY)
- IF(QT_X11_SM_LIBRARY AND QT_X11_ICE_LIBRARY)
- SET(QT_QTGUI_LIB_DEPENDENCIES ${QT_QTGUI_LIB_DEPENDENCIES} ${QT_X11_SM_LIBRARY} ${QT_X11_ICE_LIBRARY})
- ENDIF(QT_X11_SM_LIBRARY AND QT_X11_ICE_LIBRARY)
- ENDIF(QT_QCONFIG MATCHES "x11sm")
-
- ## Xi
- IF(QT_QCONFIG MATCHES "tablet")
- FIND_LIBRARY(QT_XI_LIBRARY NAMES Xi PATHS ${QMAKE_LIBDIR_X11})
- MARK_AS_ADVANCED(QT_XI_LIBRARY)
- IF(QT_XI_LIBRARY)
- SET(QT_QTGUI_LIB_DEPENDENCIES ${QT_QTGUI_LIB_DEPENDENCIES} ${QT_XI_LIBRARY})
- ENDIF(QT_XI_LIBRARY)
- ENDIF(QT_QCONFIG MATCHES "tablet")
-
- ## Xrender
- IF(QT_QCONFIG MATCHES "xrender")
- FIND_LIBRARY(QT_XRENDER_LIBRARY NAMES Xrender PATHS ${QMAKE_LIBDIR_X11})
- MARK_AS_ADVANCED(QT_XRENDER_LIBRARY)
- IF(QT_XRENDER_LIBRARY)
- SET(QT_QTGUI_LIB_DEPENDENCIES ${QT_QTGUI_LIB_DEPENDENCIES} ${QT_XRENDER_LIBRARY})
- ENDIF(QT_XRENDER_LIBRARY)
- ENDIF(QT_QCONFIG MATCHES "xrender")
-
- ## Xrandr
- IF(QT_QCONFIG MATCHES "xrandr")
- FIND_LIBRARY(QT_XRANDR_LIBRARY NAMES Xrandr PATHS ${QMAKE_LIBDIR_X11})
- MARK_AS_ADVANCED(QT_XRANDR_LIBRARY)
- IF(QT_XRANDR_LIBRARY)
- SET(QT_QTGUI_LIB_DEPENDENCIES ${QT_QTGUI_LIB_DEPENDENCIES} ${QT_XRANDR_LIBRARY})
- ENDIF(QT_XRANDR_LIBRARY)
- ENDIF(QT_QCONFIG MATCHES "xrandr")
-
- ## Xcursor
- IF(QT_QCONFIG MATCHES "xcursor")
- FIND_LIBRARY(QT_XCURSOR_LIBRARY NAMES Xcursor PATHS ${QMAKE_LIBDIR_X11})
- MARK_AS_ADVANCED(QT_XCURSOR_LIBRARY)
- IF(QT_XCURSOR_LIBRARY)
- SET(QT_QTGUI_LIB_DEPENDENCIES ${QT_QTGUI_LIB_DEPENDENCIES} ${QT_XCURSOR_LIBRARY})
- ENDIF(QT_XCURSOR_LIBRARY)
- ENDIF(QT_QCONFIG MATCHES "xcursor")
-
- ## Xinerama
- IF(QT_QCONFIG MATCHES "xinerama")
- FIND_LIBRARY(QT_XINERAMA_LIBRARY NAMES Xinerama PATHS ${QMAKE_LIBDIR_X11})
- MARK_AS_ADVANCED(QT_XINERAMA_LIBRARY)
- IF(QT_XINERAMA_LIBRARY)
- SET(QT_QTGUI_LIB_DEPENDENCIES ${QT_QTGUI_LIB_DEPENDENCIES} ${QT_XINERAMA_LIBRARY})
- ENDIF(QT_XINERAMA_LIBRARY)
- ENDIF(QT_QCONFIG MATCHES "xinerama")
-
- ## Xfixes
- IF(QT_QCONFIG MATCHES "xfixes")
- FIND_LIBRARY(QT_XFIXES_LIBRARY NAMES Xfixes PATHS ${QMAKE_LIBDIR_X11})
- MARK_AS_ADVANCED(QT_XFIXES_LIBRARY)
- IF(QT_XFIXES_LIBRARY)
- SET(QT_QTGUI_LIB_DEPENDENCIES ${QT_QTGUI_LIB_DEPENDENCIES} ${QT_XFIXES_LIBRARY})
- ENDIF(QT_XFIXES_LIBRARY)
- ENDIF(QT_QCONFIG MATCHES "xfixes")
-
- ## system-freetype
- IF(QT_QCONFIG MATCHES "system-freetype")
- FIND_LIBRARY(QT_FREETYPE_LIBRARY NAMES freetype)
- MARK_AS_ADVANCED(QT_FREETYPE_LIBRARY)
- IF(QT_FREETYPE_LIBRARY)
- SET(QT_QTGUI_LIB_DEPENDENCIES ${QT_QTGUI_LIB_DEPENDENCIES} ${QT_FREETYPE_LIBRARY})
- ENDIF(QT_FREETYPE_LIBRARY)
- ENDIF(QT_QCONFIG MATCHES "system-freetype")
-
- ## fontconfig
- IF(QT_QCONFIG MATCHES "fontconfig")
- FIND_LIBRARY(QT_FONTCONFIG_LIBRARY NAMES fontconfig)
- MARK_AS_ADVANCED(QT_FONTCONFIG_LIBRARY)
- IF(QT_FONTCONFIG_LIBRARY)
- SET(QT_QTGUI_LIB_DEPENDENCIES ${QT_QTGUI_LIB_DEPENDENCIES} ${QT_FONTCONFIG_LIBRARY})
- ENDIF(QT_FONTCONFIG_LIBRARY)
- ENDIF(QT_QCONFIG MATCHES "fontconfig")
-
- ## system-zlib
- IF(QT_QCONFIG MATCHES "system-zlib")
- FIND_LIBRARY(QT_ZLIB_LIBRARY NAMES z)
- MARK_AS_ADVANCED(QT_ZLIB_LIBRARY)
- IF(QT_ZLIB_LIBRARY)
- SET(QT_QTCORE_LIB_DEPENDENCIES ${QT_QTCORE_LIB_DEPENDENCIES} ${QT_ZLIB_LIBRARY})
- ENDIF(QT_ZLIB_LIBRARY)
- ENDIF(QT_QCONFIG MATCHES "system-zlib")
-
- ## openssl
- IF(QT_QCONFIG MATCHES "openssl" AND NOT Q_WS_WIN)
- FIND_PACKAGE(OpenSSL)
- IF(OPENSSL_LIBRARIES)
- SET(QT_QTNETWORK_LIB_DEPENDENCIES ${QT_QTNETWORK_LIB_DEPENDENCIES} ${OPENSSL_LIBRARIES})
- ENDIF(OPENSSL_LIBRARIES)
- ENDIF(QT_QCONFIG MATCHES "openssl" AND NOT Q_WS_WIN)
-
- ## dbus
- IF(QT_QCONFIG MATCHES "dbus")
-
- # if the dbus library isn't found, we'll assume its not required to build
- # shared Qt on Linux doesn't require it
- IF(NOT QT_DBUS_LIBRARY)
- EXECUTE_PROCESS(COMMAND pkg-config --libs-only-L dbus-1
- OUTPUT_VARIABLE _dbus_query_output
- RESULT_VARIABLE _dbus_result
- ERROR_VARIABLE _dbus_query_output )
-
- IF(_dbus_result MATCHES 0)
- STRING(REPLACE "-L" "" _dbus_query_output "${_dbus_query_output}")
- SEPARATE_ARGUMENTS(_dbus_query_output)
- ELSE(_dbus_result MATCHES 0)
- SET(_dbus_query_output)
- ENDIF(_dbus_result MATCHES 0)
-
- FIND_LIBRARY(QT_DBUS_LIBRARY NAMES dbus-1 PATHS ${_dbus_query_output} )
-
- IF(QT_DBUS_LIBRARY)
- SET(QT_QTDBUS_LIB_DEPENDENCIES ${QT_QTDBUS_LIB_DEPENDENCIES} ${QT_DBUS_LIBRARY})
- ENDIF(QT_DBUS_LIBRARY)
-
- MARK_AS_ADVANCED(QT_DBUS_LIBRARY)
- ENDIF(NOT QT_DBUS_LIBRARY)
-
- ENDIF(QT_QCONFIG MATCHES "dbus")
-
- ## glib
- IF(QT_QCONFIG MATCHES "glib")
-
- # if the glib libraries aren't found, we'll assume its not required to build
- # shared Qt on Linux doesn't require it
-
- # Qt 4.2.0+ uses glib-2.0
- IF(NOT QT_GLIB_LIBRARY OR NOT QT_GTHREAD_LIBRARY)
- EXECUTE_PROCESS(COMMAND pkg-config --libs-only-L glib-2.0 gthread-2.0
- OUTPUT_VARIABLE _glib_query_output
- RESULT_VARIABLE _glib_result
- ERROR_VARIABLE _glib_query_output )
-
- IF(_glib_result MATCHES 0)
- STRING(REPLACE "-L" "" _glib_query_output "${_glib_query_output}")
- SEPARATE_ARGUMENTS(_glib_query_output)
- ELSE(_glib_result MATCHES 0)
- SET(_glib_query_output)
- ENDIF(_glib_result MATCHES 0)
-
- FIND_LIBRARY(QT_GLIB_LIBRARY NAMES glib-2.0 PATHS ${_glib_query_output} )
- FIND_LIBRARY(QT_GTHREAD_LIBRARY NAMES gthread-2.0 PATHS ${_glib_query_output} )
-
- MARK_AS_ADVANCED(QT_GLIB_LIBRARY)
- MARK_AS_ADVANCED(QT_GTHREAD_LIBRARY)
- ENDIF(NOT QT_GLIB_LIBRARY OR NOT QT_GTHREAD_LIBRARY)
-
- IF(QT_GLIB_LIBRARY AND QT_GTHREAD_LIBRARY)
- SET(QT_QTCORE_LIB_DEPENDENCIES ${QT_QTCORE_LIB_DEPENDENCIES}
- ${QT_GTHREAD_LIBRARY} ${QT_GLIB_LIBRARY})
- ENDIF(QT_GLIB_LIBRARY AND QT_GTHREAD_LIBRARY)
-
- ENDIF(QT_QCONFIG MATCHES "glib")
-
- ## clock-monotonic, just see if we need to link with rt
- IF(QT_QCONFIG MATCHES "clock-monotonic")
- SET(CMAKE_REQUIRED_LIBRARIES_SAVE ${CMAKE_REQUIRED_LIBRARIES})
- SET(CMAKE_REQUIRED_LIBRARIES rt)
- CHECK_SYMBOL_EXISTS(_POSIX_TIMERS "unistd.h;time.h" QT_POSIX_TIMERS)
- SET(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES_SAVE})
- IF(QT_POSIX_TIMERS)
- FIND_LIBRARY(QT_RT_LIBRARY NAMES rt)
- MARK_AS_ADVANCED(QT_RT_LIBRARY)
- IF(QT_RT_LIBRARY)
- SET(QT_QTCORE_LIB_DEPENDENCIES ${QT_QTCORE_LIB_DEPENDENCIES} ${QT_RT_LIBRARY})
- ENDIF(QT_RT_LIBRARY)
- ENDIF(QT_POSIX_TIMERS)
- ENDIF(QT_QCONFIG MATCHES "clock-monotonic")
-
IF(Q_WS_X11)
# X11 libraries Qt absolutely depends on
QT_QUERY_QMAKE(QT_LIBS_X11 "QMAKE_LIBS_X11")
@@ -1558,9 +1365,9 @@
STRING(REGEX REPLACE "-l" "" QT_X11_LIB "${QT_X11_LIB}")
SET(QT_TMP_STR "QT_X11_${QT_X11_LIB}_LIBRARY")
FIND_LIBRARY(${QT_TMP_STR} NAMES "${QT_X11_LIB}" PATHS ${QMAKE_LIBDIR_X11})
- MARK_AS_ADVANCED(${QT_TMP_STR})
IF(${QT_TMP_STR})
SET(QT_QTGUI_LIB_DEPENDENCIES ${QT_QTGUI_LIB_DEPENDENCIES} ${${QT_TMP_STR}})
+ MARK_AS_ADVANCED(${QT_TMP_STR})
ENDIF(${QT_TMP_STR})
ENDFOREACH(QT_X11_LIB)

@ -1,36 +0,0 @@
Subject: Modules/FindJNI.cmake: support VTK 5.4
Backport Modules/FindJNI.cmake from CMake 2.8 CVS.
Origin: upstream, http://public.kitware.com/cgi-bin/viewcvs.cgi/Modules/FindVTK.cmake?root=CMake&r1=1.29&r2=1.31&view=patch
Bug: http://public.kitware.com/Bug/view.php?id=8804
Bug-Debian: http://bugs.debian.org/546030
--- a/Modules/FindVTK.cmake
+++ b/Modules/FindVTK.cmake
@@ -27,6 +27,19 @@
# instead.
#
+#=============================================================================
+# Copyright 2001-2009 Kitware, Inc.
+#
+# Distributed under the OSI-approved BSD License (the "License");
+# see accompanying file Copyright.txt for details.
+#
+# This software is distributed WITHOUT ANY WARRANTY; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+# See the License for more information.
+#=============================================================================
+# (To distributed this file outside of CMake, substitute the full
+# License text for the above reference.)
+
# Construct consitent error messages for use below.
SET(VTK_DIR_DESCRIPTION "directory containing VTKConfig.cmake. This is either the root of the build tree, or PREFIX/lib/vtk for an installation. For VTK 4.0, this is the location of UseVTK.cmake. This is either the root of the build tree or PREFIX/include/vtk for an installation.")
SET(VTK_DIR_MESSAGE "VTK not found. Set the VTK_DIR cmake cache entry to the ${VTK_DIR_DESCRIPTION}")
@@ -45,6 +58,7 @@
SET(VTK_DIR_SEARCH "")
FOREACH(dir ${VTK_DIR_SEARCH2})
SET(VTK_DIR_SEARCH ${VTK_DIR_SEARCH}
+ ${dir}/../lib/vtk-5.4
${dir}/../lib/vtk-5.2
${dir}/../lib/vtk-5.1
${dir}/../lib/vtk-5.0

@ -1,11 +1,21 @@
Any special options needed for linking with shared libraries can be put From: Ben Hutchings <ben@decadent.org.uk>
in CMAKE_SHARED_LIBRARY_LINK_C_FLAGS. Subject: Do not use -fPIC when linking executables
cmake includes ${CMAKE_SHARED_LIBRARY_C_FLAGS} in the command line to
link an executable, and by default this is -fPIC. Either the use or
the definition of this variable is wrong, because executables should
not be linked with this option by default.
.
It's not entirely obvious how this variable gets into the command
line, but you can verify that it does by changing its value to e.g. -D
SHARED and running make VERBOSE=1.
.
Any special options needed for linking with shared libraries can be put
in CMAKE_SHARED_LIBRARY_LINK_C_FLAGS.
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=478404
See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=478404 --- a/Source/cmMakefileExecutableTargetGenerator.cxx
+++ b/Source/cmMakefileExecutableTargetGenerator.cxx
--- cmake-2.6.0.orig/Source/cmMakefileExecutableTargetGenerator.cxx @@ -199,11 +199,6 @@
+++ cmake-2.6.0/Source/cmMakefileExecutableTargetGenerator.cxx
@@ -201,11 +201,6 @@
std::string flags; std::string flags;
std::string linkFlags; std::string linkFlags;

@ -1,12 +0,0 @@
--- cmake-2.6.0.orig/Modules/FindMPEG2.cmake
+++ cmake-2.6.0/Modules/FindMPEG2.cmake
@@ -8,6 +8,9 @@
# MPEG2_vo_LIBRARY, where to find the vo library.
FIND_PATH(MPEG2_INCLUDE_DIR mpeg2.h
+ /usr/include/mpeg2dec
+ /usr/local/include
+ /usr/include
/usr/local/livid
)

@ -1,4 +1,8 @@
Fix bashisms in CMake scripts. Thanks to Raphael Geissert for heads up. From: Modestas Vainius <modestas@vainius.eu>
Subject: Fix bashisms in CMake scripts.
Fix bashisms found in /bin/sh scripts. Thanks to Raphael Geissert for heads
up.
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=530056
--- a/Modules/CPack.RuntimeScript.in --- a/Modules/CPack.RuntimeScript.in
+++ b/Modules/CPack.RuntimeScript.in +++ b/Modules/CPack.RuntimeScript.in

@ -1,6 +1,23 @@
--- cmake-2.6.0-RC-8.orig/Modules/CMakeDetermineSystem.cmake From: Modestas Vainius <modestas@vainius.eu>
+++ cmake-2.6.0-RC-8/Modules/CMakeDetermineSystem.cmake Subject: Support GNU/kFreeBSD
@@ -12,6 +12,7 @@ GNU/kFreeBSD = FreeBSD kernel + userspace with glibc,
and Linux.cmake doesn't contain anything OS specific.
.
Here are outputs of /bin/uname:
.
$ uname -p
i386
$ uname -o
GNU/kFreeBSD
$ uname -s
GNU/kFreeBSD
$ uname -r
5.4-1-686
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=340764
--- a/Modules/CMakeDetermineSystem.cmake
+++ b/Modules/CMakeDetermineSystem.cmake
@@ -25,6 +25,7 @@
# HP-UX HP-UX # HP-UX HP-UX
# IRIX IRIX # IRIX IRIX
# Linux Linux # Linux Linux
@ -8,15 +25,31 @@
# NetBSD NetBSD # NetBSD NetBSD
# OpenBSD OpenBSD # OpenBSD OpenBSD
# OFS/1 (Digital Unix) OSF1 # OFS/1 (Digital Unix) OSF1
@@ -108,6 +109,11 @@ @@ -121,6 +122,11 @@
SET(${_PREFIX}_NAME BSDOS) SET(${_PREFIX}_NAME BSDOS)
ENDIF(${_PREFIX}_NAME MATCHES BSD.OS) ENDIF(${_PREFIX}_NAME MATCHES BSD.OS)
+ # fix for GNU/kFreeBSD , remove the GNU/ + # fix for GNU/kFreeBSD, remove the GNU/
+ IF(CMAKE_SYSTEM_NAME MATCHES GNU.kFreeBSD) + IF(CMAKE_SYSTEM_NAME MATCHES kFreeBSD)
+ SET(CMAKE_SYSTEM_NAME kFreeBSD) + SET(CMAKE_SYSTEM_NAME kFreeBSD)
+ ENDIF(CMAKE_SYSTEM_NAME MATCHES GNU.kFreeBSD) + ENDIF(CMAKE_SYSTEM_NAME MATCHES kFreeBSD)
+ +
# fix for CYGWIN which has windows version in it # fix for CYGWIN which has windows version in it
IF(${_PREFIX}_NAME MATCHES CYGWIN) IF(${_PREFIX}_NAME MATCHES CYGWIN)
SET(${_PREFIX}_NAME CYGWIN) SET(${_PREFIX}_NAME CYGWIN)
--- a/Modules/Platform/kFreeBSD.cmake
+++ b/Modules/Platform/kFreeBSD.cmake
@@ -1,12 +1,2 @@
# kFreeBSD looks just like Linux.
-SET(CMAKE_DL_LIBS "dl")
-SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC")
-SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared")
-SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "-rdynamic")
-SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,")
-SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":")
-SET(CMAKE_SHARED_LIBRARY_RPATH_LINK_C_FLAG "-Wl,-rpath-link,")
-SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-soname,")
-SET(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-Wl,-soname,")
-
-INCLUDE(Platform/UnixPaths)
+INCLUDE(Platform/Linux)

@ -1,31 +0,0 @@
--- a/Modules/FindBoost.cmake
+++ b/Modules/FindBoost.cmake
@@ -66,7 +66,7 @@
#
# SET(Boost_ADDITIONAL_VERSIONS "0.99" "0.99.0" "1.78" "1.78.0")
#
-# ============================================================================
+# ===================================== ============= ========================
#
# Variables used by this module, they can change the default behaviour and
# need to be set before calling find_package:
@@ -147,7 +147,7 @@
# "component" (includes debug and optimized keywords
# when needed).
#
-# =====================================================================
+# ===================================== ============= =================
#
#
# Copyright (c) 2006-2008 Andreas Schneider <mail@cynapses.org>
--- a/Modules/FindRTI.cmake
+++ b/Modules/FindRTI.cmake
@@ -5,7 +5,7 @@
# RTI is a simulation infrastructure standartized by IEEE and SISO. It has a
# well defined C++ API that assures that simulation applications are
# independent on a particular RTI implementation.
-# http://en.wikipedia.org/wiki/Run-Time_Infrastructure_(simulation)
+# http://en.wikipedia.org/wiki/Run-Time_Infrastructure_(simulation)
#
# This code sets the following variables:
# RTI_INCLUDE_DIR = the directory where RTI includes file are found

@ -1,10 +1,4 @@
FindQt4.cmake2.6.diff
FindQt3.cmake.diff FindQt3.cmake.diff
findmpeg2-addpath.diff
kfreebsd-Platform.diff kfreebsd-Platform.diff
executables-dont-need-fpic.diff executables-dont-need-fpic.diff
manpage_friendly_docs.diff
fix_bashisms.diff fix_bashisms.diff
FindPerlLibs.cmake-perl-5.10.diff
FindJNI.cmake-more-arches.diff
FindVTK.cmake-vtk-5.4.diff

Loading…
Cancel
Save