aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstas <stas@FreeBSD.org>2011-08-08 05:27:31 +0800
committerstas <stas@FreeBSD.org>2011-08-08 05:27:31 +0800
commitc19c0357e06f3e3edc6646a14c48e7fce453d04e (patch)
tree3f66e0a1cc8f5ae776c03b82c5a050c697bbd482
parentfb214b79317f5034aa3d61c9fce36239bc941ba5 (diff)
downloadfreebsd-ports-gnome-c19c0357e06f3e3edc6646a14c48e7fce453d04e.tar.gz
freebsd-ports-gnome-c19c0357e06f3e3edc6646a14c48e7fce453d04e.tar.zst
freebsd-ports-gnome-c19c0357e06f3e3edc6646a14c48e7fce453d04e.zip
- Drop build dependency on Hg, which was used to pull the app version.
It was not working anyway as distfile does not include the .hg directory.
-rw-r--r--graphics/rawtherapee/files/patch-About-Linux.cmake20
1 files changed, 20 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..e5c2a0ace5c9
--- /dev/null
+++ b/graphics/rawtherapee/files/patch-About-Linux.cmake
@@ -0,0 +1,20 @@
+--- About-Linux.cmake.orig 2011-08-07 14:16:30.000000000 -0700
++++ About-Linux.cmake 2011-08-07 14:19:03.000000000 -0700
+@@ -12,16 +12,8 @@
+ endif (HG_CMD STREQUAL HG_CMD-NOTFOUND)
+
+ set (OUT_FILE "${SRC_DIR}/AboutThisBuild.txt")
+-set (SHELL "/bin/bash")
++set (SHELL "/bin/sh")
+ # 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 ()
+
+ # build version.h from template
+ configure_file (${SRC_DIR}/rtgui/version.h.in ${SRC_DIR}/rtgui/version.h)