add multilib aware ebuilds
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2784 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
4
dev-util/cmake/files/50cmake-gentoo.el
Normal file
4
dev-util/cmake/files/50cmake-gentoo.el
Normal file
@@ -0,0 +1,4 @@
|
||||
(add-to-list 'load-path "@SITELISP@")
|
||||
(autoload 'cmake-mode "cmake-mode" "Major mode for editing CMake files." t)
|
||||
(add-to-list 'auto-mode-alist '("CMakeLists\\.txt\\'" . cmake-mode))
|
||||
(add-to-list 'auto-mode-alist '("\\.cmake\\'" . cmake-mode))
|
||||
48
dev-util/cmake/files/cmake-2.6.0-interix.patch
Normal file
48
dev-util/cmake/files/cmake-2.6.0-interix.patch
Normal file
@@ -0,0 +1,48 @@
|
||||
diff -ruN cmake-2.6.0.orig/Modules/Platform/Interix.cmake cmake-2.6.0/Modules/Platform/Interix.cmake
|
||||
--- cmake-2.6.0.orig/Modules/Platform/Interix.cmake 1970-01-01 01:00:00 +0100
|
||||
+++ cmake-2.6.0/Modules/Platform/Interix.cmake 2008-06-02 14:22:45 +0200
|
||||
@@ -0,0 +1,31 @@
|
||||
+# This is a proposed Platform definition for Interix GCC/G++
|
||||
+
|
||||
+SET(CMAKE_DL_LIBS "dl")
|
||||
+SET(CMAKE_SHARED_LIBRARY_C_FLAGS "")
|
||||
+SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared")
|
||||
+SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
|
||||
+SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,")
|
||||
+SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":")
|
||||
+SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-h,")
|
||||
+SET(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-Wl,-h,")
|
||||
+
|
||||
+SET(UNIX 1)
|
||||
+
|
||||
+# also add the install directory of the running cmake to the search directories
|
||||
+# CMAKE_ROOT is CMAKE_INSTALL_PREFIX/share/cmake, so we need to go two levels up
|
||||
+GET_FILENAME_COMPONENT(_CMAKE_INSTALL_DIR "${CMAKE_ROOT}" PATH)
|
||||
+GET_FILENAME_COMPONENT(_CMAKE_INSTALL_DIR "${_CMAKE_INSTALL_DIR}" PATH)
|
||||
+
|
||||
+LIST(APPEND CMAKE_SYSTEM_PREFIX_PATH
|
||||
+ "${_CMAKE_INSTALL_DIR}"
|
||||
+ "${CMAKE_INSTALL_PREFIX}"
|
||||
+ )
|
||||
+
|
||||
+LIST(APPEND CMAKE_SYSTEM_INCLUDE_PATH
|
||||
+ "${CMAKE_INSTALL_PREFIX}"/include
|
||||
+ )
|
||||
+
|
||||
+LIST(APPEND CMAKE_SYSTEM_LIBRARY_PATH
|
||||
+ "${CMAKE_INSTALL_PREFIX}"/lib
|
||||
+ )
|
||||
+
|
||||
diff -ruN cmake-2.6.0.orig/Utilities/cmtar/encode.c cmake-2.6.0/Utilities/cmtar/encode.c
|
||||
--- cmake-2.6.0.orig/Utilities/cmtar/encode.c 2008-06-02 13:00:44 +0200
|
||||
+++ cmake-2.6.0/Utilities/cmtar/encode.c 2008-06-02 14:02:39 +0200
|
||||
@@ -24,6 +24,9 @@
|
||||
# include <stdlib.h>
|
||||
#endif
|
||||
|
||||
+#ifdef HAVE_SYS_MKDEV_H
|
||||
+# include <sys/mkdev.h>
|
||||
+#endif
|
||||
|
||||
/* magic, version, and checksum */
|
||||
void
|
||||
23
dev-util/cmake/files/cmake-2.6.3-darwin-bundle.patch
Normal file
23
dev-util/cmake/files/cmake-2.6.3-darwin-bundle.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
Don't use .so for modules on darwin/macos. Use .bundle instead.
|
||||
Patch by Heiko Przybyl
|
||||
|
||||
--- Modules/Platform/Darwin.cmake
|
||||
+++ Modules/Platform/Darwin.cmake
|
||||
@@ -23,7 +23,7 @@
|
||||
SET(CMAKE_SHARED_LIBRARY_PREFIX "lib")
|
||||
SET(CMAKE_SHARED_LIBRARY_SUFFIX ".dylib")
|
||||
SET(CMAKE_SHARED_MODULE_PREFIX "lib")
|
||||
-SET(CMAKE_SHARED_MODULE_SUFFIX ".so")
|
||||
+SET(CMAKE_SHARED_MODULE_SUFFIX ".bundle")
|
||||
SET(CMAKE_MODULE_EXISTS 1)
|
||||
SET(CMAKE_DL_LIBS "")
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-bundle -headerpad_max_install_names")
|
||||
SET(CMAKE_SHARED_MODULE_LOADER_C_FLAG "-Wl,-bundle_loader,")
|
||||
SET(CMAKE_SHARED_MODULE_LOADER_CXX_FLAG "-Wl,-bundle_loader,")
|
||||
-SET(CMAKE_FIND_LIBRARY_SUFFIXES ".dylib" ".so" ".a")
|
||||
+SET(CMAKE_FIND_LIBRARY_SUFFIXES ".dylib" ".bundle" ".a")
|
||||
|
||||
# hack: if a new cmake (which uses CMAKE_INSTALL_NAME_TOOL) runs on an old build tree
|
||||
# (where install_name_tool was hardcoded) and where CMAKE_INSTALL_NAME_TOOL isn't in the cache
|
||||
39
dev-util/cmake/files/cmake-2.6.3-fix_broken_lfs_on_aix.patch
Normal file
39
dev-util/cmake/files/cmake-2.6.3-fix_broken_lfs_on_aix.patch
Normal file
@@ -0,0 +1,39 @@
|
||||
http://public.kitware.com/Bug/view.php?id=7933
|
||||
|
||||
diff -ur cmake-2.6.2/Source/kwsys/kwsysPlatformTestsCXX.cxx cmake-2.6.2-p/Source/kwsys/kwsysPlatformTestsCXX.cxx
|
||||
--- cmake-2.6.2/Source/kwsys/kwsysPlatformTestsCXX.cxx Wed Sep 24 20:34:37 2008
|
||||
+++ cmake-2.6.2-p/Source/kwsys/kwsysPlatformTestsCXX.cxx Tue Nov 4 11:18:32 2008
|
||||
@@ -38,6 +38,13 @@
|
||||
int main() { return 0; }
|
||||
#endif
|
||||
|
||||
+#ifdef TEST_KWSYS_LFS_SUPPORT
|
||||
+#define _LARGE_FILES
|
||||
+#include <iostream>
|
||||
+int main() { return 0; }
|
||||
+#endif
|
||||
+
|
||||
+
|
||||
#ifdef TEST_KWSYS_IOS_HAVE_STD
|
||||
#include <iosfwd>
|
||||
void f(std ::ostream*) {}
|
||||
diff -ur cmake-2.6.2/bootstrap cmake-2.6.2-p/bootstrap
|
||||
--- cmake-2.6.2/bootstrap Wed Sep 24 20:34:33 2008
|
||||
+++ cmake-2.6.2-p/bootstrap Tue Nov 4 11:17:11 2008
|
||||
@@ -1005,6 +1005,16 @@
|
||||
echo "${cmake_cxx_compiler} does not have stl iterator_traits"
|
||||
fi
|
||||
|
||||
+if cmake_try_run "${cmake_cxx_compiler}" \
|
||||
+ "${cmake_cxx_flags} -DTEST_KWSYS_LFS_SUPPORT" \
|
||||
+ "${cmake_source_dir}/Source/kwsys/kwsysPlatformTestsCXX.cxx" >> cmake_bootstrap.log 2>&1; then
|
||||
+ KWSYS_LFS_AVAILABLE=1
|
||||
+ echo "LFS support available"
|
||||
+else
|
||||
+ KWSYS_LFS_AVAILABLE=0
|
||||
+ echo "LFS support unavailable, disabled"
|
||||
+fi
|
||||
+
|
||||
if [ "x${KWSYS_STL_HAS_ITERATOR_TRAITS}" = "x0" ]; then
|
||||
if cmake_try_run "${cmake_cxx_compiler}" \
|
||||
"${cmake_cxx_flags} -DTEST_KWSYS_STL_HAS_ITERATOR_CATEGORY -DKWSYS_STL_HAVE_STD=${KWSYS_STL_HAVE_STD}" \
|
||||
@@ -0,0 +1,19 @@
|
||||
Patch by Heiko Przybyl
|
||||
|
||||
--- Source/cmComputeLinkInformation.cxx
|
||||
+++ Source/cmComputeLinkInformation.cxx
|
||||
@@ -1686,6 +1686,14 @@ std::string cmComputeLinkInformation::Ge
|
||||
for(std::vector<std::string>::const_iterator ri = runtimeDirs.begin();
|
||||
ri != runtimeDirs.end(); ++ri)
|
||||
{
|
||||
+ // Do not add duplicates.
|
||||
+ // I'd like to have that check already in the list generation code
|
||||
+ // but that would need lots of more changes, even in ExpandListArgument().
|
||||
+ if(*sep != '\0' && (rpath + sep).find(*ri + sep) != std::string::npos)
|
||||
+ {
|
||||
+ //std::cerr << "ignoring duplicate: '" << *ri << "' in '" << rpath << "'" << std::endl;
|
||||
+ continue;
|
||||
+ }
|
||||
// Separate from previous path.
|
||||
rpath += sep;
|
||||
sep = this->GetRuntimeSep().c_str();
|
||||
22
dev-util/cmake/files/cmake-2.6.4-FindBoost.patch
Normal file
22
dev-util/cmake/files/cmake-2.6.4-FindBoost.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
--- Modules/FindBoost.cmake
|
||||
+++ Modules/FindBoost.cmake
|
||||
@@ -57,7 +57,8 @@
|
||||
#
|
||||
# Currently this module searches for the following version numbers:
|
||||
# 1.33, 1.33.0, 1.33.1, 1.34, 1.34.0, 1.34.1, 1.35, 1.35.0, 1.35.1,
|
||||
-# 1.36, 1.36.0, 1.36.1, 1.37, 1.37.0, 1.38, 1.38.0
|
||||
+# 1.36, 1.36.0, 1.36.1, 1.37, 1.37.0, 1.38, 1.38.0, 1.39, 1.39.0,
|
||||
+# 1.40, 1.40.0, 1.41, 1.41.0, 1.42, 1.42.0, 1.43, 1.43.0, 1.44, 1.44.0
|
||||
#
|
||||
# NOTE: If you add a new major 1.x version in Boost_ADDITIONAL_VERSIONS you should
|
||||
# add both 1.x and 1.x.0 as shown above. Official Boost include directories
|
||||
@@ -271,7 +272,8 @@
|
||||
# The user has not requested an exact version. Among known
|
||||
# versions, find those that are acceptable to the user request.
|
||||
set(_Boost_KNOWN_VERSIONS ${Boost_ADDITIONAL_VERSIONS}
|
||||
- "1.38.0" "1.38" "1.37.0" "1.37"
|
||||
+ "1.44.0" "1.44" "1.43.0" "1.43" "1.42.0" "1.42" "1.41.0" "1.41"
|
||||
+ "1.40.0" "1.40" "1.39.0" "1.39" "1.38.0" "1.38" "1.37.0" "1.37"
|
||||
"1.36.1" "1.36.0" "1.36" "1.35.1" "1.35.0" "1.35" "1.34.1" "1.34.0"
|
||||
"1.34" "1.33.1" "1.33.0" "1.33")
|
||||
set(_boost_TEST_VERSIONS)
|
||||
@@ -0,0 +1,20 @@
|
||||
The install_name of a library can be compared to the ELF soname, setting
|
||||
it to just the library name (libx.1.dylib) is not sufficient on Mach-O,
|
||||
as it uses full paths. Most apps have no clue about that, so they don't
|
||||
do something like http://www.cmake.org/pipermail/cmake/2006-June/009758.html
|
||||
|
||||
Provide a sane default that will allow merging most cmake-based
|
||||
packages. If this location is not correct, Portage's QA checks will
|
||||
catch that.
|
||||
|
||||
--- Source/cmTarget.cxx
|
||||
+++ Source/cmTarget.cxx
|
||||
@@ -974,7 +974,7 @@
|
||||
this->Makefile->IsOn("MINGW"));
|
||||
|
||||
// Setup default property values.
|
||||
- this->SetPropertyDefault("INSTALL_NAME_DIR", "");
|
||||
+ this->SetPropertyDefault("INSTALL_NAME_DIR", "${CMAKE_INSTALL_PREFIX}/lib");
|
||||
this->SetPropertyDefault("INSTALL_RPATH", "");
|
||||
this->SetPropertyDefault("INSTALL_RPATH_USE_LINK_PATH", "OFF");
|
||||
this->SetPropertyDefault("SKIP_BUILD_RPATH", "OFF");
|
||||
74
dev-util/cmake/files/cmake-2.8.0-darwin-no-app-with-qt.patch
Normal file
74
dev-util/cmake/files/cmake-2.8.0-darwin-no-app-with-qt.patch
Normal file
@@ -0,0 +1,74 @@
|
||||
Description: Don't build the GUI's app-bundle.
|
||||
Author: Heiko Przybyl <zuxez@cs.tu-berlin.de>
|
||||
--- cmake-2.8.0/CMakeLists.txt.orig 2010-02-10 19:38:03 +0100
|
||||
+++ cmake-2.8.0/CMakeLists.txt 2010-02-10 19:38:49 +0100
|
||||
@@ -381,7 +381,7 @@ IF(BUILD_CursesDialog)
|
||||
ENDIF(BUILD_CursesDialog)
|
||||
|
||||
IF(BUILD_QtDialog)
|
||||
- IF(APPLE)
|
||||
+ IF(FALSE)
|
||||
SET(CMAKE_BUNDLE_NAME
|
||||
"CMake ${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}-${CMake_VERSION_PATCH}")
|
||||
SET(CMAKE_BUNDLE_LOCATION "${CMAKE_INSTALL_PREFIX}")
|
||||
@@ -394,7 +394,7 @@ IF(BUILD_QtDialog)
|
||||
ENDIF(NOT "${ENDCH}" STREQUAL "/")
|
||||
SET(CMAKE_INSTALL_PREFIX
|
||||
"${CMAKE_INSTALL_PREFIX}${CMAKE_BUNDLE_NAME}.app/Contents")
|
||||
- ENDIF(APPLE)
|
||||
+ ENDIF(FALSE)
|
||||
|
||||
SET(QT_NEED_RPATH FALSE)
|
||||
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")
|
||||
--- cmake-2.8.0/Source/QtDialog/CMakeLists.txt.orig 2010-02-10 19:39:59 +0100
|
||||
+++ cmake-2.8.0/Source/QtDialog/CMakeLists.txt 2010-02-10 19:42:12 +0100
|
||||
@@ -66,12 +66,12 @@ ELSE(NOT QT4_FOUND)
|
||||
IF(Q_WS_WIN)
|
||||
SET(SRCS ${SRCS} CMakeSetup.rc)
|
||||
ENDIF(Q_WS_WIN)
|
||||
- IF(Q_WS_MAC)
|
||||
+ IF(FALSE)
|
||||
SET(SRCS ${SRCS} CMakeSetup.icns)
|
||||
SET(MACOSX_BUNDLE_ICON_FILE CMakeSetup.icns)
|
||||
SET_SOURCE_FILES_PROPERTIES(CMakeSetup.icns PROPERTIES
|
||||
MACOSX_PACKAGE_LOCATION Resources)
|
||||
- ENDIF(Q_WS_MAC)
|
||||
+ ENDIF(FALSE)
|
||||
|
||||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
|
||||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
|
||||
@@ -79,13 +79,13 @@ ELSE(NOT QT4_FOUND)
|
||||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
|
||||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
- ADD_EXECUTABLE(cmake-gui WIN32 MACOSX_BUNDLE ${SRCS})
|
||||
+ ADD_EXECUTABLE(cmake-gui WIN32 ${SRCS})
|
||||
TARGET_LINK_LIBRARIES(cmake-gui CMakeLib ${QT_QTMAIN_LIBRARY} ${QT_LIBRARIES})
|
||||
IF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.4)
|
||||
- IF(APPLE)
|
||||
+ IF(FALSE)
|
||||
SET_TARGET_PROPERTIES(cmake-gui PROPERTIES
|
||||
OUTPUT_NAME ${CMAKE_BUNDLE_NAME})
|
||||
- ENDIF(APPLE)
|
||||
+ ENDIF(FALSE)
|
||||
SET(CMAKE_INSTALL_DESTINATION_ARGS
|
||||
BUNDLE DESTINATION "${CMAKE_BUNDLE_LOCATION}")
|
||||
ENDIF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.4)
|
||||
@@ -101,7 +101,7 @@ ELSE(NOT QT4_FOUND)
|
||||
INSTALL(FILES cmakecache.xml DESTINATION share/mime/packages )
|
||||
ENDIF(UNIX)
|
||||
|
||||
- IF(APPLE)
|
||||
+ IF(FALSE)
|
||||
SET(CMAKE_POSTFLIGHT_SCRIPT
|
||||
"${CMake_BINARY_DIR}/Source/QtDialog/postflight.sh")
|
||||
SET(CMAKE_POSTUPGRADE_SCRIPT
|
||||
@@ -115,7 +115,7 @@ ELSE(NOT QT4_FOUND)
|
||||
INSTALL(CODE "set(input_file
|
||||
\"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/MacOS/${CMAKE_BUNDLE_NAME}\")")
|
||||
INSTALL(SCRIPT "${CMake_SOURCE_DIR}/Source/QtDialog/CMakeIngestOSXBundleLibraries.cmake")
|
||||
- ENDIF(APPLE)
|
||||
+ ENDIF(FALSE)
|
||||
CONFIGURE_FILE("${QtDialog_SOURCE_DIR}/QtDialogCPack.cmake.in"
|
||||
"${QtDialog_BINARY_DIR}/QtDialogCPack.cmake" @ONLY)
|
||||
ENDIF(NOT QT4_FOUND)
|
||||
14
dev-util/cmake/files/cmake-2.8.1-FindBoost.patch
Normal file
14
dev-util/cmake/files/cmake-2.8.1-FindBoost.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
diff -u -r cmake-2.8.1.orig/Modules/FindBoost.cmake cmake-2.8.1/Modules/FindBoost.cmake
|
||||
--- cmake-2.8.1.orig/Modules/FindBoost.cmake 2010-03-16 21:29:29.000000000 +0100
|
||||
+++ cmake-2.8.1/Modules/FindBoost.cmake 2010-04-04 19:52:50.000000000 +0200
|
||||
@@ -70,7 +70,9 @@
|
||||
# omit the 3rd version number from include paths if it is 0 although not all
|
||||
# binary Boost releases do so.
|
||||
#
|
||||
-# SET(Boost_ADDITIONAL_VERSIONS "1.78" "1.78.0" "1.79" "1.79.0")
|
||||
+SET(Boost_ADDITIONAL_VERSIONS "1.50.0" "1.50" "1.49.0" "1.49" "1.48.0" "1.48"
|
||||
+ "1.47.0" "1.47" "1.46.0" "1.46" "1.45.0" "1.45" "1.44.0" "1.44" "1.43.0"
|
||||
+ "1.43" "1.42.0" "1.42")
|
||||
#
|
||||
# ===================================== ============= ========================
|
||||
#
|
||||
50
dev-util/cmake/files/cmake-2.8.1-libform.patch
Normal file
50
dev-util/cmake/files/cmake-2.8.1-libform.patch
Normal file
@@ -0,0 +1,50 @@
|
||||
diff -u -r cmake-2.8.1.medium/CMakeLists.txt cmake-2.8.1/CMakeLists.txt
|
||||
--- cmake-2.8.1.medium/CMakeLists.txt 2010-03-16 21:29:28.000000000 +0100
|
||||
+++ cmake-2.8.1/CMakeLists.txt 2010-04-04 20:04:47.000000000 +0200
|
||||
@@ -314,9 +314,6 @@
|
||||
ELSE (UNIX)
|
||||
SET(BUILD_CursesDialog 0)
|
||||
ENDIF (UNIX)
|
||||
- IF(BUILD_CursesDialog)
|
||||
- ADD_SUBDIRECTORY(Source/CursesDialog/form)
|
||||
- ENDIF(BUILD_CursesDialog)
|
||||
ENDMACRO (CMAKE_BUILD_UTILITIES)
|
||||
|
||||
|
||||
diff -u -r cmake-2.8.1.medium/Source/CursesDialog/CMakeLists.txt cmake-2.8.1/Source/CursesDialog/CMakeLists.txt
|
||||
--- cmake-2.8.1.medium/Source/CursesDialog/CMakeLists.txt 2010-03-16 21:29:34.000000000 +0100
|
||||
+++ cmake-2.8.1/Source/CursesDialog/CMakeLists.txt 2010-04-04 20:01:38.000000000 +0200
|
||||
@@ -25,13 +25,18 @@
|
||||
CursesDialog/ccmake
|
||||
)
|
||||
|
||||
-INCLUDE_DIRECTORIES(${CMake_SOURCE_DIR}/Source/CursesDialog/form
|
||||
- ${CMake_BINARY_DIR}/Source/CursesDialog/form)
|
||||
INCLUDE_DIRECTORIES(${CURSES_INCLUDE_PATH})
|
||||
|
||||
|
||||
ADD_EXECUTABLE(ccmake ${CURSES_SRCS} )
|
||||
TARGET_LINK_LIBRARIES(ccmake CMakeLib)
|
||||
-TARGET_LINK_LIBRARIES(ccmake cmForm)
|
||||
+TARGET_LINK_LIBRARIES(ccmake form)
|
||||
+TARGET_LINK_LIBRARIES(ccmake ${CURSES_LIBRARY})
|
||||
+IF(CURSES_EXTRA_LIBRARY)
|
||||
+ TARGET_LINK_LIBRARIES(ccmake ${CURSES_EXTRA_LIBRARY})
|
||||
+ENDIF(CURSES_EXTRA_LIBRARY)
|
||||
+
|
||||
|
||||
INSTALL_TARGETS(/bin ccmake)
|
||||
+
|
||||
+
|
||||
diff -u -r cmake-2.8.1.medium/Source/CursesDialog/cmCursesStandardIncludes.h cmake-2.8.1/Source/CursesDialog/cmCursesStandardIncludes.h
|
||||
--- cmake-2.8.1.medium/Source/CursesDialog/cmCursesStandardIncludes.h 2010-03-16 21:29:35.000000000 +0100
|
||||
+++ cmake-2.8.1/Source/CursesDialog/cmCursesStandardIncludes.h 2010-04-04 20:01:38.000000000 +0200
|
||||
@@ -15,8 +15,6 @@
|
||||
#define _MSE_INT_H
|
||||
#endif
|
||||
|
||||
-#include <cmFormConfigure.h>
|
||||
-
|
||||
#if defined(__hpux)
|
||||
# define _BOOL_DEFINED
|
||||
# include <sys/time.h>
|
||||
108
dev-util/cmake/files/cmake-2.8.1-more-no_host_paths.patch
Normal file
108
dev-util/cmake/files/cmake-2.8.1-more-no_host_paths.patch
Normal file
@@ -0,0 +1,108 @@
|
||||
Set some proper paths to make cmake find our tools.
|
||||
Original patch by Heiko Przybyl
|
||||
|
||||
The ebuild now adds an extra / at the end of $EPREFIX so that it is
|
||||
never the empty string (so that CMAKE_SYSTEM_PREFIX_PATH remains
|
||||
correct)
|
||||
|
||||
--- cmake-2.8.0/Modules/Platform/Darwin.cmake
|
||||
+++ cmake-2.8.0/Modules/Platform/Darwin.cmake
|
||||
@@ -213,19 +213,23 @@
|
||||
|
||||
|
||||
|
||||
-# default to searching for frameworks first
|
||||
-SET(CMAKE_FIND_FRAMEWORK FIRST)
|
||||
+# default to searching for frameworks last
|
||||
+SET(CMAKE_FIND_FRAMEWORK LAST)
|
||||
# set up the default search directories for frameworks
|
||||
SET(CMAKE_SYSTEM_FRAMEWORK_PATH
|
||||
+ @GENTOO_PORTAGE_EPREFIX@Frameworks
|
||||
+ @GENTOO_PORTAGE_EPREFIX@usr/lib
|
||||
~/Library/Frameworks
|
||||
/Library/Frameworks
|
||||
/Network/Library/Frameworks
|
||||
/System/Library/Frameworks)
|
||||
|
||||
-# default to searching for application bundles first
|
||||
-SET(CMAKE_FIND_APPBUNDLE FIRST)
|
||||
+# default to searching for application bundles last
|
||||
+SET(CMAKE_FIND_APPBUNDLE LAST)
|
||||
# set up the default search directories for application bundles
|
||||
SET(CMAKE_SYSTEM_APPBUNDLE_PATH
|
||||
+ @GENTOO_PORTAGE_EPREFIX@Applications
|
||||
+ @GENTOO_PORTAGE_EPREFIX@usr/bin
|
||||
~/Applications
|
||||
/Applications
|
||||
/Developer/Applications)
|
||||
--- cmake-2.8.0/Modules/Platform/UnixPaths.cmake
|
||||
+++ cmake-2.8.0/Modules/Platform/UnixPaths.cmake
|
||||
@@ -33,6 +33,7 @@
|
||||
# search types.
|
||||
LIST(APPEND CMAKE_SYSTEM_PREFIX_PATH
|
||||
# Standard
|
||||
+ @GENTOO_PORTAGE_EPREFIX@usr/local @GENTOO_PORTAGE_EPREFIX@usr @GENTOO_PORTAGE_EPREFIX@
|
||||
/usr/local /usr /
|
||||
|
||||
# CMake install location
|
||||
@@ -44,43 +45,39 @@
|
||||
|
||||
# List common include file locations not under the common prefixes.
|
||||
LIST(APPEND CMAKE_SYSTEM_INCLUDE_PATH
|
||||
- # Windows API on Cygwin
|
||||
- /usr/include/w32api
|
||||
-
|
||||
- # X11
|
||||
- /usr/X11R6/include /usr/include/X11
|
||||
-
|
||||
- # Other
|
||||
- /opt/local/include /usr/pkg/include
|
||||
- /opt/csw/include /opt/include
|
||||
- /usr/openwin/include
|
||||
+ @GENTOO_PORTAGE_EPREFIX@usr/include
|
||||
)
|
||||
|
||||
LIST(APPEND CMAKE_SYSTEM_LIBRARY_PATH
|
||||
- # Windows API on Cygwin
|
||||
- /usr/lib/w32api
|
||||
-
|
||||
- # X11
|
||||
- /usr/X11R6/lib /usr/lib/X11
|
||||
-
|
||||
- # Other
|
||||
- /opt/local/lib /usr/pkg/lib
|
||||
- /opt/csw/lib /opt/lib
|
||||
- /usr/openwin/lib
|
||||
+ @GENTOO_PORTAGE_GCCLIBDIR@/gcc
|
||||
+ @GENTOO_PORTAGE_GCCLIBDIR@
|
||||
+ @GENTOO_PORTAGE_EPREFIX@usr/lib64
|
||||
+ @GENTOO_PORTAGE_EPREFIX@usr/lib32
|
||||
+ @GENTOO_PORTAGE_EPREFIX@usr/lib
|
||||
+ @GENTOO_PORTAGE_EPREFIX@lib
|
||||
)
|
||||
|
||||
LIST(APPEND CMAKE_SYSTEM_PROGRAM_PATH
|
||||
- /usr/pkg/bin
|
||||
+ @GENTOO_PORTAGE_EPREFIX@usr/bin
|
||||
+ @GENTOO_PORTAGE_EPREFIX@bin
|
||||
)
|
||||
|
||||
LIST(APPEND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES
|
||||
+ @GENTOO_PORTAGE_GCCLIBDIR@/gcc
|
||||
+ @GENTOO_PORTAGE_GCCLIBDIR@
|
||||
+ @GENTOO_PORTAGE_EPREFIX@usr/lib64
|
||||
+ @GENTOO_PORTAGE_EPREFIX@usr/lib32
|
||||
+ @GENTOO_PORTAGE_EPREFIX@usr/lib
|
||||
+ @GENTOO_PORTAGE_EPREFIX@lib
|
||||
/lib /usr/lib /usr/lib32 /usr/lib64
|
||||
)
|
||||
|
||||
LIST(APPEND CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES
|
||||
+ @GENTOO_PORTAGE_EPREFIX@usr/include
|
||||
/usr/include
|
||||
)
|
||||
LIST(APPEND CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES
|
||||
+ @GENTOO_PORTAGE_EPREFIX@usr/include
|
||||
/usr/include
|
||||
)
|
||||
|
||||
20
dev-util/cmake/files/cmake-2.8.1-mpi.patch
Normal file
20
dev-util/cmake/files/cmake-2.8.1-mpi.patch
Normal file
@@ -0,0 +1,20 @@
|
||||
diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake
|
||||
index 481b0e9..43e97e8 100644
|
||||
--- a/Modules/FindMPI.cmake
|
||||
+++ b/Modules/FindMPI.cmake
|
||||
@@ -263,13 +263,13 @@ elseif (MPI_COMPILE_CMDLINE)
|
||||
|
||||
# Extract the set of libraries to link against from the link command
|
||||
# line
|
||||
- string(REGEX MATCHALL "-l([^\" ]+|\"[^\"]+\")" MPI_LIBNAMES "${MPI_LINK_CMDLINE}")
|
||||
+ string(REGEX MATCHALL " -l([^\" ]+|\"[^\"]+\")" MPI_LIBNAMES "${MPI_LINK_CMDLINE}")
|
||||
|
||||
# Determine full path names for all of the libraries that one needs
|
||||
# to link against in an MPI program
|
||||
set(MPI_LIBRARIES)
|
||||
foreach(LIB ${MPI_LIBNAMES})
|
||||
- string(REGEX REPLACE "^-l" "" LIB ${LIB})
|
||||
+ string(REGEX REPLACE "^ -l" "" LIB ${LIB})
|
||||
set(MPI_LIB "MPI_LIB-NOTFOUND" CACHE FILEPATH "Cleared" FORCE)
|
||||
find_library(MPI_LIB ${LIB} HINTS ${MPI_LINK_PATH})
|
||||
if (MPI_LIB)
|
||||
217
dev-util/cmake/files/cmake-2.8.1-portage-multilib-lib32.patch
Normal file
217
dev-util/cmake/files/cmake-2.8.1-portage-multilib-lib32.patch
Normal file
@@ -0,0 +1,217 @@
|
||||
Author: Nathan Phillip Brink <ohnobinki@ohnopublishing.net>
|
||||
Date: 2010/09/17
|
||||
Purpose: Add a global FIND_LIBRARY_USE_LIB32_PATHS property which is
|
||||
an analog to the existing FIND_LIBRARY_USE_LIB64_PATHS
|
||||
property. This fixes kde-base/kdelib's ability to find
|
||||
automoc4 using FIND_PACKAGE's NO_MODULE mode on systems where
|
||||
/usr/lib is neither a symlink to /usr/lib64 or /usr/lib32.
|
||||
Gentoo-Bug: 338492
|
||||
|
||||
diff --git a/Modules/Platform/UnixPaths.cmake b/Modules/Platform/UnixPaths.cmake
|
||||
index 5ee7ddb..afcde6f 100644
|
||||
--- a/Modules/Platform/UnixPaths.cmake
|
||||
+++ b/Modules/Platform/UnixPaths.cmake
|
||||
@@ -86,3 +86,6 @@ LIST(APPEND CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES
|
||||
|
||||
# Enable use of lib64 search path variants by default.
|
||||
SET_PROPERTY(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS TRUE)
|
||||
+# Enable use of lib32 search path variants by default. Useful on
|
||||
+# multilib systems. Not harmful for normal systems.
|
||||
+SET_PROPERTY(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB32_PATHS TRUE)
|
||||
diff --git a/Source/cmFindLibraryCommand.cxx b/Source/cmFindLibraryCommand.cxx
|
||||
index 9077c8e..e09967d 100644
|
||||
--- a/Source/cmFindLibraryCommand.cxx
|
||||
+++ b/Source/cmFindLibraryCommand.cxx
|
||||
@@ -92,6 +92,12 @@ bool cmFindLibraryCommand
|
||||
// add special 64 bit paths if this is a 64 bit compile.
|
||||
this->AddLib64Paths();
|
||||
}
|
||||
+ if(this->Makefile->GetCMakeInstance()
|
||||
+ ->GetPropertyAsBool("FIND_LIBRARY_USE_LIB32_PATHS"))
|
||||
+ {
|
||||
+ // add special 32 bit paths if this is a 32 bit compile.
|
||||
+ this->AddLib32Paths();
|
||||
+ }
|
||||
|
||||
std::string library = this->FindLibrary();
|
||||
if(library != "")
|
||||
@@ -160,10 +166,7 @@ void cmFindLibraryCommand::AddLib64Paths()
|
||||
{
|
||||
return;
|
||||
}
|
||||
- std::string voidsize =
|
||||
- this->Makefile->GetSafeDefinition("CMAKE_SIZEOF_VOID_P");
|
||||
- int size = atoi(voidsize.c_str());
|
||||
- if(size != 8)
|
||||
+ if(!this->Makefile->PlatformIs64Bit())
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -205,6 +208,55 @@ void cmFindLibraryCommand::AddLib64Paths()
|
||||
}
|
||||
}
|
||||
|
||||
+void cmFindLibraryCommand::AddLib32Paths()
|
||||
+{
|
||||
+ if(!this->Makefile->GetLocalGenerator()->GetGlobalGenerator()->
|
||||
+ GetLanguageEnabled("C"))
|
||||
+ {
|
||||
+ return;
|
||||
+ }
|
||||
+ if(!this->Makefile->PlatformIs32Bit())
|
||||
+ {
|
||||
+ return;
|
||||
+ }
|
||||
+ std::vector<std::string> path32;
|
||||
+ bool found32 = false;
|
||||
+ for(std::vector<std::string>::iterator i = this->SearchPaths.begin();
|
||||
+ i != this->SearchPaths.end(); ++i)
|
||||
+ {
|
||||
+ std::string s = *i;
|
||||
+ std::string s2 = *i;
|
||||
+ cmSystemTools::ReplaceString(s, "lib/", "lib32/");
|
||||
+ // try to replace lib with lib32 and see if it is there,
|
||||
+ // then prepend it to the path
|
||||
+ // Note that all paths have trailing slashes.
|
||||
+ if((s != *i) && cmSystemTools::FileIsDirectory(s.c_str()))
|
||||
+ {
|
||||
+ path32.push_back(s);
|
||||
+ found32 = true;
|
||||
+ }
|
||||
+ // now just add a 32 to the path name and if it is there,
|
||||
+ // add it to the path
|
||||
+ s2 += "32/";
|
||||
+ if(cmSystemTools::FileIsDirectory(s2.c_str()))
|
||||
+ {
|
||||
+ found32 = true;
|
||||
+ path32.push_back(s2);
|
||||
+ }
|
||||
+ // now add the original unchanged path
|
||||
+ if(cmSystemTools::FileIsDirectory(i->c_str()))
|
||||
+ {
|
||||
+ path32.push_back(*i);
|
||||
+ }
|
||||
+ }
|
||||
+ // now replace the SearchPaths with the 32 bit converted path
|
||||
+ // if any 32 bit paths were discovered
|
||||
+ if(found32)
|
||||
+ {
|
||||
+ this->SearchPaths = path32;
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
//----------------------------------------------------------------------------
|
||||
std::string cmFindLibraryCommand::FindLibrary()
|
||||
{
|
||||
diff --git a/Source/cmFindLibraryCommand.h b/Source/cmFindLibraryCommand.h
|
||||
index 486c2cf..e0dd49d 100644
|
||||
--- a/Source/cmFindLibraryCommand.h
|
||||
+++ b/Source/cmFindLibraryCommand.h
|
||||
@@ -63,6 +63,7 @@ public:
|
||||
protected:
|
||||
void AddArchitecturePaths(const char* suffix);
|
||||
void AddLib64Paths();
|
||||
+ void AddLib32Paths();
|
||||
std::string FindLibrary();
|
||||
private:
|
||||
std::string FindNormalLibrary();
|
||||
diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx
|
||||
index ef0197a..b0a2985 100644
|
||||
--- a/Source/cmFindPackageCommand.cxx
|
||||
+++ b/Source/cmFindPackageCommand.cxx
|
||||
@@ -66,6 +66,7 @@ cmFindPackageCommand::cmFindPackageCommand()
|
||||
this->NoModule = false;
|
||||
this->DebugMode = false;
|
||||
this->UseLib64Paths = false;
|
||||
+ this->UseLib32Paths = false;
|
||||
this->PolicyScope = true;
|
||||
this->VersionMajor = 0;
|
||||
this->VersionMinor = 0;
|
||||
@@ -341,6 +342,13 @@ bool cmFindPackageCommand
|
||||
{
|
||||
this->UseLib64Paths = true;
|
||||
}
|
||||
+ // Lookup whether lib32 paths should be used.
|
||||
+ if(this->Makefile->PlatformIs32Bit() &&
|
||||
+ this->Makefile->GetCMakeInstance()
|
||||
+ ->GetPropertyAsBool("FIND_LIBRARY_USE_LIB32_PATHS"))
|
||||
+ {
|
||||
+ this->UseLib32Paths = true;
|
||||
+ }
|
||||
|
||||
// Find the current root path mode.
|
||||
this->SelectDefaultRootPathMode();
|
||||
@@ -2105,6 +2113,10 @@ bool cmFindPackageCommand::SearchPrefix(std::string const& prefix_in)
|
||||
{
|
||||
common.push_back("lib64");
|
||||
}
|
||||
+ if(this->UseLib32Paths)
|
||||
+ {
|
||||
+ common.push_back("lib32");
|
||||
+ }
|
||||
common.push_back("lib");
|
||||
common.push_back("share");
|
||||
|
||||
diff --git a/Source/cmFindPackageCommand.h b/Source/cmFindPackageCommand.h
|
||||
index 57aeab9..06edc1a 100644
|
||||
--- a/Source/cmFindPackageCommand.h
|
||||
+++ b/Source/cmFindPackageCommand.h
|
||||
@@ -134,6 +134,7 @@ private:
|
||||
bool NoBuilds;
|
||||
bool DebugMode;
|
||||
bool UseLib64Paths;
|
||||
+ bool UseLib32Paths;
|
||||
bool PolicyScope;
|
||||
std::vector<std::string> Names;
|
||||
std::vector<std::string> Configs;
|
||||
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
|
||||
index c64053a..c6cda07 100644
|
||||
--- a/Source/cmMakefile.cxx
|
||||
+++ b/Source/cmMakefile.cxx
|
||||
@@ -1993,6 +1993,15 @@ bool cmMakefile::PlatformIs64Bit() const
|
||||
return false;
|
||||
}
|
||||
|
||||
+bool cmMakefile::PlatformIs32Bit() const
|
||||
+{
|
||||
+ if(const char* sizeof_dptr = this->GetDefinition("CMAKE_SIZEOF_VOID_P"))
|
||||
+ {
|
||||
+ return atoi(sizeof_dptr) == 4;
|
||||
+ }
|
||||
+ return false;
|
||||
+}
|
||||
+
|
||||
bool cmMakefile::CanIWriteThisFile(const char* fileName)
|
||||
{
|
||||
if ( !this->IsOn("CMAKE_DISABLE_SOURCE_CHANGES") )
|
||||
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h
|
||||
index 8b8a3f8..c16ba71 100644
|
||||
--- a/Source/cmMakefile.h
|
||||
+++ b/Source/cmMakefile.h
|
||||
@@ -588,6 +588,8 @@ public:
|
||||
|
||||
/** Return whether the target platform is 64-bit. */
|
||||
bool PlatformIs64Bit() const;
|
||||
+ /** Return whether the target platform is 32-bit. */
|
||||
+ bool PlatformIs32Bit() const;
|
||||
|
||||
/**
|
||||
* Get a list of preprocessor define flags.
|
||||
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
|
||||
index 1e3b018..2bc3eba 100644
|
||||
--- a/Source/cmake.cxx
|
||||
+++ b/Source/cmake.cxx
|
||||
@@ -3365,6 +3365,13 @@ void cmake::DefineProperties(cmake *cm)
|
||||
"directories called lib in the search path when building 64-bit "
|
||||
"binaries.");
|
||||
cm->DefineProperty
|
||||
+ ("FIND_LIBRARY_USE_LIB32_PATHS", cmProperty::GLOBAL,
|
||||
+ "Whether FIND_LIBRARY should automatically search lib32 directories.",
|
||||
+ "FIND_LIBRARY_USE_LIB32_PATHS is a boolean specifying whether the"
|
||||
+ " FIND_LIBRARY command should automatically search the lib32 variant of"
|
||||
+ " directories called lib in the search path when building 32-bit"
|
||||
+ " binaries.");
|
||||
+ cm->DefineProperty
|
||||
("FIND_LIBRARY_USE_OPENBSD_VERSIONING", cmProperty::GLOBAL,
|
||||
"Whether FIND_LIBRARY should find OpenBSD-style shared libraries.",
|
||||
"This property is a boolean specifying whether the FIND_LIBRARY "
|
||||
12
dev-util/cmake/files/cmake-2.8.3-FindLibArchive.patch
Normal file
12
dev-util/cmake/files/cmake-2.8.3-FindLibArchive.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
diff -ruN cmake-2.8.3.orig/Modules/FindLibArchive.cmake cmake-2.8.3/Modules/FindLibArchive.cmake
|
||||
--- cmake-2.8.3.orig/Modules/FindLibArchive.cmake 2010-11-04 02:58:27.000000000 +0700
|
||||
+++ cmake-2.8.3/Modules/FindLibArchive.cmake 2010-11-05 17:40:53.712001939 +0700
|
||||
@@ -50,7 +50,7 @@
|
||||
|
||||
# Handle the QUIETLY and REQUIRED arguments and set LIBARCHIVE_FOUND
|
||||
# to TRUE if all listed variables are TRUE.
|
||||
-include("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
|
||||
+include("${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake")
|
||||
find_package_handle_standard_args(LibArchive DEFAULT_MSG
|
||||
LibArchive_LIBRARY LibArchive_INCLUDE_DIR
|
||||
)
|
||||
11
dev-util/cmake/files/cmake-2.8.3-FindPythonInterp.patch
Normal file
11
dev-util/cmake/files/cmake-2.8.3-FindPythonInterp.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- Modules/FindPythonInterp.cmake
|
||||
+++ Modules/FindPythonInterp.cmake
|
||||
@@ -20,7 +20,7 @@
|
||||
# License text for the above reference.)
|
||||
|
||||
FIND_PROGRAM(PYTHON_EXECUTABLE
|
||||
- NAMES python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 python
|
||||
+ NAMES python python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5
|
||||
PATHS
|
||||
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.7\\InstallPath]
|
||||
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.6\\InstallPath]
|
||||
13
dev-util/cmake/files/cmake-2.8.3-FindPythonLibs.patch
Normal file
13
dev-util/cmake/files/cmake-2.8.3-FindPythonLibs.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
--- Modules/FindPythonLibs.cmake
|
||||
+++ Modules/FindPythonLibs.cmake
|
||||
@@ -27,7 +27,9 @@
|
||||
# Search for the python framework on Apple.
|
||||
CMAKE_FIND_FRAMEWORKS(Python)
|
||||
|
||||
-FOREACH(_CURRENT_VERSION 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0 1.6 1.5)
|
||||
+EXECUTE_PROCESS(COMMAND python -c "import sys; sys.stdout.write('.'.join([str(x) for x in sys.version_info[:2]]))"
|
||||
+ OUTPUT_VARIABLE _PYTHON_VERSION)
|
||||
+FOREACH(_CURRENT_VERSION ${_PYTHON_VERSION})
|
||||
STRING(REPLACE "." "" _CURRENT_VERSION_NO_DOTS ${_CURRENT_VERSION})
|
||||
IF(WIN32)
|
||||
FIND_LIBRARY(PYTHON_DEBUG_LIBRARY
|
||||
109
dev-util/cmake/files/cmake-2.8.3-more-no_host_paths.patch
Normal file
109
dev-util/cmake/files/cmake-2.8.3-more-no_host_paths.patch
Normal file
@@ -0,0 +1,109 @@
|
||||
Set some proper paths to make cmake find our tools.
|
||||
Original patch by Heiko Przybyl
|
||||
|
||||
The ebuild now adds an extra / at the end of $EPREFIX so that it is
|
||||
never the empty string (so that CMAKE_SYSTEM_PREFIX_PATH remains
|
||||
correct)
|
||||
|
||||
--- cmake-2.8.3/Modules/Platform/Darwin.cmake
|
||||
+++ cmake-2.8.3/Modules/Platform/Darwin.cmake
|
||||
@@ -217,19 +217,23 @@
|
||||
|
||||
|
||||
|
||||
-# default to searching for frameworks first
|
||||
-SET(CMAKE_FIND_FRAMEWORK FIRST)
|
||||
+# default to searching for frameworks last
|
||||
+SET(CMAKE_FIND_FRAMEWORK LAST)
|
||||
# set up the default search directories for frameworks
|
||||
SET(CMAKE_SYSTEM_FRAMEWORK_PATH
|
||||
+ @GENTOO_PORTAGE_EPREFIX@Frameworks
|
||||
+ @GENTOO_PORTAGE_EPREFIX@usr/lib
|
||||
~/Library/Frameworks
|
||||
/Library/Frameworks
|
||||
/Network/Library/Frameworks
|
||||
/System/Library/Frameworks)
|
||||
|
||||
-# default to searching for application bundles first
|
||||
-SET(CMAKE_FIND_APPBUNDLE FIRST)
|
||||
+# default to searching for application bundles last
|
||||
+SET(CMAKE_FIND_APPBUNDLE LAST)
|
||||
# set up the default search directories for application bundles
|
||||
SET(CMAKE_SYSTEM_APPBUNDLE_PATH
|
||||
+ @GENTOO_PORTAGE_EPREFIX@Applications
|
||||
+ @GENTOO_PORTAGE_EPREFIX@usr/bin
|
||||
~/Applications
|
||||
/Applications
|
||||
/Developer/Applications)
|
||||
diff -ruN cmake-2.8.3.orig/Modules/Platform/UnixPaths.cmake cmake-2.8.3/Modules/Platform/UnixPaths.cmake
|
||||
--- cmake-2.8.3/Modules/Platform/UnixPaths.cmake
|
||||
+++ cmake-2.8.3/Modules/Platform/UnixPaths.cmake
|
||||
@@ -33,6 +33,7 @@
|
||||
# search types.
|
||||
LIST(APPEND CMAKE_SYSTEM_PREFIX_PATH
|
||||
# Standard
|
||||
+ @GENTOO_PORTAGE_EPREFIX@usr/local @GENTOO_PORTAGE_EPREFIX@usr @GENTOO_PORTAGE_EPREFIX@
|
||||
/usr/local /usr /
|
||||
|
||||
# CMake install location
|
||||
@@ -44,43 +45,39 @@
|
||||
|
||||
# List common include file locations not under the common prefixes.
|
||||
LIST(APPEND CMAKE_SYSTEM_INCLUDE_PATH
|
||||
- # Windows API on Cygwin
|
||||
- /usr/include/w32api
|
||||
-
|
||||
- # X11
|
||||
- /usr/X11R6/include /usr/include/X11
|
||||
-
|
||||
- # Other
|
||||
- /usr/pkg/include
|
||||
- /opt/csw/include /opt/include
|
||||
- /usr/openwin/include
|
||||
+ @GENTOO_PORTAGE_EPREFIX@usr/include
|
||||
)
|
||||
|
||||
LIST(APPEND CMAKE_SYSTEM_LIBRARY_PATH
|
||||
- # Windows API on Cygwin
|
||||
- /usr/lib/w32api
|
||||
-
|
||||
- # X11
|
||||
- /usr/X11R6/lib /usr/lib/X11
|
||||
-
|
||||
- # Other
|
||||
- /usr/pkg/lib
|
||||
- /opt/csw/lib /opt/lib
|
||||
- /usr/openwin/lib
|
||||
+ @GENTOO_PORTAGE_GCCLIBDIR@/gcc
|
||||
+ @GENTOO_PORTAGE_GCCLIBDIR@
|
||||
+ @GENTOO_PORTAGE_EPREFIX@usr/lib64
|
||||
+ @GENTOO_PORTAGE_EPREFIX@usr/lib32
|
||||
+ @GENTOO_PORTAGE_EPREFIX@usr/lib
|
||||
+ @GENTOO_PORTAGE_EPREFIX@lib
|
||||
)
|
||||
|
||||
LIST(APPEND CMAKE_SYSTEM_PROGRAM_PATH
|
||||
- /usr/pkg/bin
|
||||
+ @GENTOO_PORTAGE_EPREFIX@usr/bin
|
||||
+ @GENTOO_PORTAGE_EPREFIX@bin
|
||||
)
|
||||
|
||||
LIST(APPEND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES
|
||||
+ @GENTOO_PORTAGE_GCCLIBDIR@/gcc
|
||||
+ @GENTOO_PORTAGE_GCCLIBDIR@
|
||||
+ @GENTOO_PORTAGE_EPREFIX@usr/lib64
|
||||
+ @GENTOO_PORTAGE_EPREFIX@usr/lib32
|
||||
+ @GENTOO_PORTAGE_EPREFIX@usr/lib
|
||||
+ @GENTOO_PORTAGE_EPREFIX@lib
|
||||
/lib /usr/lib /usr/lib32 /usr/lib64
|
||||
)
|
||||
|
||||
LIST(APPEND CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES
|
||||
+ @GENTOO_PORTAGE_EPREFIX@usr/include
|
||||
/usr/include
|
||||
)
|
||||
LIST(APPEND CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES
|
||||
+ @GENTOO_PORTAGE_EPREFIX@usr/include
|
||||
/usr/include
|
||||
)
|
||||
|
||||
71
dev-util/cmake/files/cmake-FindJNI.patch
Normal file
71
dev-util/cmake/files/cmake-FindJNI.patch
Normal file
@@ -0,0 +1,71 @@
|
||||
diff -ru ./Modules/FindJNI.cmake ../a/Modules/FindJNI.cmake
|
||||
--- ./Modules/FindJNI.cmake 2009-02-21 21:36:50.000000000 +0100
|
||||
+++ ../a/Modules/FindJNI.cmake 2008-11-24 04:44:06.000000000 +0100
|
||||
@@ -2,7 +2,7 @@
|
||||
# This module finds if Java is installed and determines where the
|
||||
# include files and libraries are. It also determines what the name of
|
||||
# the library is. This code sets the following variables:
|
||||
-#
|
||||
+#
|
||||
# JNI_INCLUDE_DIRS = the include dirs to use
|
||||
# JNI_LIBRARIES = the libraries to use
|
||||
# JAVA_AWT_LIBRARY = the path to the jawt library
|
||||
@@ -51,6 +51,8 @@
|
||||
"${dir}"
|
||||
"${dir}/client"
|
||||
"${dir}/server"
|
||||
+ "${dir}/j9vm"
|
||||
+ "${dir}/classic"
|
||||
)
|
||||
ENDFOREACH(dir)
|
||||
|
||||
@@ -60,7 +62,7 @@
|
||||
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.3;JavaHome]/include"
|
||||
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\${java_install_version};JavaHome]/include"
|
||||
$ENV{JAVA_HOME}/include
|
||||
- /usr/include
|
||||
+ /usr/include
|
||||
/usr/local/include
|
||||
/usr/lib/java/include
|
||||
/usr/local/lib/java/include
|
||||
@@ -126,7 +128,7 @@
|
||||
)
|
||||
ENDIF(JAVA_HAVE_FRAMEWORK)
|
||||
ELSE(APPLE)
|
||||
- FIND_LIBRARY(JAVA_AWT_LIBRARY jawt
|
||||
+ FIND_LIBRARY(JAVA_AWT_LIBRARY jawt
|
||||
PATHS ${JAVA_AWT_LIBRARY_DIRECTORIES}
|
||||
)
|
||||
FIND_LIBRARY(JAVA_JVM_LIBRARY NAMES jvm JavaVM
|
||||
@@ -134,18 +136,23 @@
|
||||
)
|
||||
ENDIF(APPLE)
|
||||
|
||||
-# add in the include path
|
||||
-FIND_PATH(JAVA_INCLUDE_PATH jni.h
|
||||
+# add in the include path
|
||||
+FIND_PATH(JAVA_INCLUDE_PATH jni.h
|
||||
${JAVA_AWT_INCLUDE_DIRECTORIES}
|
||||
)
|
||||
|
||||
-FIND_PATH(JAVA_INCLUDE_PATH2 jni_md.h
|
||||
+FIND_PATH(JAVA_INCLUDE_PATH2 jni_md.h
|
||||
${JAVA_AWT_INCLUDE_DIRECTORIES}
|
||||
${JAVA_INCLUDE_PATH}/win32
|
||||
${JAVA_INCLUDE_PATH}/linux
|
||||
${JAVA_INCLUDE_PATH}/freebsd
|
||||
)
|
||||
|
||||
+FIND_PATH(JAVA_INCLUDE_PATH2 jniport.h
|
||||
+ ${JAVA_AWT_INCLUDE_DIRECTORIES}
|
||||
+ ${JAVA_INCLUDE_PATH}
|
||||
+)
|
||||
+
|
||||
FIND_PATH(JAVA_AWT_INCLUDE_PATH jawt.h
|
||||
${JAVA_AWT_INCLUDE_DIRECTORIES}
|
||||
${JAVA_INCLUDE_PATH}
|
||||
@@ -169,4 +176,3 @@
|
||||
${JAVA_INCLUDE_PATH2}
|
||||
${JAVA_AWT_INCLUDE_PATH}
|
||||
)
|
||||
-
|
||||
11
dev-util/cmake/files/cmake-FindPythonInterp.patch
Normal file
11
dev-util/cmake/files/cmake-FindPythonInterp.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- Modules/FindPythonInterp.cmake
|
||||
+++ Modules/FindPythonInterp.cmake
|
||||
@@ -7,7 +7,7 @@
|
||||
#
|
||||
|
||||
FIND_PROGRAM(PYTHON_EXECUTABLE
|
||||
- NAMES python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 python
|
||||
+ NAMES python python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5
|
||||
PATHS
|
||||
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.5\\InstallPath]
|
||||
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.4\\InstallPath]
|
||||
13
dev-util/cmake/files/cmake-FindPythonLibs.patch
Normal file
13
dev-util/cmake/files/cmake-FindPythonLibs.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
--- Modules/FindPythonLibs.cmake
|
||||
+++ Modules/FindPythonLibs.cmake
|
||||
@@ -14,7 +14,9 @@
|
||||
# Search for the python framework on Apple.
|
||||
CMAKE_FIND_FRAMEWORKS(Python)
|
||||
|
||||
-FOREACH(_CURRENT_VERSION 2.6 2.5 2.4 2.3 2.2 2.1 2.0 1.6 1.5)
|
||||
+EXECUTE_PROCESS(COMMAND python -c "import sys; sys.stdout.write('.'.join([str(x) for x in sys.version_info[:2]]))"
|
||||
+ OUTPUT_VARIABLE _PYTHON_VERSION)
|
||||
+FOREACH(_CURRENT_VERSION ${_PYTHON_VERSION})
|
||||
STRING(REPLACE "." "" _CURRENT_VERSION_NO_DOTS ${_CURRENT_VERSION})
|
||||
IF(WIN32)
|
||||
FIND_LIBRARY(PYTHON_DEBUG_LIBRARY
|
||||
3
dev-util/cmake/files/cmake.vim
Normal file
3
dev-util/cmake/files/cmake.vim
Normal file
@@ -0,0 +1,3 @@
|
||||
autocmd BufRead,BufNewFile *.cmake,CMakeLists.txt,*.cmake.in runtime! indent/cmake.vim
|
||||
autocmd BufRead,BufNewFile *.cmake,CMakeLists.txt,*.cmake.in setf cmake
|
||||
autocmd BufRead,BufNewFile *.ctest,*.ctest.in setf cmake
|
||||
Reference in New Issue
Block a user