aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorstas <stas@FreeBSD.org>2011-09-08 15:02:49 +0800
committerstas <stas@FreeBSD.org>2011-09-08 15:02:49 +0800
commit6714e99998d343f35dea58d76444584877102cff (patch)
treefd52bc1f893477ba802ee9588088fb929ed553de /graphics
parent685c7775be11b6ed26af3850bd01f428da09eb3d (diff)
downloadfreebsd-ports-gnome-6714e99998d343f35dea58d76444584877102cff.tar.gz
freebsd-ports-gnome-6714e99998d343f35dea58d76444584877102cff.tar.zst
freebsd-ports-gnome-6714e99998d343f35dea58d76444584877102cff.zip
- Add forgotten patch.
Reported by: Hanno Krusken <lr101fc@yahoo.co.uk>
Diffstat (limited to 'graphics')
-rw-r--r--graphics/rawtherapee/files/patch-About-Linux.cmake31
1 files changed, 31 insertions, 0 deletions
diff --git a/graphics/rawtherapee/files/patch-About-Linux.cmake b/graphics/rawtherapee/files/patch-About-Linux.cmake
new file mode 100644
index 000000000000..5c0e53e1df59
--- /dev/null
+++ b/graphics/rawtherapee/files/patch-About-Linux.cmake
@@ -0,0 +1,31 @@
+--- About-Linux.cmake.orig 2011-09-07 23:50:07.000000000 -0700
++++ About-Linux.cmake 2011-09-07 23:51:21.000000000 -0700
+@@ -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)