89580fdbcc
- switch to GOOGLE_CODE as distfiles mirror - switch to USE_XZ - add two upstream patches (patch-rtengine-CA__correct__RT.c and patch-rtengine_array2D.h) [1] to fix build on i386. They should be removed after release of 4.0.8. - add patch (patch-rtengine_improcfun.h) to fix build on log2()-less systems (~everything<=8.3) - some cosmetics It would be great if someone with access to ia64, powerpc, sparc64 could confirm that it still failing there. [1] http://code.google.com/p/rawtherapee/source/detail?r=4b5ae9eb4000ce5eb8e8939343da4d8f4ee4a36d Feature safe: yes
31 lines
1.8 KiB
CMake
31 lines
1.8 KiB
CMake
--- ./About-Linux.cmake.orig 2012-01-31 05:00:05.000000000 +0400
|
|
+++ ./About-Linux.cmake 2012-03-29 19:28:04.000000000 +0400
|
|
@@ -1,27 +1,8 @@
|
|
# cmakefile executed within a makefile target
|
|
|
|
# we look for the hg command in this paths by order of preference
|
|
-find_file(HG_CMD hg)
|
|
-
|
|
-
|
|
-# the hg command is looked for again, at build time
|
|
-if (HG_CMD STREQUAL HG_CMD-NOTFOUND)
|
|
- message(FATAL_ERROR "hg command not found!")
|
|
-else (HG_CMD STREQUAL HG_CMD-NOTFOUND)
|
|
- message(STATUS "hg command found: ${HG_CMD}")
|
|
-endif (HG_CMD STREQUAL HG_CMD-NOTFOUND)
|
|
-
|
|
set (OUT_FILE "${SRC_DIR}/AboutThisBuild.txt")
|
|
-set (SHELL "/bin/bash")
|
|
-# there should be a better way of getting the compiler + compiler version, not restrained to Gcc
|
|
-execute_process(COMMAND gcc -dumpversion OUTPUT_VARIABLE GCC_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
-execute_process(COMMAND ${HG_CMD} -R ${SRC_DIR} branch OUTPUT_VARIABLE HG_BRANCH OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
-execute_process(COMMAND ${HG_CMD} parents --template={latesttag}.{latesttagdistance} WORKING_DIRECTORY ${SRC_DIR} OUTPUT_VARIABLE HG_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
-execute_process(COMMAND ${HG_CMD} parents --template={node|short} WORKING_DIRECTORY ${SRC_DIR} OUTPUT_VARIABLE HG_CHANGESET OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
-execute_process(COMMAND ${HG_CMD} parents --template={latesttagdistance} WORKING_DIRECTORY ${SRC_DIR} OUTPUT_VARIABLE HG_TAGDISTANCE OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
-if (CACHE_NAME_SUFFIX STREQUAL "")
|
|
- execute_process(COMMAND ${HG_CMD} parents --template={latesttag} WORKING_DIRECTORY ${SRC_DIR} OUTPUT_VARIABLE CACHE_NAME_SUFFIX OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
-endif ()
|
|
+set (SHELL "/bin/sh")
|
|
|
|
# build version.h from template
|
|
configure_file (${SRC_DIR}/rtgui/version.h.in ${SRC_DIR}/rtgui/version.h)
|